This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [exec] 2) Error: | |
| [exec] TestM17NComb#test_str_crypt: | |
| [exec] Java::JavaLang::NullPointerException: | |
| [exec] jnr.posix.BaseNativePOSIX.crypt(BaseNativePOSIX.java:88) | |
| [exec] jnr.posix.CheckedPOSIX.crypt(CheckedPOSIX.java:80) | |
| [exec] jnr.posix.LazyPOSIX.crypt(LazyPOSIX.java:77) | |
| [exec] org.jruby.RubyString.crypt(RubyString.java:2205) | |
| [exec] org.jruby.RubyString$INVOKER$i$1$0$crypt.call(RubyString$INVOKER$i$1$0$crypt.gen) | |
| [exec] org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:313) | |
| [exec] org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:163) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gemfile = File.expand_path(File.join(__FILE__, '..', 'Gemfile')) | |
| if File.exist?(gemfile) && ENV['BUNDLE_GEMFILE'].nil? | |
| puts "Respawning with 'bundle exec'" | |
| exec("bundle", "exec", "cap", *ARGV) | |
| end | |
| load 'deploy' | |
| env = ENV['RUBBER_ENV'] ||= (ENV['RAILS_ENV'] || 'production') | |
| root = ENV['RUBBER_ROOT'] ||= '../mogotest' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace :deploy do | |
| desc "precompile and deploy the assets to the server" | |
| task :precompile_assets, :roles => :app do | |
| if ENV['SKIP_ASSETS'] | |
| run "cp -a #{previous_release}/public/assets #{release_path}/public" | |
| else | |
| run_locally "#{rake} RAILS_ENV=#{rails_env} RAILS_GROUPS=assets assets:precompile" | |
| run "mkdir -p #{release_path}/public/assets" | |
| transfer(:up, "public/assets", "#{release_path}/public/assets", chunk_size: 16_384) { print "." } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| h = {} | |
| 20.times do |i| | |
| h[[i]] = { :"UTF-8" => true } | |
| end | |
| until h.empty? | |
| key, value = h.shift | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| empty 0.960000 0.240000 1.200000 ( 0.706804) | |
| empty - dup 0.820000 0.080000 0.900000 ( 0.660550) | |
| 1char 0.710000 0.130000 0.840000 ( 0.514980) | |
| 1char - dup 0.630000 0.000000 0.630000 ( 0.613213) | |
| 5 chars 0.930000 0.010000 0.940000 ( 0.853446) | |
| 5 chars - dup 1.370000 0.000000 1.370000 ( 1.107195) | |
| 10 chars 1.080000 0.000000 1.080000 ( 0.917764) | |
| 10 chars - dup 1.260000 0.030000 1.290000 ( 1.120841) | |
| 20 chars 1.050000 0.010000 1.060000 ( 0.972268) | |
| 20 chars - dup 1.490000 0.000000 1.490000 ( 1.333460) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| begin | |
| require 'bad.file' | |
| rescue LoadError | |
| end | |
| p "Hello" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [exec] 1288 files, 1385 examples, 79270 expectations, 0 failures, 0 errors | |
| [exec] Exception in thread "Thread-0" java.lang.AssertionError: SizedQueue has not been loaded | |
| [exec] at org.jruby.ext.fiber.ThreadFiber.initRootFiber(ThreadFiber.java:35) | |
| [exec] at org.jruby.internal.runtime.ThreadService.registerNewThread(ThreadService.java:289) | |
| [exec] at org.jruby.RubyThread.adoptThread(RubyThread.java:526) | |
| [exec] at org.jruby.RubyThread.adopt(RubyThread.java:518) | |
| [exec] at org.jruby.internal.runtime.ThreadService.adoptCurrentThread(ThreadService.java:227) | |
| [exec] at org.jruby.internal.runtime.ThreadService.getCurrentContext(ThreadService.java:202) | |
| [exec] at org.jruby.Ruby.getCurrentContext(Ruby.java:2737) | |
| [exec] at org.jruby.Ruby.tearDown(Ruby.java:3168) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ bin/jruby -X-C -v | |
| jruby 9.0.0.0-SNAPSHOT (2.2.0p0) 2014-12-04 45a50d1 Java HotSpot(TM) 64-Bit Server VM 24.72-b04 on 1.7.0_72-b14 +jit [linux-amd64] | |
| $ bin/jruby -Xcompile.mode=OFF -v | |
| jruby 9.0.0.0-SNAPSHOT (2.2.0p0) 2014-12-04 45a50d1 Java HotSpot(TM) 64-Bit Server VM 24.72-b04 on 1.7.0_72-b14 [linux-amd64] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| nirvdrum@balthasar:~/dev/workspaces/mogotest$ JRUBY_OPTS="-Xcompile.invokedynamic=true -X+C -Xjit.threshold=0" ruby jruby_9k_indy_issue.rb | |
| LoadError: load error: jruby/java/core_ext/module -- java.lang.NullPointerException: null | |
| require at org/jruby/RubyKernel.java:926 | |
| __script__ at file:/home/nirvdrum/.rbenv/versions/jruby-9000.dev-SNAPSHOT/lib/jruby.jar!/jruby/java/core_ext.rb:3 | |
| require at org/jruby/RubyKernel.java:926 | |
| __script__ at file:/home/nirvdrum/.rbenv/versions/jruby-9000.dev-SNAPSHOT/lib/jruby.jar!/jruby/java.rb:40 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| X = true | |
| 1000.times do | |
| raise 'undefined' unless defined?(::X) | |
| end |