lib/vx/builder/script_builder/ruby.rb in vx-builder-0.5.4 vs lib/vx/builder/script_builder/ruby.rb in vx-builder-0.5.5

- old
+ new

@@ -4,10 +4,14 @@ class Ruby < Base DEFAULT_RUBY = '1.9.3' + ALIASES = { + 'jruby-19mode' => 'jruby' + } + def call(env) if enabled?(env) vxvm_install(env, 'ruby', ruby_version(env)) @@ -51,10 +55,11 @@ def enabled?(env) env.source.rvm.first || env.source.language == 'ruby' end def ruby_version(env) - env.source.rvm.first || DEFAULT_RUBY + v = env.source.rvm.first || DEFAULT_RUBY + ALIASES[v] || v end def gemfile(env) env.source.gemfile.first || "Gemfile" end