github_cli 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +4 -4
- data/README.md +8 -1
- data/features/blob.feature +8 -0
- data/features/collaborator.feature +10 -0
- data/features/commit.feature +8 -0
- data/features/content.feature +9 -0
- data/features/gist.feature +15 -0
- data/features/pull_request.feature +14 -0
- data/features/search.feature +7 -30
- data/features/search_commands.feature +33 -0
- data/features/watching.feature +11 -0
- data/lib/github_cli/apis.rb +2 -0
- data/lib/github_cli/apis/content.rb +28 -0
- data/lib/github_cli/apis/search.rb +35 -0
- data/lib/github_cli/cli.rb +9 -5
- data/lib/github_cli/command.rb +2 -1
- data/lib/github_cli/commands.rb +2 -0
- data/lib/github_cli/commands/blobs.rb +0 -4
- data/lib/github_cli/commands/collaborators.rb +0 -8
- data/lib/github_cli/commands/commits.rb +0 -4
- data/lib/github_cli/commands/contents.rb +49 -0
- data/lib/github_cli/commands/downloads.rb +0 -8
- data/lib/github_cli/commands/emails.rb +0 -6
- data/lib/github_cli/commands/events.rb +0 -16
- data/lib/github_cli/commands/followers.rb +0 -10
- data/lib/github_cli/commands/forks.rb +0 -4
- data/lib/github_cli/commands/gists.rb +0 -18
- data/lib/github_cli/commands/hooks.rb +0 -10
- data/lib/github_cli/commands/issues.rb +0 -10
- data/lib/github_cli/commands/keys.rb +0 -10
- data/lib/github_cli/commands/labels.rb +0 -20
- data/lib/github_cli/commands/members.rb +0 -10
- data/lib/github_cli/commands/milestones.rb +0 -10
- data/lib/github_cli/commands/organizations.rb +0 -6
- data/lib/github_cli/commands/pull_requests.rb +0 -16
- data/lib/github_cli/commands/references.rb +0 -10
- data/lib/github_cli/commands/repositories.rb +0 -18
- data/lib/github_cli/commands/search.rb +39 -0
- data/lib/github_cli/commands/tags.rb +0 -4
- data/lib/github_cli/commands/teams.rb +0 -26
- data/lib/github_cli/commands/trees.rb +0 -4
- data/lib/github_cli/commands/users.rb +0 -4
- data/lib/github_cli/commands/watching.rb +0 -10
- data/lib/github_cli/subcommands.rb +6 -0
- data/lib/github_cli/version.rb +1 -1
- metadata +32 -12
@@ -9,15 +9,11 @@ module GithubCLI
|
|
9
9
|
method_option :user, :type => :string, :aliases => ["-u"],
|
10
10
|
:desc => 'Get a single unauthenticated <user>',
|
11
11
|
:banner => '<user>'
|
12
|
-
method_option :params, :type => :hash, :default => {},
|
13
|
-
:desc => 'Additional request parameters e.i per_page:100'
|
14
12
|
def get
|
15
13
|
User.get options[:user], options[:params], options[:format]
|
16
14
|
end
|
17
15
|
|
18
16
|
desc 'update', 'Update the authenticated user'
|
19
|
-
method_option :params, :type => :hash, :default => {},
|
20
|
-
:desc => 'Additonal request parameters e.i per_page:100'
|
21
17
|
def update
|
22
18
|
User.update options[:params], options[:format]
|
23
19
|
end
|
@@ -6,8 +6,6 @@ module GithubCLI
|
|
6
6
|
namespace :watch
|
7
7
|
|
8
8
|
desc 'watchers <user> <repo>', 'Lists repo watchers'
|
9
|
-
method_option :params, :type => :hash, :default => {},
|
10
|
-
:desc => 'Additional request parameters e.i per_page:100'
|
11
9
|
def watchers(user, repo)
|
12
10
|
Watching.watchers user, repo, options[:params], options[:format]
|
13
11
|
end
|
@@ -15,8 +13,6 @@ module GithubCLI
|
|
15
13
|
desc 'watched', 'Lists repos being watched by a user'
|
16
14
|
method_option :user, :type => :string, :aliases => ["-u"],
|
17
15
|
:desc => 'Watch repositories for <user>'
|
18
|
-
method_option :params, :type => :hash, :default => {},
|
19
|
-
:desc => 'Additional request parameters e.i per_page:100'
|
20
16
|
def watched(user, repo, id)
|
21
17
|
if options[:user]
|
22
18
|
options[:params]['user'] = options[:user]
|
@@ -25,22 +21,16 @@ module GithubCLI
|
|
25
21
|
end
|
26
22
|
|
27
23
|
desc 'watching <user> <repo>', 'Check if you are watching a repository'
|
28
|
-
method_option :params, :type => :hash, :default => {},
|
29
|
-
:desc => 'Additonal request parameters e.i per_page:100'
|
30
24
|
def watching(user, repo)
|
31
25
|
Watching.watching? user, repo, options[:params], options[:format]
|
32
26
|
end
|
33
27
|
|
34
28
|
desc 'start <user> <repo>', 'Watch a repository'
|
35
|
-
method_option :params, :type => :hash, :default => {},
|
36
|
-
:desc => 'Additonal request parameters e.i per_page:100'
|
37
29
|
def start(user, repo)
|
38
30
|
Watching.start_watching user, repo, options[:params], options[:format]
|
39
31
|
end
|
40
32
|
|
41
33
|
desc 'stop <user> <repo>', 'Stop watching a repository'
|
42
|
-
method_option :params, :type => :hash, :default => {},
|
43
|
-
:desc => 'Additonal request parameters e.i per_page:100'
|
44
34
|
def stop(user, repo)
|
45
35
|
Watching.stop_watching user, repo, options[:params], options[:format]
|
46
36
|
end
|
@@ -15,6 +15,9 @@ module GithubCLI
|
|
15
15
|
desc "commit <command>", "Leverage Commits API"
|
16
16
|
subcommand "commit", GithubCLI::Commands::Commits
|
17
17
|
|
18
|
+
desc "content <command>", "Leverage Contents API"
|
19
|
+
subcommand "content", GithubCLI::Commands::Contents
|
20
|
+
|
18
21
|
desc "download <command>", "Leverage Downloads API"
|
19
22
|
subcommand "download", GithubCLI::Commands::Downloads
|
20
23
|
|
@@ -63,6 +66,9 @@ module GithubCLI
|
|
63
66
|
desc "repo <command>", "Leverage Repositories API"
|
64
67
|
subcommand "repo", GithubCLI::Commands::Repositories
|
65
68
|
|
69
|
+
desc "search <command>", "Leverage Search API"
|
70
|
+
subcommand "search", GithubCLI::Commands::Search
|
71
|
+
|
66
72
|
desc "tag <command>", "Leverage Tags API"
|
67
73
|
subcommand "tag", GithubCLI::Commands::Tags
|
68
74
|
|
data/lib/github_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-28 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: github_api
|
16
|
-
requirement: &
|
16
|
+
requirement: &2156342420 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0.6'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2156342420
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: thor
|
27
|
-
requirement: &
|
27
|
+
requirement: &2156342000 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2156342000
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &2156341520 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2156341520
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: aruba
|
49
|
-
requirement: &
|
49
|
+
requirement: &2156341020 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2156341020
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rake
|
60
|
-
requirement: &
|
60
|
+
requirement: &2156340580 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2156340580
|
69
69
|
description: CLI-based access to GitHub API v3
|
70
70
|
email:
|
71
71
|
- pmurach@gmail.com
|
@@ -85,6 +85,10 @@ files:
|
|
85
85
|
- README.md
|
86
86
|
- Rakefile
|
87
87
|
- bin/ghc
|
88
|
+
- features/blob.feature
|
89
|
+
- features/collaborator.feature
|
90
|
+
- features/commit.feature
|
91
|
+
- features/content.feature
|
88
92
|
- features/download.feature
|
89
93
|
- features/email.feature
|
90
94
|
- features/errors.feature
|
@@ -92,14 +96,17 @@ files:
|
|
92
96
|
- features/executable.feature
|
93
97
|
- features/follower.feature
|
94
98
|
- features/fork.feature
|
99
|
+
- features/gist.feature
|
95
100
|
- features/hook.feature
|
96
101
|
- features/label.feature
|
97
102
|
- features/member.feature
|
98
103
|
- features/milestone.feature
|
99
104
|
- features/organization.feature
|
105
|
+
- features/pull_request.feature
|
100
106
|
- features/reference.feature
|
101
107
|
- features/repositories.feature
|
102
108
|
- features/search.feature
|
109
|
+
- features/search_commands.feature
|
103
110
|
- features/settings.feature
|
104
111
|
- features/support/env.rb
|
105
112
|
- features/support/hooks.rb
|
@@ -107,6 +114,7 @@ files:
|
|
107
114
|
- features/team.feature
|
108
115
|
- features/tree.feature
|
109
116
|
- features/user.feature
|
117
|
+
- features/watching.feature
|
110
118
|
- fixtures/.githubrc
|
111
119
|
- fixtures/simple_config
|
112
120
|
- ghc_logo.png
|
@@ -118,6 +126,7 @@ files:
|
|
118
126
|
- lib/github_cli/apis/blob.rb
|
119
127
|
- lib/github_cli/apis/collaborator.rb
|
120
128
|
- lib/github_cli/apis/commit.rb
|
129
|
+
- lib/github_cli/apis/content.rb
|
121
130
|
- lib/github_cli/apis/download.rb
|
122
131
|
- lib/github_cli/apis/email.rb
|
123
132
|
- lib/github_cli/apis/event.rb
|
@@ -134,6 +143,7 @@ files:
|
|
134
143
|
- lib/github_cli/apis/pull_request.rb
|
135
144
|
- lib/github_cli/apis/reference.rb
|
136
145
|
- lib/github_cli/apis/repository.rb
|
146
|
+
- lib/github_cli/apis/search.rb
|
137
147
|
- lib/github_cli/apis/tag.rb
|
138
148
|
- lib/github_cli/apis/team.rb
|
139
149
|
- lib/github_cli/apis/tree.rb
|
@@ -146,6 +156,7 @@ files:
|
|
146
156
|
- lib/github_cli/commands/blobs.rb
|
147
157
|
- lib/github_cli/commands/collaborators.rb
|
148
158
|
- lib/github_cli/commands/commits.rb
|
159
|
+
- lib/github_cli/commands/contents.rb
|
149
160
|
- lib/github_cli/commands/downloads.rb
|
150
161
|
- lib/github_cli/commands/emails.rb
|
151
162
|
- lib/github_cli/commands/events.rb
|
@@ -162,6 +173,7 @@ files:
|
|
162
173
|
- lib/github_cli/commands/pull_requests.rb
|
163
174
|
- lib/github_cli/commands/references.rb
|
164
175
|
- lib/github_cli/commands/repositories.rb
|
176
|
+
- lib/github_cli/commands/search.rb
|
165
177
|
- lib/github_cli/commands/tags.rb
|
166
178
|
- lib/github_cli/commands/teams.rb
|
167
179
|
- lib/github_cli/commands/trees.rb
|
@@ -218,6 +230,10 @@ specification_version: 3
|
|
218
230
|
summary: github_cli is a set of tools that provide full command line access to GitHub
|
219
231
|
API v3
|
220
232
|
test_files:
|
233
|
+
- features/blob.feature
|
234
|
+
- features/collaborator.feature
|
235
|
+
- features/commit.feature
|
236
|
+
- features/content.feature
|
221
237
|
- features/download.feature
|
222
238
|
- features/email.feature
|
223
239
|
- features/errors.feature
|
@@ -225,14 +241,17 @@ test_files:
|
|
225
241
|
- features/executable.feature
|
226
242
|
- features/follower.feature
|
227
243
|
- features/fork.feature
|
244
|
+
- features/gist.feature
|
228
245
|
- features/hook.feature
|
229
246
|
- features/label.feature
|
230
247
|
- features/member.feature
|
231
248
|
- features/milestone.feature
|
232
249
|
- features/organization.feature
|
250
|
+
- features/pull_request.feature
|
233
251
|
- features/reference.feature
|
234
252
|
- features/repositories.feature
|
235
253
|
- features/search.feature
|
254
|
+
- features/search_commands.feature
|
236
255
|
- features/settings.feature
|
237
256
|
- features/support/env.rb
|
238
257
|
- features/support/hooks.rb
|
@@ -240,6 +259,7 @@ test_files:
|
|
240
259
|
- features/team.feature
|
241
260
|
- features/tree.feature
|
242
261
|
- features/user.feature
|
262
|
+
- features/watching.feature
|
243
263
|
- spec/github_cli/api_spec.rb
|
244
264
|
- spec/github_cli/cli_spec.rb
|
245
265
|
- spec/github_cli/command_spec.rb
|