Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Part of the Pusher class from RubyGems.org

View pusher.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
class Pusher
attr_reader :user, :spec, :message, :code, :rubygem, :body, :version, :version_id
 
def initialize(user, body, host_with_port=nil)
@user = user
@body = StringIO.new(body.read)
@indexer = Indexer.new
@host_with_port = host_with_port
end
 
def process
pull_spec && find && authorize && save
end
 
... etc ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.