From aeeb1e6a6e0176473db9775da08d83ab4802db17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Sat, 13 Jul 2013 03:33:04 +0200 Subject: [PATCH] do the dance one more time --- README.md | 2 +- features/authentication.feature | 4 ++-- hub.gemspec | 2 +- lib/hub/commands.rb | 2 +- lib/hub/github_api.rb | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8ebcd3cc..affe37ca 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ $ brew install hub `hub` is easily installed as a standalone script: ~~~ sh -$ curl http://github.github.com/hub/standalone -sLo ~/bin/hub && +$ curl http://hub.github.com/standalone -sLo ~/bin/hub && chmod +x ~/bin/hub ~~~ diff --git a/features/authentication.feature b/features/authentication.feature index e19e157e..92397817 100644 --- a/features/authentication.feature +++ b/features/authentication.feature @@ -41,7 +41,7 @@ Feature: OAuth authentication halt 401 unless auth.credentials == %w[mislav kitty] json [ {:token => 'SKIPPD', :app => {:url => 'http://example.com'}}, - {:token => 'OTOKEN', :app => {:url => 'http://github.github.com/hub/'}} + {:token => 'OTOKEN', :app => {:url => 'http://hub.github.com/'}} ] } get('/user') { @@ -66,7 +66,7 @@ Feature: OAuth authentication auth = Rack::Auth::Basic::Request.new(env) halt 401 unless auth.credentials == %w[mislav kitty] json [ - {:token => 'OTOKEN', :app => {:url => 'http://github.github.com/hub/'}} + {:token => 'OTOKEN', :app => {:url => 'http://hub.github.com/'}} ] } get('/user') { diff --git a/hub.gemspec b/hub.gemspec index 6e054e19..142ec147 100644 --- a/hub.gemspec +++ b/hub.gemspec @@ -5,7 +5,7 @@ Gem::Specification.new do |s| s.name = "hub" s.version = Hub::VERSION s.summary = "Command-line wrapper for git and GitHub" - s.homepage = "http://github.github.com/hub/" + s.homepage = "http://hub.github.com/" s.email = "mislav.marohnic@gmail.com" s.authors = [ "Chris Wanstrath", "Mislav Marohnić" ] s.license = "MIT" diff --git a/lib/hub/commands.rb b/lib/hub/commands.rb index 8e0a4062..6d197a87 100644 --- a/lib/hub/commands.rb +++ b/lib/hub/commands.rb @@ -794,7 +794,7 @@ module Hub config_file = ENV['HUB_CONFIG'] || '~/.config/hub' file_store = GitHubAPI::FileStore.new File.expand_path(config_file) file_config = GitHubAPI::Configuration.new file_store - GitHubAPI.new file_config, :app_url => 'http://github.github.com/hub/' + GitHubAPI.new file_config, :app_url => 'http://hub.github.com/' end end diff --git a/lib/hub/github_api.rb b/lib/hub/github_api.rb index f6477ba8..3e7dba31 100644 --- a/lib/hub/github_api.rb +++ b/lib/hub/github_api.rb @@ -15,7 +15,7 @@ module Hub # config_file = ENV['HUB_CONFIG'] || '~/.config/hub' # file_store = GitHubAPI::FileStore.new File.expand_path(config_file) # file_config = GitHubAPI::Configuration.new file_store - # GitHubAPI.new file_config, :app_url => 'http://github.github.com/hub/' + # GitHubAPI.new file_config, :app_url => 'http://hub.github.com/' # end class GitHubAPI attr_reader :config, :oauth_app_url -- GitLab