Repository: buildr
Updated Branches:
  refs/heads/master 966dd7a2b -> 8f54965a2


Add a guard to ensure that package command runs with the correct version


Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/6a25196a
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/6a25196a
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/6a25196a

Branch: refs/heads/master
Commit: 6a25196adf136157caba904b51e7309232c8c7b0
Parents: 966dd7a
Author: Peter Donald <[email protected]>
Authored: Tue Aug 26 16:18:00 2014 +1000
Committer: Peter Donald <[email protected]>
Committed: Tue Aug 26 16:18:00 2014 +1000

----------------------------------------------------------------------
 Rakefile | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/buildr/blob/6a25196a/Rakefile
----------------------------------------------------------------------
diff --git a/Rakefile b/Rakefile
index 29a43f3..6bc03be 100644
--- a/Rakefile
+++ b/Rakefile
@@ -32,6 +32,7 @@ end
 def spec(platform = RUBY_PLATFORM[/java/] || 'ruby')
   @specs ||= ['ruby', 'java', 'x86-mswin32'].inject({}) { |hash, spec_platform|
     $platform = spec_platform
+    raise 'Gem::Specification.load ignores global context (thus $platform) in 
later versions' unless RUBY_VERSION == '1.9.3'
     hash.update(spec_platform=>Gem::Specification.load('buildr.gemspec'))
   }
   @specs[platform]

Reply via email to