github_api 0.4.11 → 0.5.0.rc1
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/README.md +76 -72
- data/features/cassettes/gists/starred.yml +48 -0
- data/features/cassettes/pagination/repos/commits/list.yml +193 -0
- data/features/cassettes/pagination/repos/commits/next.yml +183 -0
- data/features/cassettes/pagination/repos/diff/next.yml +45 -0
- data/features/cassettes/pagination/repos/list.yml +176 -0
- data/features/cassettes/pagination/repos/list/next.yml +222 -0
- data/features/cassettes/pagination/repos/per_page/each_page.yml +45 -0
- data/features/cassettes/repos/list.yml +92 -0
- data/features/error_codes.feature +1 -1
- data/features/gists.feature +12 -3
- data/features/gists/comments.feature +3 -3
- data/features/github_api.feature +13 -2
- data/features/pagination.feature +40 -39
- data/features/repos.feature +2 -2
- data/features/step_definitions/common_steps.rb +12 -0
- data/features/step_definitions/github_api_steps.rb +12 -1
- data/lib/github_api.rb +1 -1
- data/lib/github_api/api.rb +4 -2
- data/lib/github_api/api_factory.rb +11 -5
- data/lib/github_api/authorizations.rb +23 -32
- data/lib/github_api/client.rb +1 -0
- data/lib/github_api/events.rb +38 -38
- data/lib/github_api/filter.rb +1 -1
- data/lib/github_api/gists.rb +47 -42
- data/lib/github_api/gists/comments.rb +77 -84
- data/lib/github_api/git_data.rb +25 -6
- data/lib/github_api/git_data/blobs.rb +48 -45
- data/lib/github_api/git_data/commits.rb +76 -73
- data/lib/github_api/git_data/references.rb +137 -118
- data/lib/github_api/git_data/tags.rb +74 -70
- data/lib/github_api/git_data/trees.rb +88 -85
- data/lib/github_api/issues.rb +43 -31
- data/lib/github_api/issues/comments.rb +116 -119
- data/lib/github_api/issues/events.rb +20 -19
- data/lib/github_api/issues/labels.rb +200 -197
- data/lib/github_api/issues/milestones.rb +137 -134
- data/lib/github_api/orgs.rb +27 -23
- data/lib/github_api/orgs/members.rb +105 -108
- data/lib/github_api/orgs/teams.rb +236 -237
- data/lib/github_api/paged_request.rb +1 -1
- data/lib/github_api/pull_requests.rb +40 -42
- data/lib/github_api/pull_requests/comments.rb +140 -143
- data/lib/github_api/repos.rb +101 -67
- data/lib/github_api/repos/collaborators.rb +64 -68
- data/lib/github_api/repos/commits.rb +50 -39
- data/lib/github_api/repos/downloads.rb +107 -110
- data/lib/github_api/repos/forks.rb +38 -39
- data/lib/github_api/repos/hooks.rb +161 -167
- data/lib/github_api/repos/keys.rb +86 -86
- data/lib/github_api/repos/pub_sub_hubbub.rb +99 -87
- data/lib/github_api/repos/watching.rb +80 -82
- data/lib/github_api/request.rb +5 -9
- data/lib/github_api/users.rb +26 -16
- data/lib/github_api/users/emails.rb +47 -47
- data/lib/github_api/users/followers.rb +85 -86
- data/lib/github_api/users/keys.rb +73 -75
- data/lib/github_api/validations.rb +25 -0
- data/lib/github_api/validations/format.rb +23 -0
- data/lib/github_api/validations/presence.rb +25 -0
- data/lib/github_api/validations/required.rb +21 -0
- data/lib/github_api/validations/token.rb +41 -0
- data/lib/github_api/version.rb +3 -3
- data/spec/fixtures/repos/commit_comparison.json +112 -0
- data/spec/github/api_factory_spec.rb +17 -1
- data/spec/github/authorizations_spec.rb +36 -34
- data/spec/github/gists/comments_spec.rb +39 -45
- data/spec/github/gists_spec.rb +50 -53
- data/spec/github/git_data/blobs_spec.rb +27 -20
- data/spec/github/git_data/commits_spec.rb +20 -19
- data/spec/github/git_data/references_spec.rb +83 -46
- data/spec/github/git_data/tags_spec.rb +16 -15
- data/spec/github/git_data/trees_spec.rb +20 -19
- data/spec/github/git_data_spec.rb +10 -1
- data/spec/github/issues/comments_spec.rb +78 -68
- data/spec/github/issues/events_spec.rb +42 -34
- data/spec/github/issues/labels_spec.rb +89 -101
- data/spec/github/issues/milestones_spec.rb +76 -54
- data/spec/github/issues_spec.rb +53 -57
- data/spec/github/orgs/members_spec.rb +64 -49
- data/spec/github/orgs/teams_spec.rb +112 -101
- data/spec/github/orgs_spec.rb +41 -31
- data/spec/github/paged_request_spec.rb +6 -5
- data/spec/github/pull_requests/comments_spec.rb +39 -44
- data/spec/github/pull_requests_spec.rb +32 -48
- data/spec/github/repos/collaborators_spec.rb +40 -29
- data/spec/github/repos/commits_spec.rb +108 -64
- data/spec/github/repos/downloads_spec.rb +46 -45
- data/spec/github/repos/forks_spec.rb +23 -24
- data/spec/github/repos/hooks_spec.rb +69 -71
- data/spec/github/repos/keys_spec.rb +39 -34
- data/spec/github/repos/pub_sub_hubbub_spec.rb +4 -4
- data/spec/github/repos/watching_spec.rb +31 -33
- data/spec/github/repos_spec.rb +74 -83
- data/spec/github/request_spec.rb +31 -2
- data/spec/github/users/emails_spec.rb +19 -17
- data/spec/github/users/followers_spec.rb +30 -28
- data/spec/github/users/keys_spec.rb +37 -33
- data/spec/github/users_spec.rb +124 -125
- data/spec/github/validations/format_spec.rb +42 -0
- data/spec/github/validations/presence_spec.rb +18 -0
- data/spec/github/validations/required_spec.rb +28 -0
- data/spec/github/validations/token_spec.rb +19 -0
- data/spec/github/validations_spec.rb +23 -0
- metadata +33 -10
- data/features/cassettes/pagination/repos.yml +0 -177
- data/features/cassettes/pagination/repos/next.yml +0 -177
- data/lib/github_api/validation.rb +0 -53
- data/spec/github/validation_spec.rb +0 -62
data/spec/github/users_spec.rb
CHANGED
|
@@ -1,129 +1,128 @@
|
|
|
1
1
|
require 'spec_helper'
|
|
2
2
|
|
|
3
|
-
describe Github::Users
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
#
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
#
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
#
|
|
74
|
-
|
|
75
|
-
#
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
#
|
|
127
|
-
# end # update_comment
|
|
3
|
+
describe Github::Users do
|
|
4
|
+
let(:github) { Github.new }
|
|
5
|
+
let(:user) { 'peter-murach' }
|
|
6
|
+
let(:repo) { 'github' }
|
|
7
|
+
|
|
8
|
+
after { reset_authentication_for github }
|
|
9
|
+
|
|
10
|
+
describe "#get" do
|
|
11
|
+
it { github.users.should respond_to :find }
|
|
12
|
+
|
|
13
|
+
context "resource found for a user" do
|
|
14
|
+
before do
|
|
15
|
+
stub_get("/users/#{user}").
|
|
16
|
+
to_return(:body => fixture('users/user.json'),
|
|
17
|
+
:status => 200, :headers => {:content_type => "application/json; charset=utf-8"})
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
it "should get the resources" do
|
|
21
|
+
github.users.get user
|
|
22
|
+
a_get("/users/#{user}").should have_been_made
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
it "should return resource" do
|
|
26
|
+
user_resource = github.users.get user
|
|
27
|
+
user_resource.should be_a Hash
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
it "should be a mash type" do
|
|
31
|
+
user_resource = github.users.get user
|
|
32
|
+
user_resource.should be_a Hashie::Mash
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
it "should get org information" do
|
|
36
|
+
user_resource = github.users.get user
|
|
37
|
+
user_resource.login.should == 'octocat'
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
it "should yield to a block" do
|
|
41
|
+
github.users.should_receive(:get).with(user).and_yield('web')
|
|
42
|
+
github.users.get(user) { |param| 'web' }
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
context "resource found for an authenticated user" do
|
|
47
|
+
before do
|
|
48
|
+
github.oauth_token = OAUTH_TOKEN
|
|
49
|
+
stub_get("/user").
|
|
50
|
+
with(:query => { :access_token => "#{OAUTH_TOKEN}"}).
|
|
51
|
+
to_return(:body => fixture('users/user.json'), :status => 200, :headers => {:content_type => "application/json; charset=utf-8"})
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
it "should get the resources" do
|
|
55
|
+
github.users.get
|
|
56
|
+
a_get("/user").with(:query => {:access_token => "#{OAUTH_TOKEN}"}).
|
|
57
|
+
should have_been_made
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
context "resource not found for a user" do
|
|
62
|
+
before do
|
|
63
|
+
stub_get("/users/#{user}").
|
|
64
|
+
to_return(:body => "", :status => [404, "Not Found"])
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
it "should return 404 with a message 'Not Found'" do
|
|
68
|
+
expect {
|
|
69
|
+
github.users.get user
|
|
70
|
+
}.to raise_error(Github::Error::NotFound)
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end # get
|
|
74
|
+
|
|
75
|
+
describe "#update" do
|
|
76
|
+
let(:user_params) {
|
|
77
|
+
{
|
|
78
|
+
"name" => "monalisa octocat",
|
|
79
|
+
"email" => "octocat@github.com",
|
|
80
|
+
"blog" => "https://github.com/blog",
|
|
81
|
+
"company" => "GitHub",
|
|
82
|
+
"location" => "San Francisco",
|
|
83
|
+
"hireable" => true,
|
|
84
|
+
"bio" => "There once..."
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
context "resouce updated" do
|
|
89
|
+
before do
|
|
90
|
+
github.oauth_token = OAUTH_TOKEN
|
|
91
|
+
stub_patch("/user?access_token=#{OAUTH_TOKEN}").with(user_params).
|
|
92
|
+
to_return(:body => fixture('users/user.json'), :status => 200, :headers => {:content_type => "application/json; charset=utf-8"})
|
|
93
|
+
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
it "should create resource successfully" do
|
|
97
|
+
github.users.update
|
|
98
|
+
a_patch("/user?access_token=#{OAUTH_TOKEN}").with(user_params).should have_been_made
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
it "should return the resource" do
|
|
102
|
+
user_resource = github.users.update
|
|
103
|
+
user_resource.should be_a Hashie::Mash
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
it "should get the resource information" do
|
|
107
|
+
user_resource = github.users.update
|
|
108
|
+
user_resource.login.should == 'octocat'
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
context "failed to update resource" do
|
|
113
|
+
before do
|
|
114
|
+
github.oauth_token = OAUTH_TOKEN
|
|
115
|
+
stub_patch("/user?access_token=#{OAUTH_TOKEN}").with(user_params).
|
|
116
|
+
to_return(:body => fixture('users/user.json'), :status => 404, :headers => {:content_type => "application/json; charset=utf-8"})
|
|
117
|
+
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
it "should fail to retrieve resource" do
|
|
121
|
+
expect {
|
|
122
|
+
github.users.update
|
|
123
|
+
}.to raise_error(Github::Error::NotFound)
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end # update
|
|
128
127
|
|
|
129
128
|
end # Github::Users
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
require 'spec_helper'
|
|
4
|
+
|
|
5
|
+
describe Github::Validations::Format do
|
|
6
|
+
|
|
7
|
+
let(:validator) { Class.new.extend(described_class) }
|
|
8
|
+
|
|
9
|
+
context '#_validate_params_values' do
|
|
10
|
+
let(:permitted) {
|
|
11
|
+
{
|
|
12
|
+
'param_a' => ['a', 'b'],
|
|
13
|
+
'param_b' => /^github$/
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
it 'fails to accept unkown value for a given parameter key' do
|
|
18
|
+
actual = { 'param_a' => 'x' }
|
|
19
|
+
expect {
|
|
20
|
+
validator._validate_params_values(permitted, actual)
|
|
21
|
+
}.to raise_error(ArgumentError)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it 'accepts known value for a given parameter key' do
|
|
25
|
+
actual = { 'param_a' => 'a'}
|
|
26
|
+
validator._validate_params_values(permitted, actual)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
it 'fails to match regex value for a given parameter key' do
|
|
30
|
+
actual = { 'param_b' => 'xgithub' }
|
|
31
|
+
expect {
|
|
32
|
+
validator._validate_params_values(permitted, actual)
|
|
33
|
+
}.to raise_error(ArgumentError)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
it 'matches regex value for a given parameter key' do
|
|
37
|
+
actual = { 'param_b' => 'github'}
|
|
38
|
+
validator._validate_params_values(permitted, actual)
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end # Github::Validations::Format
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
require 'spec_helper'
|
|
4
|
+
|
|
5
|
+
describe Github::Validations::Presence do
|
|
6
|
+
|
|
7
|
+
let(:validator) { Class.new.extend(described_class) }
|
|
8
|
+
|
|
9
|
+
context '#_validate_presence_of' do
|
|
10
|
+
it 'throws error if passed param is nil' do
|
|
11
|
+
gist_id = nil
|
|
12
|
+
expect {
|
|
13
|
+
validator._validate_presence_of gist_id
|
|
14
|
+
}.to raise_error(ArgumentError)
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
end # Github::Validations::Presence
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
require 'spec_helper'
|
|
4
|
+
require 'github_api/core_ext/hash'
|
|
5
|
+
|
|
6
|
+
describe Github::Validations::Required do
|
|
7
|
+
|
|
8
|
+
let(:validator) {
|
|
9
|
+
klaz = Class.new.extend(described_class)
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
context '#_validate_inputs' do
|
|
13
|
+
let(:required) { ['param_a', 'param_c'] }
|
|
14
|
+
let(:provided) { { 'param_a' => true, 'param_c' => true } }
|
|
15
|
+
|
|
16
|
+
it 'detect missing parameter' do
|
|
17
|
+
expect {
|
|
18
|
+
validator._validate_inputs(required, provided.except('param_c')).
|
|
19
|
+
should be_false
|
|
20
|
+
}.to raise_error(Github::Error::RequiredParams)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
it 'asserts correct required parameters' do
|
|
24
|
+
validator._validate_inputs(required, provided).should be_true
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
end # Github::Validations::Required
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
|
|
3
|
+
require 'spec_helper'
|
|
4
|
+
|
|
5
|
+
describe Github::Validations::Token do
|
|
6
|
+
|
|
7
|
+
let(:validator) { Class.new.extend(described_class) }
|
|
8
|
+
|
|
9
|
+
context '#validates_token_for' do
|
|
10
|
+
it 'does not require authentication token' do
|
|
11
|
+
validator.validates_token_for(:get, '/octocat/emails').should be_false
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
it 'requires authentication token' do
|
|
15
|
+
validator.validates_token_for(:get, '/user/emails').should be_true
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
end # Github::Validations::Token
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
describe Github::Validations do
|
|
4
|
+
|
|
5
|
+
let(:validator) { Class.new.send(:include, described_class) }
|
|
6
|
+
|
|
7
|
+
it 'includes parameters presence validations' do
|
|
8
|
+
validator.included_modules.should include Github::Validations::Presence
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
it 'includes authentication token validations' do
|
|
12
|
+
validator.included_modules.should include Github::Validations::Token
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
it 'includes parameters values format validations' do
|
|
16
|
+
validator.included_modules.should include Github::Validations::Format
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
it 'includes required parameters presence validations' do
|
|
20
|
+
validator.included_modules.should include Github::Validations::Required
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
end # Github::Validations
|
metadata
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: github_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
prerelease:
|
|
5
|
-
version: 0.
|
|
4
|
+
prerelease: 6
|
|
5
|
+
version: 0.5.0.rc1
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Piotr Murach
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2012-04-
|
|
13
|
+
date: 2012-04-28 00:00:00 +01:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
@@ -206,17 +206,20 @@ files:
|
|
|
206
206
|
- features/cassettes/gists/gist.yml
|
|
207
207
|
- features/cassettes/gists/gists/public_all.yml
|
|
208
208
|
- features/cassettes/gists/gists/user_all.yml
|
|
209
|
+
- features/cassettes/gists/starred.yml
|
|
210
|
+
- features/cassettes/pagination/repos/commits/list.yml
|
|
209
211
|
- features/cassettes/pagination/repos/commits/next.yml
|
|
210
212
|
- features/cassettes/pagination/repos/commits/sha/next.yml
|
|
211
213
|
- features/cassettes/pagination/repos/commits/sha.yml
|
|
212
214
|
- features/cassettes/pagination/repos/commits.yml
|
|
213
215
|
- features/cassettes/pagination/repos/diff/next.yml
|
|
214
216
|
- features/cassettes/pagination/repos/diff.yml
|
|
215
|
-
- features/cassettes/pagination/repos/next.yml
|
|
217
|
+
- features/cassettes/pagination/repos/list/next.yml
|
|
218
|
+
- features/cassettes/pagination/repos/list.yml
|
|
216
219
|
- features/cassettes/pagination/repos/per_page/each_page.yml
|
|
217
220
|
- features/cassettes/pagination/repos/per_page/first.yml
|
|
218
|
-
- features/cassettes/pagination/repos.yml
|
|
219
221
|
- features/cassettes/repos/branches.yml
|
|
222
|
+
- features/cassettes/repos/list.yml
|
|
220
223
|
- features/cassettes/repos/tags.yml
|
|
221
224
|
- features/error_codes.feature
|
|
222
225
|
- features/gists/comments.feature
|
|
@@ -309,7 +312,11 @@ files:
|
|
|
309
312
|
- lib/github_api/users/keys.rb
|
|
310
313
|
- lib/github_api/users.rb
|
|
311
314
|
- lib/github_api/utils/url.rb
|
|
312
|
-
- lib/github_api/
|
|
315
|
+
- lib/github_api/validations/format.rb
|
|
316
|
+
- lib/github_api/validations/presence.rb
|
|
317
|
+
- lib/github_api/validations/required.rb
|
|
318
|
+
- lib/github_api/validations/token.rb
|
|
319
|
+
- lib/github_api/validations.rb
|
|
313
320
|
- lib/github_api/version.rb
|
|
314
321
|
- lib/github_api.rb
|
|
315
322
|
- spec/coverage_adapter.rb
|
|
@@ -356,6 +363,7 @@ files:
|
|
|
356
363
|
- spec/fixtures/repos/commit.json
|
|
357
364
|
- spec/fixtures/repos/commit_comment.json
|
|
358
365
|
- spec/fixtures/repos/commit_comments.json
|
|
366
|
+
- spec/fixtures/repos/commit_comparison.json
|
|
359
367
|
- spec/fixtures/repos/commits.json
|
|
360
368
|
- spec/fixtures/repos/contributors.json
|
|
361
369
|
- spec/fixtures/repos/download.json
|
|
@@ -432,7 +440,11 @@ files:
|
|
|
432
440
|
- spec/github/users/keys_spec.rb
|
|
433
441
|
- spec/github/users_spec.rb
|
|
434
442
|
- spec/github/utils/url_spec.rb
|
|
435
|
-
- spec/github/
|
|
443
|
+
- spec/github/validations/format_spec.rb
|
|
444
|
+
- spec/github/validations/presence_spec.rb
|
|
445
|
+
- spec/github/validations/required_spec.rb
|
|
446
|
+
- spec/github/validations/token_spec.rb
|
|
447
|
+
- spec/github/validations_spec.rb
|
|
436
448
|
- spec/github_spec.rb
|
|
437
449
|
- spec/README.rdoc
|
|
438
450
|
- spec/spec_helper.rb
|
|
@@ -445,7 +457,18 @@ has_rdoc: true
|
|
|
445
457
|
homepage: https://github.com/peter-murach/github
|
|
446
458
|
licenses: []
|
|
447
459
|
|
|
448
|
-
post_install_message:
|
|
460
|
+
post_install_message: "\n\
|
|
461
|
+
--------------------------------------------------------------------------------\n\
|
|
462
|
+
Thank you for installing github_api-0.5.0.rc1.\n\n\
|
|
463
|
+
*NOTE*: Version 0.5.0 introduces breaking changes to the way github api is queried.\n\
|
|
464
|
+
The interface has been rewritten to be more consistent with REST verbs that\n\
|
|
465
|
+
interact with GitHub hypermedia resources. Thus, to list resources 'list' or 'all'\n\
|
|
466
|
+
verb is used, to retrieve individual resource 'get' or 'find' verbs are used.\n\
|
|
467
|
+
Further CRUDE operations on all resources use preditable verbs as well.\n\n\
|
|
468
|
+
Again sorry for inconvenience but I trust that this will help in easier access to\n\
|
|
469
|
+
the GitHub API.\n\n\
|
|
470
|
+
For more information: http://rubydoc.info/github/peter-murach/github/master/frames\n\n\
|
|
471
|
+
--------------------------------------------------------------------------------\n "
|
|
449
472
|
rdoc_options: []
|
|
450
473
|
|
|
451
474
|
require_paths:
|
|
@@ -459,9 +482,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
459
482
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
460
483
|
none: false
|
|
461
484
|
requirements:
|
|
462
|
-
- - "
|
|
485
|
+
- - ">"
|
|
463
486
|
- !ruby/object:Gem::Version
|
|
464
|
-
version:
|
|
487
|
+
version: 1.3.1
|
|
465
488
|
requirements: []
|
|
466
489
|
|
|
467
490
|
rubyforge_project:
|