Search the web
Sign In
New User? Sign Up
rails_artist · Only Ruby on Rails Artist here
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
rails plugin symlinked broken on 1.2.5, fixed from 2.0   Message List  
Reply | Forward Message #16 of 23 |
i was trying to build a rails plugin. my project was in different directory
so i symlinked the directory under "vendor/plugins/..". but i couldn't find
it working.

so after passing few times, i could successfully run my plugin under rails
2.0-RC2. so later i compared lookup.rb file from the 1.5 and 2.0-RC2release.

the defecting code was the following lines - (1.5)

def use_component_sources!
# ….
sources < < PathSource.new(:lib, "#{::RAILS_ROOT}/lib/generators")
sources << PathSource.new(:vendor, "#{::RAILS_ROOT}/vendor/generators")
sources << PathSource.new(:plugins,
"#{::RAILS_ROOT}/vendor/plugins/**/generators")
# ....
end

the fixed version - (2.0-RC2)

def use_component_sources!
# …

sources < < PathSource.new(:lib, "#{::RAILS_ROOT}/lib/generators")
sources << PathSource.new(:vendor, "#{::RAILS_ROOT}/vendor/generators")
sources << PathSource.new(:plugins,
"#{::RAILS_ROOT}/vendor/plugins/*/**/generators")
sources << PathSource.new(:plugins,
"#{::RAILS_ROOT}/vendor/plugins/*/**/rails_generators")
end
# ...
end

i also checked out rails bug tracker i found a bug was
pointed<http://dev.rubyonrails.org/ticket/4245>to this issue and
apparently which was fixed on the following change set.
http://dev.rubyonrails.org/changeset/6101


--
----------------------------------------------------
nhm tanveer hossain khan (hasan)
http://hasan.we4tech.com
----------------------------------------------------
mobile: +880 1713 090 511
----------------------------------------------------
"work for fun"


[Non-text portions of this message have been removed]




Thu Nov 29, 2007 7:41 am

hasan83bd
Offline Offline
Send Email Send Email

Forward
Message #16 of 23 |
Expand Messages Author Sort by Date

i was trying to build a rails plugin. my project was in different directory so i symlinked the directory under "vendor/plugins/..". but i couldn't find it...
nhm tanveer hossain k...
hasan83bd
Offline Send Email
Nov 29, 2007
7:41 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help