summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2009-08-17 15:06:37 -0700
committerCarl Lerche <carllerche@mac.com>2009-08-17 15:06:37 -0700
commit4d1aa38bb72be5b3b225255b346883190cb92b26 (patch)
treed6ecfcc3b03530be8ea407227ffd70d46bd29938
parent2f2b82929e999805f802f2366ae7d7d67025b952 (diff)
downloadbundler-4d1aa38bb72be5b3b225255b346883190cb92b26.tar.gz
Monkey patch Gem::Specification to work with github's gem marshal file
-rw-r--r--lib/bundler/gem_ext.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bundler/gem_ext.rb b/lib/bundler/gem_ext.rb
index 15f23e6554..6ca7286441 100644
--- a/lib/bundler/gem_ext.rb
+++ b/lib/bundler/gem_ext.rb
@@ -15,5 +15,10 @@ module Gem
source = Bundler::Source.new(source) unless source.is_a?(Bundler::Source)
@source = source
end
+
+ # Hack to fix github's strange marshal file
+ def specification_version
+ @specification_version && @specification_version.to_i
+ end
end
end