diff options
author | Carl Lerche <carllerche@mac.com> | 2009-08-17 15:06:37 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2009-08-17 15:06:37 -0700 |
commit | 4d1aa38bb72be5b3b225255b346883190cb92b26 (patch) | |
tree | d6ecfcc3b03530be8ea407227ffd70d46bd29938 | |
parent | 2f2b82929e999805f802f2366ae7d7d67025b952 (diff) | |
download | bundler-4d1aa38bb72be5b3b225255b346883190cb92b26.tar.gz |
Monkey patch Gem::Specification to work with github's gem marshal file
-rw-r--r-- | lib/bundler/gem_ext.rb | 5 |
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 |