提交 aeeb1e6a 编写于 作者: M Mislav Marohnić

do the dance one more time

上级 27b95812
......@@ -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
~~~
......
......@@ -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') {
......
......@@ -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"
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册