lib/commands/abstract_command.rb in gemcutter-0.2.1 vs lib/commands/abstract_command.rb in gemcutter-0.3.0.pre
- old
+ new
@@ -1,22 +1,20 @@
require 'rubygems/local_remote_options'
class Gem::AbstractCommand < Gem::Command
include Gem::LocalRemoteOptions
- URL = "http://gemcutter.org"
-
def gemcutter_url
ENV['GEMCUTTER_URL'] || 'https://gemcutter.org'
end
def setup
use_proxy! if http_proxy
sign_in unless api_key
end
def sign_in
- say "Enter your Gemcutter credentials. Don't have an account yet? Create one at #{URL}/sign_up"
+ say "Enter your Gemcutter credentials. Don't have an account yet? Create one at http://gemcutter.org/sign_up"
email = ask("Email: ")
password = ask_for_password("Password: ")
response = make_request(:get, "api_key") do |request|