Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2008 16:17:38 GMT
From:      Jonathan Weiss <jw@innerewut.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/119664: [PATCH] devel/ruby-gems: fix gem command after last update
Message-ID:  <200801141617.m0EGHcGM021271@www.freebsd.org>
Resent-Message-ID: <200801141620.m0EGK1KV073105@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         119664
>Category:       ports
>Synopsis:       [PATCH] devel/ruby-gems: fix gem command after last update
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 14 16:20:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Weiss
>Release:        7.0 BETA 4
>Organization:
>Environment:
>Description:
The last update to devel/ruby-gems introduced a patch to rubygems that changed the internal return value of a fuction and thereby broke the `gem` command.
>How-To-Repeat:
# gem install foo
>Fix:
diff -ru ruby-gems.orig/files/patch-lib-rubygems-source_info_cache.rb ruby-gems/files/patch-lib-rubygems-source_info_cache.rb
--- ruby-gems.orig/files/patch-lib-rubygems-source_info_cache.rb        2008-01-14 16:42:56.000000000 +0100
+++ ruby-gems/files/patch-lib-rubygems-source_info_cache.rb     2008-01-14 16:43:26.000000000 +0100
@@ -27,8 +27,8 @@
 @@ -107,6 +110,7 @@
  
    def reset_cache_data
-     @cache_data = {}
 +    FileUtils.rm @cache_file
+     @cache_data = {}
    end
  
    # The name of the cache file to be read



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801141617.m0EGHcGM021271>