Module: Gemstash::LegacyRubyGemsSupport

Defined in:
lib/gemstash/gem_pusher.rb

Overview

Adds support for legacy versions of RubyGems

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



91
92
93
94
95
96
97
# File 'lib/gemstash/gem_pusher.rb', line 91

def self.included(base)
  base.class_eval do
    alias_method :push_without_cleanup, :push
    remove_method :push
    remove_method :gem
  end
end

Instance Method Details

#pushObject



99
100
101
102
103
# File 'lib/gemstash/gem_pusher.rb', line 99

def push
  push_without_cleanup
ensure
  cleanup
end