Skip to content

Commit

Permalink
Raise error on Ruby 2.6 until it is supported
Browse files Browse the repository at this point in the history
As the project does not tell the user that Ruby 2.6 is not yet
suypported, they frequently ask why their code is not working with the
following error:

    Error parsing classes in /root/manageiq/app/models/account.rb:
    RuntimeError: type should be a Symbol, not: 6

This commit is to prevent those questions until we can get Ruby 2.6
working.
  • Loading branch information
Fryguy committed May 29, 2019
1 parent 5e5ef0f commit 947ade3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
raise "Ruby versions less than 2.3.1 are unsupported!" if RUBY_VERSION < "2.3.1"
raise "Ruby versions < 2.3.1 are unsupported!" if RUBY_VERSION < "2.3.1"
raise "Ruby versions >= 2.6 are unsupported!" if RUBY_VERSION >= "2.6.0"

source 'https://rubygems.org'

Expand Down

0 comments on commit 947ade3

Please sign in to comment.