Skip to content

Commit

Permalink
Merge pull request #1 from sverch/future-ruby-versions
Browse files Browse the repository at this point in the history
Allow all 2.x ruby versions
  • Loading branch information
sverch authored May 1, 2017
2 parents e10b85f + a377793 commit 124407f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions definitions/verify_ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
ruby_block "verify ruby for #{params[:name]}" do
block do
# check ruby dependency - exclude chef's embedded ruby
unless node[:languages][:ruby] && node[:languages][:ruby][:version].start_with?('1.8.7', '1.9', '2.0', '2.1') &&
unless node[:languages][:ruby] && node[:languages][:ruby][:version].start_with?('1.8.7', '1.9', '2') &&
node[:languages][:ruby][:ruby_bin] !~ /chef/
Chef::Application.fatal!("The New Relic #{params[:name]} requires a Ruby version >= 1.8.7 -" +
" For more information, see https://docs.newrelic.com/docs/plugins/installing-a-plugin")
end
end
end
end
end

0 comments on commit 124407f

Please sign in to comment.