My Recent Pastes (25 and counting)
Pastes by stepheneb (25 and counting)
Below are the 10 most recent pasties by stepheneb.
April 07, 2008
6:23PM EDT
by stepheneb
View all 13 lines
diff --git a/shotgun/common.mk b/shotgun/common.mk index fa04d9c..563f978 100644 --- a/shotgun/common.mk +++ b/shotgun/common.mk @@ -26,7 +26,7 @@ ifeq ($(UNAME),Darwin)
April 07, 2008
4:51PM EDT
by stepheneb
View all 48 lines
# I'm trying to install rbx to a custom install location but the install # process is still looking for a library here: # # /usr/local/lib/librubinius-0.8.0.dylib #
April 07, 2008
2:19PM EDT
by stepheneb
View all 28 lines
# # find_all_gem_commands(gem_command='gem') # # Examples: #
April 07, 2008
3:59AM EDT
by stepheneb
View all 182 lines
1) File.expand_path expands ~ENV['USER'] to the user's home directory ERROR user stephen doesn't exist /Users/stephen/dev/rubinius/rbx/./mspec/runner/mspec.rb:112:in `/Users/stephen/dev/rubinius/rbx/./spec/ruby/1.8/core/file/expand_path_spec.rb' /Users/stephen/dev/rubinius/rbx/./mspec/runner/mspec.rb:112:in `call'
March 07, 2008
7:14PM EDT
by stepheneb
View all 38 lines
$ jruby script/console Loading development environment (Rails 2.0.2) >> Bundle.find(:all).length => 3205 >> Bundle.find(:all).each {|b| b.has_data = b.socks.count > 0; print "."; b.save}
February 20, 2008
8:25PM EDT
by stepheneb
View all 317 lines
# # Testing a simple Rails app for memory leaks # testing done with Rails 2.0.2, MacOS 10.4.11, Ruby 1.8.6_p111 # # The following is a shell script to recreate the test:
February 19, 2008
3:28AM EDT
by stepheneb
View all 96 lines
## This is what I'm using to extract a rails app in a jar to ~/.jruby require 'java' require 'fileutils' require 'rbconfig'
February 19, 2008
2:30AM EDT
by stepheneb
View all 18 lines
## this gets the path to the jar and includes the path inside the jar also cl = java.lang.Class.forName('org.jruby.Ruby').classLoader cl.get_resource("webrick_test.rb") => #<Java::JavaNet::URL:0x5e2e0d @java_object=jar:file:/Users/stephen/Library/Caches/Java/cache/javaws/file/D/P-1/signed-jars/RMwebrick_test.jar!/webrick_test.rb>
February 17, 2008
11:39PM EDT
by stepheneb
View all 44 lines
## DRb Server, run in JRuby include Java require 'drb' class TestServer def add(*args)
February 16, 2008
4:01PM EDT
by stepheneb
View all 9 lines
Exception in thread "Thread-10" file:/Users/stephen/Library/Caches/Java/cache/javaws/file/D/P-1/signed-jars/RMblog.jar!/config/boot.rb:53:in `load_initializer': exit (SystemExit)
from file:/Users/stephen/Library/Caches/Java/cache/javaws/file/D/P-1/signed-jars/RMblog.jar!/config/boot.rb:39:in `run'
from file:/Users/stephen/Library/Caches/Java/cache/javaws/file/D/P-1/signed-jars/RMblog.jar!/config/boot.rb:11:in `boot!'
from file:/Users/stephen/Library/Caches/Java/cache/javaws/file/D/P-1/signed-jars/RMblog.jar!/config/boot.rb:109
from /Users/stephen/.jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
