quirkey / gembox

A sinatra based interface for browsing and admiring your gems
http://code.quirkey.com/gembox
50 stars 10 forks source link

Need change dependency activesupport >= 2.2.2 but < 3.0.0 #11

Open antono opened 14 years ago

antono commented 14 years ago

/usr/lib/ruby/1.8/rubygems.rb:280:in activate': can't activate activesupport (= 2.3.5, runtime) for [], already activated activesupport-3.0.0.beta for ["gembox-0.2.1"] (Gem::LoadError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:35:inrequire' from /var/lib/gems/1.8/gems/gembox-0.2.1/lib/gembox.rb:7 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:inrequire' from /var/lib/gems/1.8/gems/gembox-0.2.1/bin/gembox:6 from /var/lib/gems/1.8/bin/gembox:19:in `load' from /var/lib/gems/1.8/bin/gembox:19

antono commented 14 years ago

original issue was with missing mattr_reader in ActiveSuport 3.0.0

antono commented 14 years ago

$ sudo gem install rails --pre

$ gembox

/var/lib/gems/1.8/gems/mislav-will_paginate-2.3.11/lib/will_paginate/view_helpers.rb:37: undefined method mattr_reader' for WillPaginate::ViewHelpers:Module (NoMethodError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in require' from /var/lib/gems/1.8/gems/gembox-0.2.1/lib/gembox.rb:10 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in require' from /var/lib/gems/1.8/gems/gembox-0.2.1/bin/gembox:6 from /var/lib/gems/1.8/bin/gembox:19:inload' from /var/lib/gems/1.8/bin/gembox:19

ricpruss commented 13 years ago

I am also still getting this even though it was claimed to be closed by https://github.com/quirkey/gembox/issues/closed#issue/13

ches commented 13 years ago

It seems that the issue is require 'active_support' loading ActiveSupport 3+ if it is installed. Changing the require in lib/gembox.rb to require 'activesupport' works for me.

ches commented 13 years ago

How about we just use ActiveSupport 3 and put this behind us?

https://github.com/quirkey/gembox/pull/14

There's also a fix in there for Gem::Dependency#version_requirements being gone in newer versions of rubygems, if anyone tracking this ticket is hitting that crasher.