github_api 0.11.2 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +139 -78
- data/Rakefile +13 -1
- data/features/cassettes/{auths/list.yml → repos/pages/get.yml} +14 -12
- data/features/cassettes/repos/pages/list_builds.yml +63 -0
- data/features/cassettes/repos/pages/list_latest_builds.yml +62 -0
- data/features/repos/pages.feature +24 -0
- data/features/settings.yml +7 -0
- data/lib/github_api.rb +0 -1
- data/lib/github_api/authorizations.rb +55 -41
- data/lib/github_api/authorizations/app.rb +77 -0
- data/lib/github_api/core_ext/array.rb +13 -5
- data/lib/github_api/core_ext/hash.rb +49 -30
- data/lib/github_api/repos.rb +6 -0
- data/lib/github_api/repos/deployments.rb +8 -0
- data/lib/github_api/repos/pages.rb +49 -0
- data/lib/github_api/validations/required.rb +1 -1
- data/lib/github_api/version.rb +1 -1
- data/spec/github/authorizations/app/create_spec.rb +44 -0
- data/spec/github/authorizations/app/delete_spec.rb +59 -0
- data/spec/github/authorizations/create_spec.rb +13 -13
- data/spec/github/authorizations/delete_spec.rb +5 -4
- data/spec/github/core_ext/hash_spec.rb +5 -5
- data/spec/github/normalizer_spec.rb +2 -2
- data/spec/github/parameter_filter_spec.rb +5 -5
- metadata +49 -43
- data/features/authorizations.feature +0 -12
- data/lib/github_api/core_ext/deep_merge.rb +0 -13
- data/lib/github_api/ssl_certs/cacert.pem +0 -41
data/lib/github_api/repos.rb
CHANGED
@@ -14,6 +14,7 @@ module Github
|
|
14
14
|
'hooks',
|
15
15
|
'keys',
|
16
16
|
'merging',
|
17
|
+
'pages',
|
17
18
|
'pub_sub_hubbub',
|
18
19
|
'releases',
|
19
20
|
'statistics',
|
@@ -90,6 +91,11 @@ module Github
|
|
90
91
|
@merging ||= ApiFactory.new('Repos::Merging', current_options.merge(options), &block)
|
91
92
|
end
|
92
93
|
|
94
|
+
# Access to Repos::Pages API
|
95
|
+
def pages(options={}, &block)
|
96
|
+
@pages ||= ApiFactory.new('Repos::Pages', current_options.merge(options), &block)
|
97
|
+
end
|
98
|
+
|
93
99
|
# Access to Repos::PubSubHubbub API
|
94
100
|
def pubsubhubbub(options={}, &block)
|
95
101
|
@pubsubhubbub ||= ApiFactory.new('Repos::PubSubHubbub', current_options.merge(options), &block)
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
module Github
|
4
|
+
|
5
|
+
# The Pages API retrieves information about your GitHub Pages configuration,
|
6
|
+
# and the statuses of your builds. Information about the site and the builds
|
7
|
+
# can only be accessed by authenticated owners, even though the websites
|
8
|
+
# are public.
|
9
|
+
class Repos::Pages < API
|
10
|
+
|
11
|
+
# List Pages builds
|
12
|
+
#
|
13
|
+
# @example
|
14
|
+
# github = Github.new
|
15
|
+
# github.repos.pages.list owner: 'owner-name', repo: 'repo-name'
|
16
|
+
#
|
17
|
+
# github = Github.new
|
18
|
+
# github.repos.pages.list :latest, owner: 'owner-name', repo: 'repo-name'
|
19
|
+
# @api public
|
20
|
+
def list(*args)
|
21
|
+
arguments(args, required: [:owner, :repo])
|
22
|
+
params = arguments.params
|
23
|
+
|
24
|
+
response = if args.map(&:to_s).include?('latest')
|
25
|
+
get_request("/repos/#{owner}/#{repo}/pages/builds/latest", params)
|
26
|
+
else
|
27
|
+
get_request("/repos/#{owner}/#{repo}/pages/builds", params)
|
28
|
+
end
|
29
|
+
return response unless block_given?
|
30
|
+
response.each { |el| yield el }
|
31
|
+
end
|
32
|
+
alias :all :list
|
33
|
+
|
34
|
+
# Get information about a Pages site
|
35
|
+
#
|
36
|
+
# @example
|
37
|
+
# github = Github.new
|
38
|
+
# github.repos.pages.get owner: 'owner-name', repo: 'repo-name'
|
39
|
+
#
|
40
|
+
# @api public
|
41
|
+
def get(*args)
|
42
|
+
arguments(args, required: [:owner, :repo])
|
43
|
+
|
44
|
+
get_request("/repos/#{owner}/#{repo}/pages", arguments.params)
|
45
|
+
end
|
46
|
+
alias :find :get
|
47
|
+
|
48
|
+
end # Pages
|
49
|
+
end # Github
|
data/lib/github_api/version.rb
CHANGED
@@ -0,0 +1,44 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Github::Authorizations::App, '#create' do
|
6
|
+
let(:basic_auth) { 'login:password' }
|
7
|
+
let(:host) { "https://#{basic_auth}@api.github.com" }
|
8
|
+
let(:inputs) { { :scopes => ['repo'] } }
|
9
|
+
let(:request_path) { "/authorizations/clients/#{client_id}" }
|
10
|
+
|
11
|
+
before {
|
12
|
+
subject.basic_auth = basic_auth
|
13
|
+
|
14
|
+
stub_put(request_path, host).to_return(body: body, status: status,
|
15
|
+
headers: {content_type: 'application/json; charset=utf-8'})
|
16
|
+
}
|
17
|
+
|
18
|
+
after { reset_authentication_for(subject) }
|
19
|
+
|
20
|
+
context 'when app creates token' do
|
21
|
+
let(:body) { fixture('auths/authorization.json') }
|
22
|
+
let(:status) { 201 }
|
23
|
+
let(:client_id) { 1 }
|
24
|
+
|
25
|
+
it "creates resource successfully" do
|
26
|
+
subject.create client_id
|
27
|
+
a_put(request_path, host).should have_been_made
|
28
|
+
end
|
29
|
+
|
30
|
+
it "fails without client_id" do
|
31
|
+
expect { subject.create }.to raise_error(ArgumentError)
|
32
|
+
end
|
33
|
+
|
34
|
+
it "returns the resource" do
|
35
|
+
authorization = subject.create client_id
|
36
|
+
authorization.should be_a Github::ResponseWrapper
|
37
|
+
end
|
38
|
+
|
39
|
+
it "gets the authorization information" do
|
40
|
+
authorization = subject.create client_id
|
41
|
+
authorization.token.should == 'abc123'
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end # create
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Github::Authorizations::App, '#delete' do
|
6
|
+
let(:basic_auth) { 'login:password' }
|
7
|
+
let(:host) { "https://#{basic_auth}@api.github.com" }
|
8
|
+
let(:client_id) { 1 }
|
9
|
+
|
10
|
+
before {
|
11
|
+
stub_delete(request_path, host).to_return(:body => body, :status => status,
|
12
|
+
:headers => {:content_type => "application/json; charset=utf-8"})
|
13
|
+
}
|
14
|
+
|
15
|
+
before { subject.basic_auth = basic_auth }
|
16
|
+
|
17
|
+
after { reset_authentication_for(subject) }
|
18
|
+
|
19
|
+
context "when app revokes all tokens" do
|
20
|
+
let(:request_path) { "/applications/#{client_id}/tokens" }
|
21
|
+
let(:body) { '' }
|
22
|
+
let(:status) { 204 }
|
23
|
+
|
24
|
+
it "fails to get resource without basic authentication" do
|
25
|
+
reset_authentication_for subject
|
26
|
+
expect { subject.delete }.to raise_error(ArgumentError)
|
27
|
+
end
|
28
|
+
|
29
|
+
it "revokes resource successfully" do
|
30
|
+
subject.delete client_id
|
31
|
+
a_delete(request_path, host).should have_been_made
|
32
|
+
end
|
33
|
+
|
34
|
+
it_should_behave_like 'request failure' do
|
35
|
+
let(:requestable) { subject.delete client_id }
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
context 'when app revokes a token' do
|
40
|
+
let(:access_token) { 'abcdef'}
|
41
|
+
let(:request_path) { "/applications/#{client_id}/tokens/#{access_token}" }
|
42
|
+
let(:body) { '' }
|
43
|
+
let(:status) { 204 }
|
44
|
+
|
45
|
+
it "revokes resource successfully" do
|
46
|
+
subject.delete client_id, access_token
|
47
|
+
a_delete(request_path, host).should have_been_made
|
48
|
+
end
|
49
|
+
|
50
|
+
it "revokes resource successfully with access token as parameter" do
|
51
|
+
subject.delete client_id, access_token: access_token
|
52
|
+
a_delete(request_path, host).should have_been_made
|
53
|
+
end
|
54
|
+
|
55
|
+
it_should_behave_like 'request failure' do
|
56
|
+
let(:requestable) { subject.delete client_id, access_token }
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end # delete
|
@@ -3,40 +3,41 @@
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
5
|
describe Github::Authorizations, '#create' do
|
6
|
-
let(:basic_auth)
|
6
|
+
let(:basic_auth) { 'login:password' }
|
7
|
+
let(:host) { "https://#{basic_auth}@api.github.com" }
|
8
|
+
let(:inputs) { { :scopes => ['repo'] } }
|
7
9
|
let(:request_path) { "/authorizations" }
|
8
|
-
let(:host) { "https://#{basic_auth}@api.github.com" }
|
9
|
-
let(:inputs) { { :scopes => ['repo'] } }
|
10
10
|
|
11
11
|
before {
|
12
|
-
|
13
|
-
:headers => {:content_type => "application/json; charset=utf-8"})
|
14
|
-
}
|
12
|
+
subject.basic_auth = basic_auth
|
15
13
|
|
16
|
-
|
14
|
+
stub_post(request_path, host).to_return(body: body, status: status,
|
15
|
+
headers: {content_type: 'application/json; charset=utf-8'})
|
16
|
+
}
|
17
17
|
|
18
18
|
after { reset_authentication_for(subject) }
|
19
19
|
|
20
|
-
context
|
20
|
+
context 'when user creates token' do
|
21
21
|
let(:body) { fixture('auths/authorization.json') }
|
22
22
|
let(:status) { 201 }
|
23
23
|
|
24
|
-
|
24
|
+
|
25
|
+
it "fails to get resource without basic authentication" do
|
25
26
|
reset_authentication_for subject
|
26
27
|
expect { subject.create }.to raise_error(ArgumentError)
|
27
28
|
end
|
28
29
|
|
29
|
-
it "
|
30
|
+
it "creates resource successfully" do
|
30
31
|
subject.create inputs
|
31
32
|
a_post(request_path, host).with(inputs).should have_been_made
|
32
33
|
end
|
33
34
|
|
34
|
-
it "
|
35
|
+
it "returns the resource" do
|
35
36
|
authorization = subject.create inputs
|
36
37
|
authorization.should be_a Github::ResponseWrapper
|
37
38
|
end
|
38
39
|
|
39
|
-
it "
|
40
|
+
it "gets the authorization information" do
|
40
41
|
authorization = subject.create inputs
|
41
42
|
authorization.token.should == 'abc123'
|
42
43
|
end
|
@@ -45,5 +46,4 @@ describe Github::Authorizations, '#create' do
|
|
45
46
|
it_should_behave_like 'request failure' do
|
46
47
|
let(:requestable) { subject.create inputs }
|
47
48
|
end
|
48
|
-
|
49
49
|
end # create
|
@@ -17,7 +17,7 @@ describe Github::Authorizations, '#delete' do
|
|
17
17
|
|
18
18
|
after { reset_authentication_for(subject) }
|
19
19
|
|
20
|
-
context "
|
20
|
+
context "when user" do
|
21
21
|
let(:body) { '' }
|
22
22
|
let(:status) { 204 }
|
23
23
|
|
@@ -30,10 +30,11 @@ describe Github::Authorizations, '#delete' do
|
|
30
30
|
subject.delete authorization_id
|
31
31
|
a_delete(request_path, host).should have_been_made
|
32
32
|
end
|
33
|
-
end
|
34
33
|
|
35
|
-
|
36
|
-
|
34
|
+
it_should_behave_like 'request failure' do
|
35
|
+
let(:requestable) { subject.delete authorization_id }
|
36
|
+
end
|
37
37
|
end
|
38
38
|
|
39
|
+
|
39
40
|
end # delete
|
@@ -54,19 +54,19 @@ describe Hash do
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
-
context '#
|
57
|
+
context '#deep_keys' do
|
58
58
|
it "should respond to all_keys" do
|
59
|
-
@nested_hash.should respond_to :
|
59
|
+
@nested_hash.should respond_to :deep_keys
|
60
60
|
end
|
61
61
|
|
62
62
|
it "should return all keys for nested hash" do
|
63
|
-
@nested_hash.
|
63
|
+
@nested_hash.deep_keys.should eq ['a', 'b', 'c']
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
-
context '#
|
67
|
+
context '#deep_key?' do
|
68
68
|
it 'should find key inside nested hash' do
|
69
|
-
@nested_hash.
|
69
|
+
@nested_hash.deep_key?('c').should be_true
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
@@ -17,10 +17,10 @@ describe Github::Normalizer, '#normalize!' do
|
|
17
17
|
context '#normalize!' do
|
18
18
|
it 'converts hash keys to string' do
|
19
19
|
['a', 'b', 'c'].each do |key|
|
20
|
-
subject.normalize!(hash).
|
20
|
+
expect(subject.normalize!(hash).deep_key?(key)).to be_true
|
21
21
|
end
|
22
22
|
[:a, :b, :c].each do |key|
|
23
|
-
subject.normalize!(hash).
|
23
|
+
expect(subject.normalize!(hash).deep_key?(key)).to be_false
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
@@ -16,19 +16,19 @@ describe Github::ParameterFilter, '#filter!' do
|
|
16
16
|
|
17
17
|
it 'removes unwanted keys from hash' do
|
18
18
|
instance.filter!([:a], hash)
|
19
|
-
hash.
|
20
|
-
hash.
|
21
|
-
hash.
|
19
|
+
expect(hash.deep_key?(:a)).to be_true
|
20
|
+
expect(hash.deep_key?(:b)).to be_false
|
21
|
+
expect(hash.deep_key?(:c)).to be_false
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'recursively filters inputs tree' do
|
25
25
|
instance.filter!([:a, :b], hash)
|
26
|
-
hash.
|
26
|
+
expect(hash.deep_key?(:c)).to be_false
|
27
27
|
end
|
28
28
|
|
29
29
|
it 'filters inputs tree only on top level' do
|
30
30
|
instance.filter!([:a, :b], hash, :recursive => false)
|
31
|
-
hash.
|
31
|
+
expect(hash.deep_key?(:c)).to be_true
|
32
32
|
end
|
33
33
|
|
34
34
|
end # Github::ParameterFilter
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.3
|
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: 2014-02-
|
12
|
+
date: 2014-02-22 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: addressable
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153056060 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '2.3'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2153056060
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: hashie
|
27
|
-
requirement: &
|
27
|
+
requirement: &2153054340 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '1.2'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2153054340
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: faraday
|
38
|
-
requirement: &
|
38
|
+
requirement: &2153053280 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -46,10 +46,10 @@ dependencies:
|
|
46
46
|
version: '0.10'
|
47
47
|
type: :runtime
|
48
48
|
prerelease: false
|
49
|
-
version_requirements: *
|
49
|
+
version_requirements: *2153053280
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
name: multi_json
|
52
|
-
requirement: &
|
52
|
+
requirement: &2153037520 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
54
54
|
requirements:
|
55
55
|
- - ! '>='
|
@@ -60,10 +60,10 @@ dependencies:
|
|
60
60
|
version: '2.0'
|
61
61
|
type: :runtime
|
62
62
|
prerelease: false
|
63
|
-
version_requirements: *
|
63
|
+
version_requirements: *2153037520
|
64
64
|
- !ruby/object:Gem::Dependency
|
65
65
|
name: oauth2
|
66
|
-
requirement: &
|
66
|
+
requirement: &2153019300 !ruby/object:Gem::Requirement
|
67
67
|
none: false
|
68
68
|
requirements:
|
69
69
|
- - ! '>='
|
@@ -71,10 +71,10 @@ dependencies:
|
|
71
71
|
version: '0'
|
72
72
|
type: :runtime
|
73
73
|
prerelease: false
|
74
|
-
version_requirements: *
|
74
|
+
version_requirements: *2153019300
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: nokogiri
|
77
|
-
requirement: &
|
77
|
+
requirement: &2153017820 !ruby/object:Gem::Requirement
|
78
78
|
none: false
|
79
79
|
requirements:
|
80
80
|
- - ~>
|
@@ -82,10 +82,10 @@ dependencies:
|
|
82
82
|
version: 1.6.0
|
83
83
|
type: :runtime
|
84
84
|
prerelease: false
|
85
|
-
version_requirements: *
|
85
|
+
version_requirements: *2153017820
|
86
86
|
- !ruby/object:Gem::Dependency
|
87
87
|
name: descendants_tracker
|
88
|
-
requirement: &
|
88
|
+
requirement: &2153016620 !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
91
91
|
- - ~>
|
@@ -93,10 +93,10 @@ dependencies:
|
|
93
93
|
version: 0.0.1
|
94
94
|
type: :runtime
|
95
95
|
prerelease: false
|
96
|
-
version_requirements: *
|
96
|
+
version_requirements: *2153016620
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec
|
99
|
-
requirement: &
|
99
|
+
requirement: &2153015920 !ruby/object:Gem::Requirement
|
100
100
|
none: false
|
101
101
|
requirements:
|
102
102
|
- - ~>
|
@@ -104,10 +104,10 @@ dependencies:
|
|
104
104
|
version: '2.14'
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
|
-
version_requirements: *
|
107
|
+
version_requirements: *2153015920
|
108
108
|
- !ruby/object:Gem::Dependency
|
109
109
|
name: cucumber
|
110
|
-
requirement: &
|
110
|
+
requirement: &2153015300 !ruby/object:Gem::Requirement
|
111
111
|
none: false
|
112
112
|
requirements:
|
113
113
|
- - ~>
|
@@ -115,21 +115,21 @@ dependencies:
|
|
115
115
|
version: '1.3'
|
116
116
|
type: :development
|
117
117
|
prerelease: false
|
118
|
-
version_requirements: *
|
118
|
+
version_requirements: *2153015300
|
119
119
|
- !ruby/object:Gem::Dependency
|
120
120
|
name: webmock
|
121
|
-
requirement: &
|
121
|
+
requirement: &2153014540 !ruby/object:Gem::Requirement
|
122
122
|
none: false
|
123
123
|
requirements:
|
124
124
|
- - ~>
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version: '1.
|
126
|
+
version: '1.17'
|
127
127
|
type: :development
|
128
128
|
prerelease: false
|
129
|
-
version_requirements: *
|
129
|
+
version_requirements: *2153014540
|
130
130
|
- !ruby/object:Gem::Dependency
|
131
131
|
name: vcr
|
132
|
-
requirement: &
|
132
|
+
requirement: &2153013800 !ruby/object:Gem::Requirement
|
133
133
|
none: false
|
134
134
|
requirements:
|
135
135
|
- - ~>
|
@@ -137,10 +137,10 @@ dependencies:
|
|
137
137
|
version: '2.6'
|
138
138
|
type: :development
|
139
139
|
prerelease: false
|
140
|
-
version_requirements: *
|
140
|
+
version_requirements: *2153013800
|
141
141
|
- !ruby/object:Gem::Dependency
|
142
142
|
name: simplecov
|
143
|
-
requirement: &
|
143
|
+
requirement: &2153013120 !ruby/object:Gem::Requirement
|
144
144
|
none: false
|
145
145
|
requirements:
|
146
146
|
- - ~>
|
@@ -148,10 +148,10 @@ dependencies:
|
|
148
148
|
version: 0.7.1
|
149
149
|
type: :development
|
150
150
|
prerelease: false
|
151
|
-
version_requirements: *
|
151
|
+
version_requirements: *2153013120
|
152
152
|
- !ruby/object:Gem::Dependency
|
153
153
|
name: coveralls
|
154
|
-
requirement: &
|
154
|
+
requirement: &2153012660 !ruby/object:Gem::Requirement
|
155
155
|
none: false
|
156
156
|
requirements:
|
157
157
|
- - ~>
|
@@ -159,10 +159,10 @@ dependencies:
|
|
159
159
|
version: 0.6.7
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
|
-
version_requirements: *
|
162
|
+
version_requirements: *2153012660
|
163
163
|
- !ruby/object:Gem::Dependency
|
164
164
|
name: guard
|
165
|
-
requirement: &
|
165
|
+
requirement: &2153012200 !ruby/object:Gem::Requirement
|
166
166
|
none: false
|
167
167
|
requirements:
|
168
168
|
- - ~>
|
@@ -170,10 +170,10 @@ dependencies:
|
|
170
170
|
version: 1.8.1
|
171
171
|
type: :development
|
172
172
|
prerelease: false
|
173
|
-
version_requirements: *
|
173
|
+
version_requirements: *2153012200
|
174
174
|
- !ruby/object:Gem::Dependency
|
175
175
|
name: guard-rspec
|
176
|
-
requirement: &
|
176
|
+
requirement: &2153011680 !ruby/object:Gem::Requirement
|
177
177
|
none: false
|
178
178
|
requirements:
|
179
179
|
- - ~>
|
@@ -181,10 +181,10 @@ dependencies:
|
|
181
181
|
version: 3.0.2
|
182
182
|
type: :development
|
183
183
|
prerelease: false
|
184
|
-
version_requirements: *
|
184
|
+
version_requirements: *2153011680
|
185
185
|
- !ruby/object:Gem::Dependency
|
186
186
|
name: guard-cucumber
|
187
|
-
requirement: &
|
187
|
+
requirement: &2153010700 !ruby/object:Gem::Requirement
|
188
188
|
none: false
|
189
189
|
requirements:
|
190
190
|
- - ~>
|
@@ -192,10 +192,10 @@ dependencies:
|
|
192
192
|
version: '1.4'
|
193
193
|
type: :development
|
194
194
|
prerelease: false
|
195
|
-
version_requirements: *
|
195
|
+
version_requirements: *2153010700
|
196
196
|
- !ruby/object:Gem::Dependency
|
197
197
|
name: rake
|
198
|
-
requirement: &
|
198
|
+
requirement: &2153009220 !ruby/object:Gem::Requirement
|
199
199
|
none: false
|
200
200
|
requirements:
|
201
201
|
- - ~>
|
@@ -203,10 +203,10 @@ dependencies:
|
|
203
203
|
version: '10.1'
|
204
204
|
type: :development
|
205
205
|
prerelease: false
|
206
|
-
version_requirements: *
|
206
|
+
version_requirements: *2153009220
|
207
207
|
- !ruby/object:Gem::Dependency
|
208
208
|
name: bundler
|
209
|
-
requirement: &
|
209
|
+
requirement: &2153007180 !ruby/object:Gem::Requirement
|
210
210
|
none: false
|
211
211
|
requirements:
|
212
212
|
- - ~>
|
@@ -214,7 +214,7 @@ dependencies:
|
|
214
214
|
version: '1.3'
|
215
215
|
type: :development
|
216
216
|
prerelease: false
|
217
|
-
version_requirements: *
|
217
|
+
version_requirements: *2153007180
|
218
218
|
description: ! ' Ruby wrapper that supports all of the GitHub API v3 methods(nearly
|
219
219
|
200). It''s build in a modular way, that is, you can either instantiate the whole
|
220
220
|
api wrapper Github.new or use parts of it e.i. Github::Repos.new if working solely
|
@@ -230,7 +230,6 @@ files:
|
|
230
230
|
- features/activity/starring.feature
|
231
231
|
- features/activity/watching.feature
|
232
232
|
- features/arguments_parsing.feature
|
233
|
-
- features/authorizations.feature
|
234
233
|
- features/auto_pagination.feature
|
235
234
|
- features/cassettes/activity/events/issue.yml
|
236
235
|
- features/cassettes/activity/events/network.yml
|
@@ -254,7 +253,6 @@ files:
|
|
254
253
|
- features/cassettes/arguments/orgs/get.yml
|
255
254
|
- features/cassettes/arguments/pulls/get.yml
|
256
255
|
- features/cassettes/arguments/repo_commits/get.yml
|
257
|
-
- features/cassettes/auths/list.yml
|
258
256
|
- features/cassettes/auto_pagination/repos/get.yml
|
259
257
|
- features/cassettes/auto_pagination/repos/global_list.yml
|
260
258
|
- features/cassettes/auto_pagination/repos/list.yml
|
@@ -369,6 +367,9 @@ files:
|
|
369
367
|
- features/cassettes/repos/list_org.yml
|
370
368
|
- features/cassettes/repos/list_org_instance.yml
|
371
369
|
- features/cassettes/repos/list_repos.yml
|
370
|
+
- features/cassettes/repos/pages/get.yml
|
371
|
+
- features/cassettes/repos/pages/list_builds.yml
|
372
|
+
- features/cassettes/repos/pages/list_latest_builds.yml
|
372
373
|
- features/cassettes/repos/releases/create.yml
|
373
374
|
- features/cassettes/repos/releases/delete.yml
|
374
375
|
- features/cassettes/repos/releases/edit.yml
|
@@ -433,6 +434,7 @@ files:
|
|
433
434
|
- features/repos/assets.feature
|
434
435
|
- features/repos/contents.feature
|
435
436
|
- features/repos/forks.feature
|
437
|
+
- features/repos/pages.feature
|
436
438
|
- features/repos/releases.feature
|
437
439
|
- features/repos/statistics.feature
|
438
440
|
- features/repos/statuses.feature
|
@@ -440,6 +442,7 @@ files:
|
|
440
442
|
- features/say.feature
|
441
443
|
- features/search/legacy.feature
|
442
444
|
- features/search.feature
|
445
|
+
- features/settings.yml
|
443
446
|
- features/settings.yml.sample
|
444
447
|
- features/step_definitions/common_steps.rb
|
445
448
|
- features/step_definitions/github_api_steps.rb
|
@@ -460,6 +463,7 @@ files:
|
|
460
463
|
- lib/github_api/api_factory.rb
|
461
464
|
- lib/github_api/arguments.rb
|
462
465
|
- lib/github_api/authorization.rb
|
466
|
+
- lib/github_api/authorizations/app.rb
|
463
467
|
- lib/github_api/authorizations.rb
|
464
468
|
- lib/github_api/client.rb
|
465
469
|
- lib/github_api/compatibility.rb
|
@@ -467,7 +471,6 @@ files:
|
|
467
471
|
- lib/github_api/connection.rb
|
468
472
|
- lib/github_api/constants.rb
|
469
473
|
- lib/github_api/core_ext/array.rb
|
470
|
-
- lib/github_api/core_ext/deep_merge.rb
|
471
474
|
- lib/github_api/core_ext/hash.rb
|
472
475
|
- lib/github_api/core_ext/ordered_hash.rb
|
473
476
|
- lib/github_api/deprecation.rb
|
@@ -526,11 +529,13 @@ files:
|
|
526
529
|
- lib/github_api/repos/comments.rb
|
527
530
|
- lib/github_api/repos/commits.rb
|
528
531
|
- lib/github_api/repos/contents.rb
|
532
|
+
- lib/github_api/repos/deployments.rb
|
529
533
|
- lib/github_api/repos/downloads.rb
|
530
534
|
- lib/github_api/repos/forks.rb
|
531
535
|
- lib/github_api/repos/hooks.rb
|
532
536
|
- lib/github_api/repos/keys.rb
|
533
537
|
- lib/github_api/repos/merging.rb
|
538
|
+
- lib/github_api/repos/pages.rb
|
534
539
|
- lib/github_api/repos/pub_sub_hubbub.rb
|
535
540
|
- lib/github_api/repos/releases/assets.rb
|
536
541
|
- lib/github_api/repos/releases.rb
|
@@ -555,7 +560,6 @@ files:
|
|
555
560
|
- lib/github_api/scopes.rb
|
556
561
|
- lib/github_api/search/legacy.rb
|
557
562
|
- lib/github_api/search.rb
|
558
|
-
- lib/github_api/ssl_certs/cacert.pem
|
559
563
|
- lib/github_api/ssl_certs/cacerts.pem
|
560
564
|
- lib/github_api/users/emails.rb
|
561
565
|
- lib/github_api/users/followers.rb
|
@@ -704,6 +708,8 @@ files:
|
|
704
708
|
- spec/github/api_spec.rb
|
705
709
|
- spec/github/arguments/parse_spec.rb
|
706
710
|
- spec/github/authorization_spec.rb
|
711
|
+
- spec/github/authorizations/app/create_spec.rb
|
712
|
+
- spec/github/authorizations/app/delete_spec.rb
|
707
713
|
- spec/github/authorizations/create_spec.rb
|
708
714
|
- spec/github/authorizations/delete_spec.rb
|
709
715
|
- spec/github/authorizations/get_spec.rb
|