diff options
| author | mo khan <mo.khan@gmail.com> | 2020-02-06 10:10:01 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-02-06 10:10:01 -0700 |
| commit | 9354191d0c476dc90498375536cab491e76f07cf (patch) | |
| tree | 71c5795e7b7077942e4e4a1eb0b02a04726ec125 | |
| parent | 547f4f12b19f513c2ec2db2a7a10edcf77ff5ced (diff) | |
Use Gem::Requirement to prevent mistakes in version declaration
| -rw-r--r-- | spandx.gemspec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spandx.gemspec b/spandx.gemspec index 4f0bf10..b47ac4f 100644 --- a/spandx.gemspec +++ b/spandx.gemspec @@ -14,6 +14,7 @@ Gem::Specification.new do |spec| spec.description = 'A ruby interface to the SPDX catalogue.' spec.homepage = 'https://github.com/mokhan/spandx' spec.license = 'MIT' + spec.required_ruby_version = Gem::Requirement.new('>= 2.4.0') spec.metadata['homepage_uri'] = spec.homepage spec.metadata['source_code_uri'] = 'https://github.com/mokhan/spandx' @@ -29,7 +30,6 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ['lib'] - spec.required_ruby_version = '>= 2.4.0' spec.add_dependency 'addressable', '~> 2.7' spec.add_dependency 'bundler', '>= 1.16', '< 3.0.0' spec.add_dependency 'concurrent-ruby-ext', '~> 1.1' |
