Clear gem cache

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

Branch: refs/heads/master
Commit: b11f6e6598a1f80098f62a6df56cfcf26b34e9a6
Parents: 6fce225
Author: Peter Donald <[email protected]>
Authored: Fri Nov 28 21:07:00 2014 +1100
Committer: Peter Donald <[email protected]>
Committed: Fri Nov 28 21:07:00 2014 +1100

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


http://git-wip-us.apache.org/repos/asf/buildr/blob/b11f6e65/Rakefile
----------------------------------------------------------------------
diff --git a/Rakefile b/Rakefile
index 8eb43b0..e783749 100644
--- a/Rakefile
+++ b/Rakefile
@@ -33,6 +33,7 @@ def spec(platform = RUBY_PLATFORM[/java/] || 'ruby')
   @specs ||= ['ruby', 'java', 'x86-mswin32'].inject({}) { |hash, spec_platform|
     ENV['BUILDR_PLATFORM'] = spec_platform
     hash.update(spec_platform=> Gem::Specification.load('buildr.gemspec'))
+    Gem::Specification._clear_load_cache
     ENV['BUILDR_PLATFORM'] = nil
     hash
   }

Reply via email to