File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ Gem::Specification.new do |spec|
22
22
'bug_tracker_uri' => 'https://github.com/mocktools/ruby-smtp-mock/issues'
23
23
}
24
24
25
- dry_struct_version = ::Gem ::Version . new ( ::RUBY_VERSION ) >= ::Gem ::Version . new ( '2.7.0' ) ? '~> 1.6' : '~> 1.4'
25
+ current_ruby_version = ::Gem ::Version . new ( ::RUBY_VERSION )
26
+ dry_struct_version = current_ruby_version >= ::Gem ::Version . new ( '2.7.0' ) ? '~> 1.6' : '~> 1.4'
26
27
27
28
spec . required_ruby_version = '>= 2.5.0'
28
29
spec . files = `git ls-files -z` . split ( "\x0 " ) . select { |f | f . match ( %r{^(bin|lib|tmp)/|.ruby-version|smtp_mock.gemspec|LICENSE} ) }
@@ -33,6 +34,7 @@ Gem::Specification.new do |spec|
33
34
spec . add_runtime_dependency 'dry-struct' , dry_struct_version
34
35
35
36
spec . add_development_dependency 'ffaker' , '~> 2.21'
37
+ spec . add_development_dependency 'net-smtp' , '~> 0.3.3' if current_ruby_version >= ::Gem ::Version . new ( '3.1.0' )
36
38
spec . add_development_dependency 'rake' , '~> 13.0' , '>= 13.0.6'
37
39
spec . add_development_dependency 'rspec' , '~> 3.12'
38
40
end
You can’t perform that action at this time.
0 commit comments