Skip to content

Instantly share code, notes, and snippets.

View jfirebaugh's full-sized avatar

John Firebaugh jfirebaugh

View GitHub Profile
C:/jruby-1.5.2/lib/ruby/gems/1.8/gems/ci_reporter-1.6.2.3dfd4f47a155959e6c7d2aa04a9906fb7153428a/lib/ci/reporter/rspec.rb:42: uninitialized constant CI::Reporter::Spec (NameError)
from C:/jruby-1.5.2/lib/ruby/gems/1.8/gems/ci_reporter-1.6.2.3dfd4f47a155959e6c7d2aa04a9906fb7153428a/lib/ci/reporter/rspec.rb:6:in `require'
from C:/jruby-1.5.2/lib/ruby/gems/1.8/gems/ci_reporter-1.6.2.3dfd4f47a155959e6c7d2aa04a9906fb7153428a/lib/ci/reporter/rake/rspec_loader.rb:6
from C:/jruby-1.5.2/lib/ruby/gems/1.8/gems/ci_reporter-1.6.2.3dfd4f47a155959e6c7d2aa04a9906fb7153428a/lib/ci/reporter/rake/rspec_loader.rb:154:in `require'
from C:/jruby-1.5.2/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.22/lib/rspec/core/configuration.rb:154:in `requires='
from C:/jruby-1.5.2/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.22/lib/rspec/core/configuration.rb:154:in `map'
from C:/jruby-1.5.2/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.22/lib/rspec/core/configuration.rb:154:in `requires='
from C:/jruby-1.5.2/lib/ruby/gems/1.8/gems/rspe
@jfirebaugh
jfirebaugh / gist:627247
Created October 14, 2010 23:04
rvm problem with bundler in global gemset
I have bundler installed in the @global gemset but not in the default gemset:
$ rvm use @global
Using /Users/jfire/.rvm/gems/jruby-1.5.3 with gemset global
$ gem list | grep bundler
bundler (1.0.2)
$ rvm use jruby
Using /Users/jfire/.rvm/gems/jruby-1.5.3
$ gem which bundler
/Users/jfire/.rvm/gems/jruby-1.5.3@global/gems/bundler-1.0.2/lib/bundler.rb
~/Development/SCM ☯〠 ruby --profile.graph -rubygems -e'require "bundler"'
%total %self total self children calls name
---------------------------------------------------------------------------------------------------------
100% 0% 1.12 0.00 1.12 0 (top)
0.67 0.00 0.67 1/31 Kernel#require
0.44 0.05 0.39 1/112 Kernel#gem_original_require
0.00 0.00 0.00 145/251 Class#inherited
---------------------------------------------------------------------------------------------------------
0.00 0.00 0.00 1/31 Gem::Specification#add_dependency_with_type
0.00 0.00 0.00 1/31 Gem::SourceIndex.spec_directories_from_classpath
class A
class B
end
end
A.class_eval do
B
end
1.8.7-p330
instance method: Foo::X
singleton method: ::X
class_eval: ::X
instance_eval: ::X
puts "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
class Foo
class Bar
end
end
Baz = Class.new do
class Quux
end
require 'rspec'
describe "a TestClass" do
class TestClass < String
end
end
describe "other TestClass" do
class TestClass < Integer
end
require 'rspec'
describe "a TestClass" do
class self::TestClass < String
end
end
describe "other TestClass" do
class ::TestClass < Integer
end
1.8.7-p330
instance method: Foo::X
singleton method: ::X
class_eval: ::X
instance_eval: ::X
1.9.1-p378
instance method: Foo::X
singleton method: ::X
class_eval: Foo::X
instance_eval: Foo::X
1.9.2-p136
instance method: Foo::X
singleton method: Foo::X
class_eval: ::X
instance_eval: Foo::X