github_cli 0.6.1 → 0.6.2
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/.travis.yml +0 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +16 -12
- data/README.md +7 -1
- data/bin/gcli +1 -13
- data/features/content.feature +15 -6
- data/github_cli.gemspec +1 -0
- data/lib/github_cli.rb +1 -0
- data/lib/github_cli/apis/content.rb +6 -0
- data/lib/github_cli/cli.rb +4 -6
- data/lib/github_cli/commands/contents.rb +52 -1
- data/lib/github_cli/dsl.rb +25 -20
- data/lib/github_cli/ui.rb +11 -8
- data/lib/github_cli/version.rb +1 -1
- data/spec/github_cli/commands/contents_spec.rb +5 -0
- data/spec/github_cli/dsl_spec.rb +32 -0
- data/spec/github_cli/ui_spec.rb +28 -0
- data/spec/spec_helper.rb +26 -0
- metadata +29 -14
data/.travis.yml
CHANGED
@@ -6,18 +6,14 @@ rvm:
|
|
6
6
|
- 1.9.3
|
7
7
|
- 2.0.0
|
8
8
|
- ruby-head
|
9
|
-
- jruby-18mode
|
10
9
|
- jruby-19mode
|
11
|
-
- rbx-18mode
|
12
10
|
- rbx-19mode
|
13
11
|
- jruby-head
|
14
12
|
matrix:
|
15
13
|
allow_failures:
|
16
14
|
- rvm: ruby-head
|
17
15
|
- rvm: jruby-head
|
18
|
-
- rvm: jruby-18mode
|
19
16
|
- rvm: jruby-19mode
|
20
|
-
- rvm: rbx-18mode
|
21
17
|
- rvm: rbx-19mode
|
22
18
|
branches:
|
23
19
|
only: master
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
0.6.2 (October 6, 2013)
|
2
|
+
|
3
|
+
* Add commands to repository contents API
|
4
|
+
* Add tty dependency and fix issue #12 when reading user password
|
5
|
+
* Change error message debug
|
6
|
+
* Change on_error handler to catch common types of exceptions
|
7
|
+
* Change executable to use new error helper
|
8
|
+
|
1
9
|
0.6.1 (June 9, 2013)
|
2
10
|
|
3
11
|
* Add stat command for Statistics API
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
github_cli (0.6.
|
4
|
+
github_cli (0.6.2)
|
5
5
|
github_api (~> 0.10)
|
6
|
+
tty (~> 0.0.10)
|
6
7
|
|
7
8
|
GEM
|
8
9
|
remote: https://rubygems.org/
|
9
10
|
specs:
|
10
|
-
addressable (2.3.
|
11
|
+
addressable (2.3.5)
|
11
12
|
aruba (0.5.1)
|
12
13
|
childprocess (~> 0.3.6)
|
13
14
|
cucumber (>= 1.1.1)
|
@@ -25,17 +26,17 @@ GEM
|
|
25
26
|
gherkin (~> 2.11.0)
|
26
27
|
json (>= 1.4.6)
|
27
28
|
diff-lcs (1.2.1)
|
28
|
-
faraday (0.8.
|
29
|
-
multipart-post (~> 1.
|
29
|
+
faraday (0.8.8)
|
30
|
+
multipart-post (~> 1.2.0)
|
30
31
|
ffi (1.3.1)
|
31
32
|
gherkin (2.11.6)
|
32
33
|
json (>= 1.7.6)
|
33
|
-
github_api (0.10.
|
34
|
+
github_api (0.10.2)
|
34
35
|
addressable
|
35
|
-
faraday (~> 0.8.
|
36
|
+
faraday (~> 0.8.7)
|
36
37
|
hashie (>= 1.2)
|
37
38
|
multi_json (~> 1.4)
|
38
|
-
nokogiri (~> 1.
|
39
|
+
nokogiri (~> 1.6.0)
|
39
40
|
oauth2
|
40
41
|
hashie (2.0.5)
|
41
42
|
hpricot (0.8.6)
|
@@ -43,14 +44,16 @@ GEM
|
|
43
44
|
json (1.8.0)
|
44
45
|
jwt (0.1.8)
|
45
46
|
multi_json (>= 1.5)
|
46
|
-
|
47
|
-
|
47
|
+
mini_portile (0.5.1)
|
48
|
+
multi_json (1.7.7)
|
49
|
+
multi_xml (0.5.4)
|
48
50
|
multipart-post (1.2.0)
|
49
51
|
mustache (0.99.4)
|
50
|
-
nokogiri (1.
|
51
|
-
|
52
|
+
nokogiri (1.6.0)
|
53
|
+
mini_portile (~> 0.5.0)
|
54
|
+
oauth2 (0.9.2)
|
52
55
|
faraday (~> 0.8)
|
53
|
-
httpauth (~> 0.
|
56
|
+
httpauth (~> 0.2)
|
54
57
|
jwt (~> 0.1.4)
|
55
58
|
multi_json (~> 1.0)
|
56
59
|
multi_xml (~> 0.5)
|
@@ -77,6 +80,7 @@ GEM
|
|
77
80
|
rack-protection (~> 1.2)
|
78
81
|
tilt (~> 1.3, >= 1.3.3)
|
79
82
|
tilt (1.3.3)
|
83
|
+
tty (0.0.10)
|
80
84
|
|
81
85
|
PLATFORMS
|
82
86
|
ruby
|
data/README.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
# GithubCLI
|
2
|
-
[](http://badge.fury.io/rb/github_cli) [][travis] [][gemnasium] [][codeclimate]
|
3
2
|
|
3
|
+
[][gem]
|
4
|
+
[][travis]
|
5
|
+
[][gemnasium]
|
6
|
+
[][codeclimate]
|
7
|
+
[Website](http://peter-murach.github.io/github/)
|
8
|
+
|
9
|
+
[gem]: http://badge.fury.io/rb/github_cli
|
4
10
|
[travis]: http://travis-ci.org/peter-murach/github_cli
|
5
11
|
[gemnasium]: https://gemnasium.com/peter-murach/github_cli
|
6
12
|
[codeclimate]: https://codeclimate.com/github/peter-murach/github_cli
|
data/bin/gcli
CHANGED
@@ -6,16 +6,4 @@ lib_dir = File.expand_path("../../lib", __FILE__)
|
|
6
6
|
$LOAD_PATH.unshift lib_dir if File.directory?(lib_dir)
|
7
7
|
|
8
8
|
require "github_cli"
|
9
|
-
|
10
|
-
GithubCLI::CLI.start
|
11
|
-
rescue Interrupt => e
|
12
|
-
GithubCLI.ui.error "\nQuitting..."
|
13
|
-
GithubCLI.ui.debug e.backtrace.join("\n")
|
14
|
-
exit 1
|
15
|
-
rescue SystemExit => e
|
16
|
-
exit e.status
|
17
|
-
rescue Exception => e
|
18
|
-
GithubCLI.ui.error "Fatal error has occurred. " + e.message.to_s
|
19
|
-
GithubCLI.ui.debug e.backtrace.join("\n")
|
20
|
-
exit 1
|
21
|
-
end
|
9
|
+
GithubCLI.on_error { GithubCLI::CLI.start }
|
data/features/content.feature
CHANGED
@@ -6,23 +6,32 @@ Feature: gcli content
|
|
6
6
|
When I run `gcli content`
|
7
7
|
Then the exit status should be 0
|
8
8
|
And the output should contain "content get"
|
9
|
+
And the output should contain "content create"
|
9
10
|
And the output should contain "content readme"
|
10
11
|
And the output should contain "content archive"
|
11
12
|
|
12
|
-
Scenario:
|
13
|
+
Scenario: Get content
|
13
14
|
Given the GitHub API server:
|
14
15
|
"""
|
15
|
-
get('/repos/wycats/thor/
|
16
|
+
get('/repos/wycats/thor/contents/lib') { status 200 }
|
16
17
|
"""
|
17
|
-
When I run `gcli content
|
18
|
+
When I run `gcli content get wycats thor lib`
|
18
19
|
Then the exit status should be 0
|
19
20
|
|
20
|
-
Scenario:
|
21
|
+
Scenario: Create content
|
21
22
|
Given the GitHub API server:
|
22
23
|
"""
|
23
|
-
|
24
|
+
put('/repos/wycats/thor/contents/lib') { status 200 }
|
24
25
|
"""
|
25
|
-
When I run `gcli content
|
26
|
+
When I run `gcli content create wycats thor lib`
|
27
|
+
Then the exit status should be 0
|
28
|
+
|
29
|
+
Scenario: Readme
|
30
|
+
Given the GitHub API server:
|
31
|
+
"""
|
32
|
+
get('/repos/wycats/thor/readme') { status 200 }
|
33
|
+
"""
|
34
|
+
When I run `gcli content readme wycats thor`
|
26
35
|
Then the exit status should be 0
|
27
36
|
|
28
37
|
Scenario: Archive
|
data/github_cli.gemspec
CHANGED
data/lib/github_cli.rb
CHANGED
@@ -11,6 +11,12 @@ module GithubCLI
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
+
def create(user, repo, path, params, options)
|
15
|
+
output options do
|
16
|
+
github_api(options).repos.contents.create user, repo, path, params
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
14
20
|
def readme(user, repo, params, options)
|
15
21
|
output options do
|
16
22
|
github_api(options).repos.contents.readme user, repo, params
|
data/lib/github_cli/cli.rb
CHANGED
@@ -26,8 +26,6 @@ module GithubCLI
|
|
26
26
|
|
27
27
|
map ALIASES
|
28
28
|
|
29
|
-
# can extract class options into global options module
|
30
|
-
|
31
29
|
class_option :filename, :type => :string,
|
32
30
|
:desc => "Configuration file name.", :banner => "<filename>",
|
33
31
|
:default => ".githubrc"
|
@@ -69,7 +67,7 @@ module GithubCLI
|
|
69
67
|
'core.no-pager' => false,
|
70
68
|
'core.no-color' => false,
|
71
69
|
'core.quiet' => false,
|
72
|
-
'core.format' =>
|
70
|
+
'core.format' => 'table',
|
73
71
|
'core.auto_pagination' => false,
|
74
72
|
'core.aliases' => nil,
|
75
73
|
}
|
@@ -100,8 +98,8 @@ module GithubCLI
|
|
100
98
|
params['note_url'] = options[:note_url] || 'https://github.com/peter-murach/github_cli'
|
101
99
|
global_options[:params] = params
|
102
100
|
# Need to configure client with login and password
|
103
|
-
login
|
104
|
-
password = ask("password: ")
|
101
|
+
login = TTY.shell.ask("login: ").read_string.strip!
|
102
|
+
password = TTY.shell.ask("password: ").read_password.strip!
|
105
103
|
|
106
104
|
global_options['login'] = login
|
107
105
|
global_options['password'] = password
|
@@ -117,7 +115,7 @@ module GithubCLI
|
|
117
115
|
config['user.token'] = token
|
118
116
|
|
119
117
|
GithubCLI.ui.warn <<-EOF
|
120
|
-
|
118
|
+
\nYour #{GithubCLI.config.location} configuration file has been overwritten!
|
121
119
|
EOF
|
122
120
|
end
|
123
121
|
|
@@ -9,7 +9,7 @@ module GithubCLI
|
|
9
9
|
:desc => "The String name of the Commit/Branch/Tag. Defaults to master."
|
10
10
|
desc 'get <user> <repo> <path>', 'Get repository <path> contents'
|
11
11
|
long_desc <<-DESC
|
12
|
-
This
|
12
|
+
This command returns the contents of any file or directory in a repository.
|
13
13
|
|
14
14
|
Parameters
|
15
15
|
|
@@ -23,6 +23,57 @@ module GithubCLI
|
|
23
23
|
Content.get user, repo, path, params, global_options
|
24
24
|
end
|
25
25
|
|
26
|
+
option :path, :type => :string, :required => true, :banner => "",
|
27
|
+
:desc => "the content path"
|
28
|
+
option :message, :type => :string, :required => true, :banner => "",
|
29
|
+
:desc => "the commit message"
|
30
|
+
option :content, :type => :string, :required => true, :banner => "",
|
31
|
+
:desc => "the new file content which will be Base64 encoded"
|
32
|
+
option :branch, :type => :string, :required => true, :banner => "",
|
33
|
+
:desc => "the branch name"
|
34
|
+
option :"author-name", :type => :string,
|
35
|
+
:desc => "the name of the author of the commit"
|
36
|
+
option :"author-email", :type => :string,
|
37
|
+
:desc => "the email of the author of the commit"
|
38
|
+
option :"committer-name", :type => :string,
|
39
|
+
:desc => "the name of the committer of the commit"
|
40
|
+
option :"committer-email", :type => :string,
|
41
|
+
:desc => "the email of the committer of the commit"
|
42
|
+
desc 'create <user> <repo> <path>', 'Create repository <path> contents'
|
43
|
+
long_desc <<-DESC
|
44
|
+
This command creates a new file in a repository
|
45
|
+
|
46
|
+
Parameters
|
47
|
+
|
48
|
+
path - Requried string - The content path
|
49
|
+
message - Requried string - The commit message
|
50
|
+
content - Requried string - The new file content,
|
51
|
+
which will be Base64 encoded
|
52
|
+
branch - Optional string - The branch name. If not provided,
|
53
|
+
uses the repository’s default branch (usually master)
|
54
|
+
|
55
|
+
Optional Parameters
|
56
|
+
|
57
|
+
author.name - string - The name of the author of the commit
|
58
|
+
author.email - string - The email of the author of the commit
|
59
|
+
committer.name - string - The name of the committer of the commit
|
60
|
+
committer.email - string - The email of the committer of the commit
|
61
|
+
DESC
|
62
|
+
def create(user, repo, path)
|
63
|
+
global_options = options.dup
|
64
|
+
params = options[:params].dup
|
65
|
+
params['path'] = options[:path]
|
66
|
+
params['message'] = options[:message]
|
67
|
+
params['content'] = options[:content]
|
68
|
+
params['branch'] = options[:branch] if options[:branch]
|
69
|
+
params['author.name'] = options['author-name'] if options['author-name']
|
70
|
+
params['author.email'] = options['author-email'] if options['author-email']
|
71
|
+
params['committer.name'] = options['committer-name'] if options['committer-name']
|
72
|
+
params['committer.email'] = options['committer-email'] if options['committer-email']
|
73
|
+
Util.hash_without!(global_options, params.keys + ['author-name', 'author-email', 'committer-name', 'committer-email', 'params'])
|
74
|
+
Content.create user, repo, path, params, global_options
|
75
|
+
end
|
76
|
+
|
26
77
|
option :ref, :type => :string,
|
27
78
|
:desc => "The String name of the Commit/Branch/Tag. Defaults to master."
|
28
79
|
desc 'readme <user> <repo>', 'Get the README'
|
data/lib/github_cli/dsl.rb
CHANGED
@@ -1,36 +1,41 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
3
|
module GithubCLI
|
4
|
+
|
5
|
+
# Defines helpers
|
4
6
|
module DSL
|
5
|
-
|
6
|
-
|
7
|
+
|
8
|
+
@program_name = $PROGRAM_NAME.split(/\//)[-1]
|
7
9
|
|
8
10
|
# Defines a program name.
|
9
11
|
#
|
10
|
-
def program_name(name=nil)
|
11
|
-
|
12
|
-
@@program_name = name
|
13
|
-
end
|
14
|
-
@@program_name
|
12
|
+
def program_name(name = nil)
|
13
|
+
@program_name = name || @program_name
|
15
14
|
end
|
16
15
|
|
17
16
|
# Defines behaviour on error to emit consistent type.
|
18
17
|
#
|
19
18
|
def on_error
|
20
19
|
yield
|
21
|
-
rescue
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
20
|
+
rescue Github::Error::NotFound => e
|
21
|
+
terminal.newline
|
22
|
+
ui.error 'Resource Not Found'
|
23
|
+
terminal.newline
|
24
|
+
exit 15
|
25
|
+
rescue GithubCLI::GithubCLIError => e
|
26
|
+
GithubCLI.ui.error e.message
|
27
|
+
GithubCLI.ui.debug e
|
28
|
+
exit e.status_code
|
29
|
+
rescue Interrupt => e
|
30
|
+
GithubCLI.ui.error "\nQuitting..."
|
31
|
+
GithubCLI.ui.debug e
|
32
|
+
exit 1
|
33
|
+
rescue SystemExit => e
|
34
|
+
exit e.status
|
35
|
+
rescue Exception => e
|
36
|
+
GithubCLI.ui.error "\nFatal error has occurred. " + e.message.to_s
|
37
|
+
GithubCLI.ui.debug e
|
38
|
+
exit 1
|
34
39
|
end
|
35
40
|
|
36
41
|
def before(&block)
|
data/lib/github_cli/ui.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
3
|
module GithubCLI
|
4
|
+
|
5
|
+
# Class responsible for displaying different level information
|
4
6
|
class UI
|
5
7
|
attr_writer :shell
|
6
8
|
|
@@ -10,24 +12,25 @@ module GithubCLI
|
|
10
12
|
@debug = ENV['DEBUG']
|
11
13
|
end
|
12
14
|
|
13
|
-
def confirm(message, newline=nil)
|
15
|
+
def confirm(message, newline = nil)
|
14
16
|
@shell.say message, :green, newline
|
15
17
|
end
|
16
18
|
|
17
|
-
def info(message, newline=nil)
|
19
|
+
def info(message, newline = nil)
|
18
20
|
@shell.say message, nil, newline
|
19
21
|
end
|
20
22
|
|
21
|
-
def warn(message, newline=nil)
|
23
|
+
def warn(message, newline = nil)
|
22
24
|
@shell.say message, :yellow, newline
|
23
25
|
end
|
24
26
|
|
25
|
-
def error(message, newline=nil)
|
27
|
+
def error(message, newline = nil)
|
26
28
|
@shell.say message, :red, newline
|
27
29
|
end
|
28
30
|
|
29
|
-
def debug(
|
30
|
-
|
31
|
+
def debug(error, newline = nil)
|
32
|
+
message = ["#{error.class}: #{error.message}", *error.backtrace]
|
33
|
+
@shell.say message.join("\n"), nil, newline
|
31
34
|
end
|
32
35
|
|
33
36
|
def quite!
|
@@ -38,11 +41,11 @@ module GithubCLI
|
|
38
41
|
@debug = true
|
39
42
|
end
|
40
43
|
|
41
|
-
def print_table(table, options={})
|
44
|
+
def print_table(table, options = {})
|
42
45
|
@shell.print_table table, options
|
43
46
|
end
|
44
47
|
|
45
|
-
def print_wrapped(message, options={})
|
48
|
+
def print_wrapped(message, options = {})
|
46
49
|
@shell.print_wrapped message, options
|
47
50
|
end
|
48
51
|
|
data/lib/github_cli/version.rb
CHANGED
@@ -29,6 +29,11 @@ describe GithubCLI::Commands::Contents do
|
|
29
29
|
subject.invoke "content:get", [user, repo, path], :ref => "master"
|
30
30
|
end
|
31
31
|
|
32
|
+
it "invokes content:create" do
|
33
|
+
api_class.should_receive(:create).with(user, repo, path, {'path' => path, 'message' => 'commit', 'content' => 'puts'}, format)
|
34
|
+
subject.invoke "content:create", [user, repo, path], {:path => path, :message => 'commit', :content => 'puts'}
|
35
|
+
end
|
36
|
+
|
32
37
|
it "invokes content:archive" do
|
33
38
|
api_class.should_receive(:archive).with(user, repo, {}, format)
|
34
39
|
subject.invoke "content:archive", [user, repo]
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe GithubCLI, 'dsl' do
|
6
|
+
let(:object) { described_class }
|
7
|
+
let(:error_cli) { GithubCLI::GitHubError }
|
8
|
+
|
9
|
+
before {
|
10
|
+
GithubCLI.ui.stub(:error)
|
11
|
+
GithubCLI.ui.stub(:debug)
|
12
|
+
}
|
13
|
+
|
14
|
+
after {
|
15
|
+
GithubCLI.ui.unstub(:error)
|
16
|
+
GithubCLI.ui.unstub(:debug)
|
17
|
+
}
|
18
|
+
|
19
|
+
context 'on_error' do
|
20
|
+
it "handles internal cli errors" do
|
21
|
+
expect { object.on_error { raise error_cli } }.to exit_with_code(11)
|
22
|
+
end
|
23
|
+
|
24
|
+
it "handles interrupts" do
|
25
|
+
expect { object.on_error { raise Interrupt } }.to exit_with_code(1)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "handles fatal exceptions" do
|
29
|
+
expect { object.on_error { raise Exception } }.to exit_with_code(1)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
Shell = Class.new do
|
6
|
+
def say(*args)
|
7
|
+
args.first
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
describe GithubCLI::UI do
|
12
|
+
let(:shell) { Shell.new }
|
13
|
+
let(:message) { "error" }
|
14
|
+
let(:object) { described_class.new(shell) }
|
15
|
+
|
16
|
+
subject { object }
|
17
|
+
|
18
|
+
it "confirms message" do
|
19
|
+
expect(object.confirm(message)).to eql(message)
|
20
|
+
end
|
21
|
+
|
22
|
+
it "debugs the error message" do
|
23
|
+
error = double(:error, message: message,
|
24
|
+
class: 'Exception',
|
25
|
+
backtrace: ['line1', 'line2'])
|
26
|
+
expect(object.debug(error)).to eql("Exception: error\nline1\nline2")
|
27
|
+
end
|
28
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -10,6 +10,32 @@ RSpec.configure do |config|
|
|
10
10
|
config.order = :rand
|
11
11
|
end
|
12
12
|
|
13
|
+
RSpec::Matchers.define :exit_with_code do |status_code|
|
14
|
+
actual = nil
|
15
|
+
|
16
|
+
match do |block|
|
17
|
+
begin
|
18
|
+
block.call
|
19
|
+
rescue SystemExit => e
|
20
|
+
actual = e.status
|
21
|
+
end
|
22
|
+
actual and actual == status_code
|
23
|
+
end
|
24
|
+
|
25
|
+
failure_message_for_should do |block|
|
26
|
+
"expected block to call exit(#{status_code}) but exit" +
|
27
|
+
(actual.nil? ? " not called" : "(#{actual}) was called")
|
28
|
+
end
|
29
|
+
|
30
|
+
failure_message_for_should_not do |block|
|
31
|
+
"expected block not to call exit(#{status_code})"
|
32
|
+
end
|
33
|
+
|
34
|
+
description do
|
35
|
+
"expect block to call exit(#{status_code})"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
13
39
|
def fixture(name)
|
14
40
|
File.read File.expand_path File.join(File.dirname(__FILE__), '..', 'fixtures', name)
|
15
41
|
end
|
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.6.
|
4
|
+
version: 0.6.2
|
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: 2013-06
|
12
|
+
date: 2013-10-06 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: github_api
|
16
|
-
requirement: &
|
16
|
+
requirement: &2152245860 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,21 @@ dependencies:
|
|
21
21
|
version: '0.10'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2152245860
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: tty
|
27
|
+
requirement: &2152243640 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.0.10
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *2152243640
|
25
36
|
- !ruby/object:Gem::Dependency
|
26
37
|
name: rspec
|
27
|
-
requirement: &
|
38
|
+
requirement: &2152242660 !ruby/object:Gem::Requirement
|
28
39
|
none: false
|
29
40
|
requirements:
|
30
41
|
- - ! '>='
|
@@ -32,10 +43,10 @@ dependencies:
|
|
32
43
|
version: '0'
|
33
44
|
type: :development
|
34
45
|
prerelease: false
|
35
|
-
version_requirements: *
|
46
|
+
version_requirements: *2152242660
|
36
47
|
- !ruby/object:Gem::Dependency
|
37
48
|
name: aruba
|
38
|
-
requirement: &
|
49
|
+
requirement: &2152241400 !ruby/object:Gem::Requirement
|
39
50
|
none: false
|
40
51
|
requirements:
|
41
52
|
- - ! '>='
|
@@ -43,10 +54,10 @@ dependencies:
|
|
43
54
|
version: '0'
|
44
55
|
type: :development
|
45
56
|
prerelease: false
|
46
|
-
version_requirements: *
|
57
|
+
version_requirements: *2152241400
|
47
58
|
- !ruby/object:Gem::Dependency
|
48
59
|
name: rake
|
49
|
-
requirement: &
|
60
|
+
requirement: &2152240440 !ruby/object:Gem::Requirement
|
50
61
|
none: false
|
51
62
|
requirements:
|
52
63
|
- - ! '>='
|
@@ -54,10 +65,10 @@ dependencies:
|
|
54
65
|
version: '0'
|
55
66
|
type: :development
|
56
67
|
prerelease: false
|
57
|
-
version_requirements: *
|
68
|
+
version_requirements: *2152240440
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: communist
|
60
|
-
requirement: &
|
71
|
+
requirement: &2152239640 !ruby/object:Gem::Requirement
|
61
72
|
none: false
|
62
73
|
requirements:
|
63
74
|
- - ! '>='
|
@@ -65,10 +76,10 @@ dependencies:
|
|
65
76
|
version: '0'
|
66
77
|
type: :development
|
67
78
|
prerelease: false
|
68
|
-
version_requirements: *
|
79
|
+
version_requirements: *2152239640
|
69
80
|
- !ruby/object:Gem::Dependency
|
70
81
|
name: ronn
|
71
|
-
requirement: &
|
82
|
+
requirement: &2152238500 !ruby/object:Gem::Requirement
|
72
83
|
none: false
|
73
84
|
requirements:
|
74
85
|
- - ! '>='
|
@@ -76,7 +87,7 @@ dependencies:
|
|
76
87
|
version: '0'
|
77
88
|
type: :development
|
78
89
|
prerelease: false
|
79
|
-
version_requirements: *
|
90
|
+
version_requirements: *2152238500
|
80
91
|
description: CLI-based access to GitHub API v3
|
81
92
|
email:
|
82
93
|
- ''
|
@@ -307,8 +318,10 @@ files:
|
|
307
318
|
- spec/github_cli/commands/users_spec.rb
|
308
319
|
- spec/github_cli/commands/watching_spec.rb
|
309
320
|
- spec/github_cli/config_spec.rb
|
321
|
+
- spec/github_cli/dsl_spec.rb
|
310
322
|
- spec/github_cli/helpers_spec.rb
|
311
323
|
- spec/github_cli/pager_spec.rb
|
324
|
+
- spec/github_cli/ui_spec.rb
|
312
325
|
- spec/github_cli/util/convert_value_spec.rb
|
313
326
|
- spec/github_cli/util/convert_values_spec.rb
|
314
327
|
- spec/github_cli/util_spec.rb
|
@@ -430,8 +443,10 @@ test_files:
|
|
430
443
|
- spec/github_cli/commands/users_spec.rb
|
431
444
|
- spec/github_cli/commands/watching_spec.rb
|
432
445
|
- spec/github_cli/config_spec.rb
|
446
|
+
- spec/github_cli/dsl_spec.rb
|
433
447
|
- spec/github_cli/helpers_spec.rb
|
434
448
|
- spec/github_cli/pager_spec.rb
|
449
|
+
- spec/github_cli/ui_spec.rb
|
435
450
|
- spec/github_cli/util/convert_value_spec.rb
|
436
451
|
- spec/github_cli/util/convert_values_spec.rb
|
437
452
|
- spec/github_cli/util_spec.rb
|