This project is archived and is in readonly mode.
Gem.path is undefined when rack1.9.1 gems:unpack
-
Tyler Rick
- Title changed from Gem.path is nil when rack1.9.1 gems:unpack to Gem.path is undefined when rack1.9.1 gems:unpack
-
Tyler Rick
I ran into the same problem. Attached is the patch I used to work around it (invoking gem command directly, like you did).
Then I ran into the same problem with rake rails:freeze:gems. Here was my workaround for that:
--- /var/lib/gems/1.9.1/gems/rails-2.3.5.orig/lib/tasks/framework.rake 2010-03-08 16:06:40.000000000 -0800 +++ /var/lib/gems/1.9.1/gems/rails-2.3.5/lib/tasks/framework.rake 2010-03-08 16:35:25.000000000 -0800 @@ -24,11 +24,18 @@ begin chdir("vendor/rails") do rails.dependencies.select { |g| deps.include? g.name }.each do |g| - Gem::GemRunner.new.run(["unpack", g.name, "--version", g.version_requirements.to_s]) + #Gem::GemRunner.new.run(["unpack", g.name, "--version", g.version_requirements.to_s]) + command = ['gem', "unpack", g.name, "--version", g.version_requirements.to_s].map{|a| a.gsub(/= /, '=')}.join(' ') + puts command + system command + mv(Dir.glob("#{g.name}*").first, g.name) end - Gem::GemRunner.new.run(["unpack", "rails", "--version", "=#{version}"]) + #Gem::GemRunner.new.run(["unpack", "rails", "--version", "=#{version}"]) + command = ['gem', "unpack", 'rails', "--version", version.to_s].map{|a| a.gsub(/= /, '=')}.join(' ') + puts command + system command FileUtils.mv(Dir.glob("rails*").first, "railties") end rescue Exception -
Yehuda Katz (wycats)
- Milestone set to 2.3.6
-
Rizwan Reza
- Tag changed from rake gems activesupport to rake gems activesupport, bugmash
-
Santiago Pastorino
- State changed from new to open
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
Santiago Pastorino
- State changed from open to stale
