buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boisv...@apache.org
Subject svn commit: r768719 - /buildr/trunk/Rakefile
Date Sun, 26 Apr 2009 16:19:27 GMT
Author: boisvert
Date: Sun Apr 26 16:19:27 2009
New Revision: 768719

URL: http://svn.apache.org/viewvc?rev=768719&view=rev
Log:
Fix issue that would lead to inconsistent build of both 'ruby' and 'java' gems;  apparently
a name conflict between def argument name and block argument name

Modified:
    buildr/trunk/Rakefile

Modified: buildr/trunk/Rakefile
URL: http://svn.apache.org/viewvc/buildr/trunk/Rakefile?rev=768719&r1=768718&r2=768719&view=diff
==============================================================================
--- buildr/trunk/Rakefile (original)
+++ buildr/trunk/Rakefile Sun Apr 26 16:19:27 2009
@@ -28,9 +28,9 @@
 
 # Load the Gem specification for the current platform (Ruby or JRuby).
 def spec(platform = RUBY_PLATFORM[/java/] || 'ruby')
-  @specs ||= ['ruby', 'java'].inject({}) { |hash, platform|
-    $platform = platform
-    hash.update(platform=>Gem::Specification.load('buildr.gemspec'))
+  @specs ||= ['ruby', 'java'].inject({}) { |hash, spec_platform|
+    $platform = spec_platform
+    hash.update(spec_platform=>Gem::Specification.load('buildr.gemspec'))
   }
   @specs[platform]
 end



Mime
View raw message