Sha256: db7b7540c8393233e044f1de90d500711cc366343d99203e5f01b51787f91357
Contents?: true
Size: 975 Bytes
Versions: 4
Compression:
Stored size: 975 Bytes
Contents
def safe_system(cmd) $stderr.puts "Running: #{cmd}" result = system("#{cmd} 2>&1") unless result && $? && $?.success? raise "Command failed: #{$?.inspect}" end end if defined?(RUBY_ENGINE) && RUBY_ENGINE.to_s == 'jruby' && defined?(JRUBY_VERSION) && JRUBY_VERSION.to_s =~ /^1\.7\./ safe_system("gem update --system") target_dir = "/home/travis/.rvm/gems" targets = Dir.entries(target_dir).select { |e| e =~ /^jruby\-#{JRUBY_VERSION}.*@global$/i } targets.each do |target| full_path = File.join(target_dir, target) safe_system("gem uninstall -i '#{full_path}' bundler") end safe_system("gem install bundler -v 1.12.5 --no-rdoc --no-ri --no-document") else ruby_engine = if defined?(RUBY_ENGINE) then RUBY_ENGINE.inspect else 'nil' end jruby_version = if defined?(JRUBY_VERSION) then JRUBY_VERSION.inspect else 'nil' end puts "No need to fix Bundler versions. RUBY_ENGINE is #{ruby_engine} and JRUBY_VERSION is #{jruby_version}." end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fortitude-0.9.6-java | .fix_bundler_for_jruby_17 |
fortitude-0.9.6 | .fix_bundler_for_jruby_17 |
fortitude-0.9.5-java | .fix_bundler_for_jruby_17 |
fortitude-0.9.5 | .fix_bundler_for_jruby_17 |