github 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +2 -3
- data/README.md +0 -9
- data/Rakefile +1 -1
- data/github.gemspec +4 -4
- data/lib/commands/commands.rb +7 -10
- data/spec/commands/command_fork_spec.rb +0 -1
- metadata +15 -4
data/History.txt
CHANGED
data/README.md
CHANGED
@@ -14,15 +14,6 @@ Run it:
|
|
14
14
|
$ github <command> <args>
|
15
15
|
$ gh <command> <args>
|
16
16
|
|
17
|
-
## Authentication
|
18
|
-
|
19
|
-
To let GitHub know who you are, just have your git config set up with your GitHub username and token.
|
20
|
-
|
21
|
-
$ git config --global github.user "your-github-username"
|
22
|
-
$ git config --global github.token "your-github-token"
|
23
|
-
|
24
|
-
You can find your token under [your account](https://github.com/account).
|
25
|
-
|
26
17
|
## Pulling Upstream Changes
|
27
18
|
|
28
19
|
Let's say you just forked `github-gem` on GitHub from defunkt.
|
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ require 'rake'
|
|
4
4
|
begin
|
5
5
|
require 'echoe'
|
6
6
|
|
7
|
-
Echoe.new('github', '0.4.
|
7
|
+
Echoe.new('github', '0.4.4') do |p|
|
8
8
|
p.rubyforge_name = 'github'
|
9
9
|
p.summary = "The official `github` command line helper for simplifying your GitHub experience."
|
10
10
|
p.description = "The official `github` command line helper for simplifying your GitHub experience."
|
data/github.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{github}
|
5
|
-
s.version = "0.4.
|
5
|
+
s.version = "0.4.4"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Chris Wanstrath, Kevin Ballard, Scott Chacon, Dr Nic Williams"]
|
9
|
-
s.date = %q{2010-
|
9
|
+
s.date = %q{2010-10-17}
|
10
10
|
s.description = %q{The official `github` command line helper for simplifying your GitHub experience.}
|
11
11
|
s.email = %q{drnicwilliams@gmail.com}
|
12
12
|
s.executables = ["gh", "github"]
|
@@ -16,14 +16,14 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Github", "--main", "README.md"]
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
s.rubyforge_project = %q{github}
|
19
|
-
s.rubygems_version = %q{1.3.
|
19
|
+
s.rubygems_version = %q{1.3.7}
|
20
20
|
s.summary = %q{The official `github` command line helper for simplifying your GitHub experience.}
|
21
21
|
|
22
22
|
if s.respond_to? :specification_version then
|
23
23
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
24
24
|
s.specification_version = 3
|
25
25
|
|
26
|
-
if Gem::Version.new(Gem::
|
26
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
27
27
|
s.add_runtime_dependency(%q<text-format>, [">= 1.0.0"])
|
28
28
|
s.add_runtime_dependency(%q<highline>, ["~> 1.5.1"])
|
29
29
|
s.add_runtime_dependency(%q<json>, [">= 1.2.0"])
|
data/lib/commands/commands.rb
CHANGED
@@ -8,16 +8,13 @@ command :home do |user|
|
|
8
8
|
end
|
9
9
|
|
10
10
|
desc "Automatically set configuration info, or pass args to specify."
|
11
|
-
usage "github config [my_username] [
|
12
|
-
command :config do |user,
|
13
|
-
|
14
|
-
|
15
|
-
user ||= highline.ask("What is your github user? ") {|q| q.default = ENV['USER']}
|
16
|
-
token ||= highline.ask("What is your github token? ")
|
17
|
-
repo ||= File.basename(FileUtils.pwd)
|
11
|
+
usage "github config [my_username] [my_repo_name]"
|
12
|
+
command :config do |user, repo|
|
13
|
+
user ||= ENV['USER']
|
14
|
+
repo ||= File.basename(FileUtils.pwd)
|
18
15
|
git "config --global github.user #{user}"
|
19
|
-
git "config
|
20
|
-
puts "Configured with github.user #{user}"
|
16
|
+
git "config github.repo #{repo}"
|
17
|
+
puts "Configured with github.user #{user}, github.repo #{repo}"
|
21
18
|
end
|
22
19
|
|
23
20
|
desc "Open this repo in a web browser."
|
@@ -236,7 +233,7 @@ command :'create-from-local' do
|
|
236
233
|
repo = File.basename(cwd)
|
237
234
|
is_repo = !git("status").match(/fatal/)
|
238
235
|
raise "Not a git repository. Use gh create instead" unless is_repo
|
239
|
-
created = sh "curl -F 'repository[name]=#{repo}' -F 'repository[public]=#{
|
236
|
+
created = sh "curl -F 'repository[name]=#{repo}' -F 'repository[public]=#{options[:private] != true}' -F 'login=#{github_user}' -F 'token=#{github_token}' http://github.com/repositories"
|
240
237
|
if created.out =~ %r{You are being <a href="http://github.com/#{github_user}/([^"]+)"}
|
241
238
|
git "remote add origin git@github.com:#{github_user}/#{$1}.git"
|
242
239
|
git_exec "push origin master"
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 7
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
9
|
+
- 4
|
10
|
+
version: 0.4.4
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Chris Wanstrath, Kevin Ballard, Scott Chacon, Dr Nic Williams
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-10-17 00:00:00 -07:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: text-format
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 23
|
27
30
|
segments:
|
28
31
|
- 1
|
29
32
|
- 0
|
@@ -35,9 +38,11 @@ dependencies:
|
|
35
38
|
name: highline
|
36
39
|
prerelease: false
|
37
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
38
42
|
requirements:
|
39
43
|
- - ~>
|
40
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 1
|
41
46
|
segments:
|
42
47
|
- 1
|
43
48
|
- 5
|
@@ -49,9 +54,11 @@ dependencies:
|
|
49
54
|
name: json
|
50
55
|
prerelease: false
|
51
56
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
52
58
|
requirements:
|
53
59
|
- - ">="
|
54
60
|
- !ruby/object:Gem::Version
|
61
|
+
hash: 31
|
55
62
|
segments:
|
56
63
|
- 1
|
57
64
|
- 2
|
@@ -135,16 +142,20 @@ rdoc_options:
|
|
135
142
|
require_paths:
|
136
143
|
- lib
|
137
144
|
required_ruby_version: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
138
146
|
requirements:
|
139
147
|
- - ">="
|
140
148
|
- !ruby/object:Gem::Version
|
149
|
+
hash: 3
|
141
150
|
segments:
|
142
151
|
- 0
|
143
152
|
version: "0"
|
144
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
145
155
|
requirements:
|
146
156
|
- - ">="
|
147
157
|
- !ruby/object:Gem::Version
|
158
|
+
hash: 11
|
148
159
|
segments:
|
149
160
|
- 1
|
150
161
|
- 2
|
@@ -152,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
163
|
requirements: []
|
153
164
|
|
154
165
|
rubyforge_project: github
|
155
|
-
rubygems_version: 1.3.
|
166
|
+
rubygems_version: 1.3.7
|
156
167
|
signing_key:
|
157
168
|
specification_version: 3
|
158
169
|
summary: The official `github` command line helper for simplifying your GitHub experience.
|