[JIRA] Commented: (WARBLER-9) Search for Gemfiles in Gem.path, not only Gem.dir
- From: "rodrigob (JIRA)" <jira-no-reply@kenai.com>
- To: issues@warbler.kenai.com
- Subject: [JIRA] Commented: (WARBLER-9) Search for Gemfiles in Gem.path, not only Gem.dir
- Date: Thu, 21 Jan 2010 18:12:51 +0000 (GMT+00:00)
[
http://kenai.com/jira/browse/WARBLER-9?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46762#action_46762
]
rodrigob commented on WARBLER-9:
--------------------------------
I had the same problem.
The patch is to replace
the line 323 (or 328 in my installation) of
http://kenai.com/projects/warbler/sources/main/content/lib/warbler/task.rb
src = File.join(Gem.dir, 'cache', "#{gem_name}.gem")
with
src = ""
Gem.path.each do |gem_path|
src = File.join(gem_path, 'cache', "#{gem_name}.gem")
break if File.exists?(src)
end
any chance to have this patch inserted in next release ?
> Search for Gemfiles in Gem.path, not only Gem.dir
> -------------------------------------------------
>
> Key: WARBLER-9
> URL: http://kenai.com/jira/browse/WARBLER-9
> Project: warbler
> Issue Type: Bug
> Environment: JRuby1.3.1
> Reporter: mattelacchiato
> Original Estimate: 3 hours
> Remaining Estimate: 3 hours
>
> In warbler/task.rb you search for Gems to copy only in Gem.dir:
> if File.exist?(File.join(Gem.dir, 'cache', "#{name}.gem"))
> Instead you should traverse through all Gem.path directories like here:
> http://mongrel.rubyforge.org/ticket/22
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://kenai.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
[JIRA] Commented: (WARBLER-9) Search for Gemfiles in Gem.path, not only Gem.dir |
rodrigob (JIRA) | 01/21/2010 |





