Skip to content

Commit

Permalink
bump minimum supported ruby version to 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
benbalter committed Jul 11, 2018
1 parent d606b06 commit 51144b6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
language: ruby
rvm:
- 2.1
- 2.2
- 2.3.3
- 2.4.0
- 2.5.0
- 2.3
- 2.4
- 2.5
script: "script/cibuild"
sudo: false
cache: bundler
Expand Down
12 changes: 6 additions & 6 deletions lib/licensee/commands/detect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ def detect(_path = nil)

rows = []
rows << if project.license
['License:', project.license.spdx_id]
elsif !project.licenses.empty?
['Licenses:', project.licenses.map(&:spdx_id)]
else
['License:', set_color('None', :red)]
end
['License:', project.license.spdx_id]
elsif !project.licenses.empty?
['Licenses:', project.licenses.map(&:spdx_id)]
else
['License:', set_color('None', :red)]
end

unless project.matched_files.empty?
rows << ['Matched files:', project.matched_files.map(&:filename).join(', ')]
Expand Down
2 changes: 1 addition & 1 deletion licensee.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Gem::Specification.new do |gem|
gem.add_development_dependency('rubocop', '~> 0.49')
gem.add_development_dependency('webmock', '~> 3.1')

gem.required_ruby_version = '>= 2.1'
gem.required_ruby_version = '> 2.2'

# ensure the gem is built out of versioned files
gem.files = Dir[
Expand Down

0 comments on commit 51144b6

Please sign in to comment.