Skip to content

Instantly share code, notes, and snippets.

@markburns
Created January 20, 2013 16:02
Show Gist options
  • Select an option

  • Save markburns/4579503 to your computer and use it in GitHub Desktop.

Select an option

Save markburns/4579503 to your computer and use it in GitHub Desktop.
strange bundler hanging debug loop
115 lookup = Hash.new { |h,k| h[k] = [] }
116 specs = @specs.sort_by do |s|
117 s.platform.to_s == 'ruby' ? "\0" : s.platform.to_s
118 end
119 specs.reverse_each do |s|
=> 120 lookup[s.name] << s
121 end
122 lookup
123 end
124 end
/Users/markburns/.rbenv/versions/jruby-1.7.0/lib/ruby/gems/shared/gems/bundler-1.2.3/lib/bundler/spec_set.rb:120
lookup[s.name] << s
(rdb:1) s.name
"crack"
(rdb:1) n
[110, 119] in /Users/markburns/.rbenv/versions/jruby-1.7.0/lib/ruby/gems/shared/gems/bundler-1.2.3/lib/bundler/spec_set.rb
110 @sorted ||= ([rake] + tsort).compact.uniq
111 end
112
113 def lookup
114 @lookup ||= begin
=> 115 lookup = Hash.new { |h,k| h[k] = [] }
116 specs = @specs.sort_by do |s|
117 s.platform.to_s == 'ruby' ? "\0" : s.platform.to_s
118 end
119 specs.reverse_each do |s|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment