lib/shelly/cli/main/check.rb in shelly-0.4.19 vs lib/shelly/cli/main/check.rb in shelly-0.4.21
- old
+ new
@@ -27,11 +27,11 @@
"Gemfile.lock is missing in git repository",
:show_fulfilled => verbose)
if structure.gemfile_ruby_version?
if structure.gemfile_engine == 'ruby'
- print_check(!['1.8.7', '2.1.0'].include?(structure.gemfile_ruby_version),
+ print_check(!['1.8.7'].include?(structure.gemfile_ruby_version),
"#{structure.gemfile_engine} #{structure.gemfile_ruby_version} is supported",
"#{structure.gemfile_engine} #{structure.gemfile_ruby_version} is currently unsupported\n See more at https://shellycloud.com/documentation/requirements#ruby_versions",
:show_fulfilled => verbose)
end
@@ -39,20 +39,20 @@
print_check(false, "",
"Remove Ruby patchlevel from Gemfile\n Shelly Cloud takes care of upgrading Rubies whenever they are released\n See more at https://shellycloud.com/documentation/requirements#ruby_versions",
:show_fulfilled => verbose)
end
- supported_jruby = '1.7.8'
+ supported_jruby = '1.7.10'
if structure.gemfile_engine == 'jruby'
print_check(!(structure.gemfile_ruby_version == '1.8.7' ||
structure.gemfile_engine_version != supported_jruby),
"jruby #{supported_jruby} (1.9 mode) is supported",
"Only jruby #{supported_jruby} (1.9 mode) is currently supported\n See more at https://shellycloud.com/documentation/requirements#ruby_versions",
:show_fulfilled => verbose)
end
- # other platforms: rbx, mingw, mswin show instant error
- unless ['jruby', 'ruby'].include?(structure.gemfile_engine)
+ # other platforms: mingw, mswin show instant error
+ unless ['jruby', 'ruby', 'rbx'].include?(structure.gemfile_engine)
print_check(false, "",
"Your ruby engine: #{structure.gemfile_engine} is currently unsupported\n See more at https://shellycloud.com/documentation/requirements#ruby_versions",
:show_fulfilled => verbose)
end
end