Sam Joseph
2006-Jan-02 13:10 UTC
[Rails] problem with ruby gem activate when trying to run actionpack tests
Hi There, so I worked out what I should be doing to try and contribute code to rails (I''m currently working on patches for collection_select and auto_link). I''m following the instructions here: http://dev.rubyonrails.org/ and have checked out actionpack. Trying to run the actionpack tests I get this error: D:\User\Code\ruby\actionpack\test>ruby controller/base_test.rb d:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:144:in `activate'': can''t activate act ivesupport (= 1.2.3), already activated activesupport-1.2.4] (Gem::Exception) from d:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:162:in `activate'' from d:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `each'' from d:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `activate'' from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:23:in `re quire'' from d:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.4/lib/active_suppo rt/dependencies.rb:214:in `require'' from ./controller/../abstract_unit.rb:7 from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re quire__'' from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re quire'' from controller/base_test.rb:1 Rails itself runs fine for me. I''ve been looking for information on the web about what it means to "activate" a rubygem, but have been singularly unsuccessful. I see other people encountering these kinds of problems on this list, but as yet I have not seen any information about what causes these problems. I would love to work out how to fix this, and test the fixes I have. Many thanks in advance. CHEERS> SAM Sam Joseph wrote:>So I was just having some trouble with auto_link and markdown. > >Specfically auto_link was failing to handle urls with tildas in them (~) >e.g. > >http://www.hawaii.edu/~name/index.html > >and markdown couldn''t handle an acute accent (`) e.g. > >Hawai`i > >It seems that acute accents (or backticks) in Markdown signify code >segments, and it seems there''s an open ticket for this: > >http://www.deveiate.org/projects/BlueCloth/ticket/24 > >However, regarding auto_link I found where I could fix this in >actionpack-1.11.0\lib\action_view\helpersTextHelper.rb > >changing the following line: > >([\w]+[=?&\/.-]?)* # url segment >to this > >([\w~]+[=?&\/.-]?)* # url segment > >I can see that there are a number of tickets relating to auto_link: > >http://dev.rubyonrails.org/search?q=auto_link&wiki=on&changeset=on&ticket=on > >However I am unclear how to submit this as a fix. Any guidance would be >greatly appreciated. > >I''d also appreciate any pointers on how to run the TextHelper tests to >ensure I haven''t broken anything else >
Seemingly Similar Threads
- auto_link fails to handle tilda''s (~) and markdown fails to handle acute accent (`)
- Newbie Four Days on Rails
- Something went wrong
- strange sqlite3 errors - validates_associated & failing activerecord unit tests
- BlueCloth throws exceptions! Be careful! (was: auto_link fails to handle tilda''s (~) and markdown fails to handle acute accent (`))