octokit 0.6.4 → 0.6.5

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.
Files changed (58) hide show
  1. data/.travis.yml +2 -2
  2. data/CHANGELOG.md +1 -0
  3. data/README.md +46 -24
  4. data/Rakefile +0 -0
  5. data/lib/octokit/authentication.rb +1 -3
  6. data/lib/octokit/client.rb +3 -1
  7. data/lib/octokit/client/commits.rb +3 -2
  8. data/lib/octokit/client/issues.rb +11 -62
  9. data/lib/octokit/client/labels.rb +153 -0
  10. data/lib/octokit/client/milestones.rb +1 -1
  11. data/lib/octokit/client/pub_sub_hubbub/service_hooks.rb +2 -4
  12. data/lib/octokit/client/repositories.rb +41 -31
  13. data/lib/octokit/client/timelines.rb +1 -2
  14. data/lib/octokit/configuration.rb +5 -12
  15. data/lib/octokit/repository.rb +1 -1
  16. data/lib/octokit/version.rb +1 -1
  17. data/octokit.gemspec +16 -25
  18. data/spec/fixtures/v3/branches.json +16 -0
  19. data/spec/fixtures/v3/collaborators.json +62 -0
  20. data/spec/fixtures/v3/commit.json +1 -0
  21. data/spec/fixtures/v3/commits.json +1 -0
  22. data/spec/fixtures/v3/contributors.json +891 -0
  23. data/spec/fixtures/v3/forks.json +872 -0
  24. data/spec/fixtures/v3/labels.json +3 -3
  25. data/spec/fixtures/v3/languages.json +5 -0
  26. data/spec/fixtures/v3/public_key.json +5 -0
  27. data/spec/fixtures/v3/public_keys.json +7 -0
  28. data/spec/fixtures/v3/repositories.json +872 -0
  29. data/spec/fixtures/v3/repository.json +34 -0
  30. data/spec/fixtures/v3/tags.json +173 -0
  31. data/spec/fixtures/v3/teams.json +12 -0
  32. data/spec/fixtures/v3/watchers.json +182 -0
  33. data/spec/helper.rb +3 -3
  34. data/spec/octokit/client/commits_spec.rb +5 -5
  35. data/spec/octokit/client/issues_spec.rb +14 -61
  36. data/spec/octokit/client/labels_spec.rb +152 -0
  37. data/spec/octokit/client/milestones_spec.rb +6 -6
  38. data/spec/octokit/client/objects_spec.rb +6 -6
  39. data/spec/octokit/client/organizations_spec.rb +19 -19
  40. data/spec/octokit/client/pub_sub_hubbub/service_hooks_spec.rb +2 -2
  41. data/spec/octokit/client/pub_sub_hubbub_spec.rb +3 -3
  42. data/spec/octokit/client/pulls_spec.rb +4 -4
  43. data/spec/octokit/client/repositories_spec.rb +81 -80
  44. data/spec/octokit/client/timelines_spec.rb +3 -3
  45. data/spec/octokit/client/users_spec.rb +21 -21
  46. data/spec/octokit/client_spec.rb +1 -11
  47. data/spec/octokit_spec.rb +1 -1
  48. metadata +125 -215
  49. data/.autotest +0 -1
  50. data/spec/fixtures/v2/branches.json +0 -1
  51. data/spec/fixtures/v2/collaborators.json +0 -1
  52. data/spec/fixtures/v2/commit.json +0 -1
  53. data/spec/fixtures/v2/commits.json +0 -1
  54. data/spec/fixtures/v2/contributors.json +0 -1
  55. data/spec/fixtures/v2/languages.json +0 -1
  56. data/spec/fixtures/v2/network.json +0 -1
  57. data/spec/fixtures/v2/repository.json +0 -1
  58. data/spec/fixtures/v2/watchers.json +0 -1
@@ -12,7 +12,7 @@ describe Octokit::Client::Users do
12
12
  context "with a username passed" do
13
13
 
14
14
  it "should return matching username" do
15
- stub_get("/api/v2/json/user/search/sferik").
15
+ stub_get("https://github.com/api/v2/json/user/search/sferik").
16
16
  to_return(:body => fixture("v2/users.json"))
17
17
  users = @client.search_users("sferik")
18
18
  users.first.username.should == "sferik"
@@ -23,7 +23,7 @@ describe Octokit::Client::Users do
23
23
  context "with an email address passed" do
24
24
 
25
25
  it "should return matching email address" do
26
- stub_get("/api/v2/json/user/email/sferik@gmail.com").
26
+ stub_get("https://github.com/api/v2/json/user/email/sferik@gmail.com").
27
27
  to_return(:body => fixture("v2/user.json"))
28
28
  user = @client.search_users("sferik@gmail.com")
29
29
  user.login.should == "sferik"
@@ -38,7 +38,7 @@ describe Octokit::Client::Users do
38
38
  context "with a username passed" do
39
39
 
40
40
  it "should return the user" do
41
- stub_get("https://api.github.com/users/sferik").
41
+ stub_get("/users/sferik").
42
42
  to_return(:body => fixture("v3/user.json"))
43
43
  user = @client.user("sferik")
44
44
  user.login.should == "sferik"
@@ -49,7 +49,7 @@ describe Octokit::Client::Users do
49
49
  context "without a username passed" do
50
50
 
51
51
  it "should return the authenticated user" do
52
- stub_get("https://api.github.com/user").
52
+ stub_get("/user").
53
53
  to_return(:body => fixture("v3/user.json"))
54
54
  user = @client.user
55
55
  user.login.should == "sferik"
@@ -64,7 +64,7 @@ describe Octokit::Client::Users do
64
64
  context "with a location passed" do
65
65
 
66
66
  it "should update the user's location" do
67
- stub_patch("https://api.github.com/user").
67
+ stub_patch("/user").
68
68
  with(:body => {:name => "Erik Michaels-Ober", :email => "sferik@gmail.com", :company => "Code for America", :location => "San Francisco", :hireable => false}).
69
69
  to_return(:body => fixture("v3/user.json"))
70
70
  user = @client.update_user(:name => "Erik Michaels-Ober", :email => "sferik@gmail.com", :company => "Code for America", :location => "San Francisco", :hireable => false)
@@ -80,7 +80,7 @@ describe Octokit::Client::Users do
80
80
  context "with a username passed" do
81
81
 
82
82
  it "should return the user's followers" do
83
- stub_get("/api/v2/json/user/show/sferik/followers").
83
+ stub_get("https://github.com/api/v2/json/user/show/sferik/followers").
84
84
  to_return(:body => fixture("v2/followers.json"))
85
85
  users = @client.followers("sferik")
86
86
  users.first.should == "puls"
@@ -91,7 +91,7 @@ describe Octokit::Client::Users do
91
91
  context "without a username passed" do
92
92
 
93
93
  it "should return the user's followers" do
94
- stub_get("/api/v2/json/user/show/sferik/followers").
94
+ stub_get("https://github.com/api/v2/json/user/show/sferik/followers").
95
95
  to_return(:body => fixture("v2/followers.json"))
96
96
  users = @client.followers
97
97
  users.first.should == "puls"
@@ -106,7 +106,7 @@ describe Octokit::Client::Users do
106
106
  context "with a username passed" do
107
107
 
108
108
  it "should return the user's following" do
109
- stub_get("/api/v2/json/user/show/sferik/following").
109
+ stub_get("https://github.com/api/v2/json/user/show/sferik/following").
110
110
  to_return(:body => fixture("v2/following.json"))
111
111
  users = @client.following("sferik")
112
112
  users.first.should == "rails"
@@ -117,7 +117,7 @@ describe Octokit::Client::Users do
117
117
  context "without a username passed" do
118
118
 
119
119
  it "should return the user's following" do
120
- stub_get("/api/v2/json/user/show/sferik/following").
120
+ stub_get("https://github.com/api/v2/json/user/show/sferik/following").
121
121
  to_return(:body => fixture("v2/following.json"))
122
122
  users = @client.following
123
123
  users.first.should == "rails"
@@ -132,7 +132,7 @@ describe Octokit::Client::Users do
132
132
  context "with one user following another" do
133
133
 
134
134
  it "should return true" do
135
- stub_get("/api/v2/json/user/show/sferik/following").
135
+ stub_get("https://github.com/api/v2/json/user/show/sferik/following").
136
136
  to_return(:body => fixture("v2/following.json"))
137
137
  follows = @client.follows?("sferik", "pengwynn")
138
138
  follows.should be_true
@@ -143,7 +143,7 @@ describe Octokit::Client::Users do
143
143
  context "with one user not following another" do
144
144
 
145
145
  it "should return false" do
146
- stub_get("/api/v2/json/user/show/sferik/following").
146
+ stub_get("https://github.com/api/v2/json/user/show/sferik/following").
147
147
  to_return(:body => fixture("v2/following.json"))
148
148
  follows = @client.follows?("sferik", "dogbrainz")
149
149
  follows.should be_false
@@ -156,7 +156,7 @@ describe Octokit::Client::Users do
156
156
  describe ".follow" do
157
157
 
158
158
  it "should follow a user" do
159
- stub_post("/api/v2/json/user/follow/dianakimball").
159
+ stub_post("https://github.com/api/v2/json/user/follow/dianakimball").
160
160
  to_return(:body => fixture("v2/following.json"))
161
161
  following = @client.follow("dianakimball")
162
162
  following.should include("dianakimball")
@@ -167,7 +167,7 @@ describe Octokit::Client::Users do
167
167
  describe ".unfollow" do
168
168
 
169
169
  it "should unfollow a user" do
170
- stub_post("/api/v2/json/user/unfollow/dogbrainz").
170
+ stub_post("https://github.com/api/v2/json/user/unfollow/dogbrainz").
171
171
  to_return(:body => fixture("v2/following.json"))
172
172
  following = @client.unfollow("dogbrainz")
173
173
  following.should_not include("dogbrainz")
@@ -180,7 +180,7 @@ describe Octokit::Client::Users do
180
180
  context "with a username passed" do
181
181
 
182
182
  it "should return watched repositories" do
183
- stub_get("/api/v2/json/repos/watched/sferik").
183
+ stub_get("https://github.com/api/v2/json/repos/watched/sferik").
184
184
  to_return(:body => fixture("v2/repositories.json"))
185
185
  repositories = @client.watched("sferik")
186
186
  repositories.first.name.should == "One40Proof"
@@ -191,7 +191,7 @@ describe Octokit::Client::Users do
191
191
  context "without a username passed" do
192
192
 
193
193
  it "should return watched repositories" do
194
- stub_get("/api/v2/json/repos/watched/sferik").
194
+ stub_get("https://github.com/api/v2/json/repos/watched/sferik").
195
195
  to_return(:body => fixture("v2/repositories.json"))
196
196
  repositories = @client.watched
197
197
  repositories.first.name.should == "One40Proof"
@@ -204,7 +204,7 @@ describe Octokit::Client::Users do
204
204
  describe ".keys" do
205
205
 
206
206
  it "should return public keys" do
207
- stub_get("/api/v2/json/user/keys").
207
+ stub_get("https://github.com/api/v2/json/user/keys").
208
208
  to_return(:body => fixture("v2/public_keys.json"))
209
209
  public_keys = @client.keys
210
210
  public_keys.first.id.should == 103205
@@ -215,7 +215,7 @@ describe Octokit::Client::Users do
215
215
  describe ".add_key" do
216
216
 
217
217
  it "should add a public key" do
218
- stub_post("/api/v2/json/user/key/add").
218
+ stub_post("https://github.com/api/v2/json/user/key/add").
219
219
  with(:title => "Moss", :key => "ssh-dss AAAAB3NzaC1kc3MAAACBAJz7HanBa18ad1YsdFzHO5Wy1/WgXd4BV+czbKq7q23jungbfjN3eo2a0SVdxux8GG+RZ9ia90VD/X+PE4s3LV60oXZ7PDAuyPO1CTF0TaDoKf9mPaHcPa6agMJVocMsgBgwviWT1Q9VgN1SccDsYVDtxkIAwuw25YeHZlG6myx1AAAAFQCgW+OvXWUdUJPBGkRJ8ML7uf0VHQAAAIAlP5G96tTss0SKYVSCJCyocn9cyGQdNjxah4/aYuYFTbLI1rxk7sr/AkZfJNIoF2UFyO5STbbratykIQGUPdUBg1a2t72bu31x+4ZYJMngNsG/AkZ2oqLiH6dJKHD7PFx2oSPalogwsUV7iSMIZIYaPa03A9763iFsN0qJjaed+gAAAIBxz3Prxdzt/os4XGXSMNoWcS03AFC/05NOkoDMrXxQnTTpp1wrOgyRqEnKz15qC5dWk1ynzK+LJXHDZGA8lXPfCjHpJO3zrlZ/ivvLhgPdDpt13MAhIJFH06hTal0woxbk/fIdY71P3kbgXC0Ppx/0S7BC+VxqRCA4/wcM+BoDbA== host").
220
220
  to_return(:body => fixture("v2/public_keys.json"))
221
221
  public_keys = @client.add_key("Moss", "ssh-dss AAAAB3NzaC1kc3MAAACBAJz7HanBa18ad1YsdFzHO5Wy1/WgXd4BV+czbKq7q23jungbfjN3eo2a0SVdxux8GG+RZ9ia90VD/X+PE4s3LV60oXZ7PDAuyPO1CTF0TaDoKf9mPaHcPa6agMJVocMsgBgwviWT1Q9VgN1SccDsYVDtxkIAwuw25YeHZlG6myx1AAAAFQCgW+OvXWUdUJPBGkRJ8ML7uf0VHQAAAIAlP5G96tTss0SKYVSCJCyocn9cyGQdNjxah4/aYuYFTbLI1rxk7sr/AkZfJNIoF2UFyO5STbbratykIQGUPdUBg1a2t72bu31x+4ZYJMngNsG/AkZ2oqLiH6dJKHD7PFx2oSPalogwsUV7iSMIZIYaPa03A9763iFsN0qJjaed+gAAAIBxz3Prxdzt/os4XGXSMNoWcS03AFC/05NOkoDMrXxQnTTpp1wrOgyRqEnKz15qC5dWk1ynzK+LJXHDZGA8lXPfCjHpJO3zrlZ/ivvLhgPdDpt13MAhIJFH06hTal0woxbk/fIdY71P3kbgXC0Ppx/0S7BC+VxqRCA4/wcM+BoDbA== host")
@@ -227,7 +227,7 @@ describe Octokit::Client::Users do
227
227
  describe ".remove_key" do
228
228
 
229
229
  it "should remove a public key" do
230
- stub_post("/api/v2/json/user/key/remove").
230
+ stub_post("https://github.com/api/v2/json/user/key/remove").
231
231
  with(:id => 103205).
232
232
  to_return(:body => fixture("v2/public_keys.json"))
233
233
  public_keys = @client.remove_key(103205)
@@ -239,7 +239,7 @@ describe Octokit::Client::Users do
239
239
  describe ".emails" do
240
240
 
241
241
  it "should return email addresses" do
242
- stub_get("/api/v2/json/user/emails").
242
+ stub_get("https://github.com/api/v2/json/user/emails").
243
243
  to_return(:body => fixture("v2/emails.json"))
244
244
  emails = @client.emails
245
245
  emails.first.should == "sferik@gmail.com"
@@ -250,7 +250,7 @@ describe Octokit::Client::Users do
250
250
  describe ".add_email" do
251
251
 
252
252
  it "should add an email address" do
253
- stub_post("/api/v2/json/user/email/add").
253
+ stub_post("https://github.com/api/v2/json/user/email/add").
254
254
  with(:email => "sferik@gmail.com").
255
255
  to_return(:body => fixture("v2/emails.json"))
256
256
  emails = @client.add_email("sferik@gmail.com")
@@ -262,7 +262,7 @@ describe Octokit::Client::Users do
262
262
  describe ".remove_key" do
263
263
 
264
264
  it "should remove an email address" do
265
- stub_post("/api/v2/json/user/email/remove").
265
+ stub_post("https://github.com/api/v2/json/user/email/remove").
266
266
  with(:email => "sferik@gmail.com").
267
267
  to_return(:body => fixture("v2/emails.json"))
268
268
  emails = @client.remove_email("sferik@gmail.com")
@@ -1,18 +1,8 @@
1
1
  require 'helper'
2
2
 
3
3
  describe Octokit::Client do
4
-
5
- it 'should work with basic auth' do
6
- stub_get("https://foo%2Ftoken:bar@github.com/api/v2/json/commits/list/baz/quux/master").
7
- with(:headers => {'Accept'=>'*/*'}).
8
- to_return(:status => 200, :body => '{"commits":[]}', :headers => {})
9
- proc {
10
- Octokit::Client.new(:login => 'foo', :token => 'bar').commits('baz/quux')
11
- }.should_not raise_exception
12
- end
13
-
14
4
  it 'should work with basic auth and password' do
15
- stub_get("https://foo:bar@github.com/api/v2/json/commits/list/baz/quux/master").
5
+ stub_get("https://foo:bar@api.github.com/repos/baz/quux/commits?per_page=35&sha=master").
16
6
  with(:headers => {'Accept'=>'*/*'}).
17
7
  to_return(:status => 200, :body => '{"commits":[]}', :headers => {})
18
8
  proc {
@@ -20,7 +20,7 @@ describe Octokit do
20
20
 
21
21
  describe ".delegate" do
22
22
  it "should delegate missing methods to Octokit::Client" do
23
- stub_get("https://api.github.com/repos/pengwynn/octokit/issues").
23
+ stub_get("/repos/pengwynn/octokit/issues").
24
24
  to_return(:status => 200, :body => fixture('v3/issues.json'))
25
25
  issues = Octokit.issues('pengwynn/octokit')
26
26
  issues.last.user.login.should == 'fellix'
metadata CHANGED
@@ -1,240 +1,148 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: octokit
3
- version: !ruby/object:Gem::Version
4
- hash: 15
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.5
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 6
9
- - 4
10
- version: 0.6.4
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Wynn Netherland
14
9
  - Adam Stacoviak
15
10
  - Erik Michaels-Ober
16
11
  autorequire:
17
12
  bindir: bin
18
13
  cert_chain: []
19
-
20
- date: 2011-07-02 00:00:00 -05:00
21
- default_executable:
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
14
+ date: 2011-10-15 00:00:00.000000000Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
24
17
  name: addressable
25
- prerelease: false
26
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: &70129246095580 !ruby/object:Gem::Requirement
27
19
  none: false
28
- requirements:
20
+ requirements:
29
21
  - - ~>
30
- - !ruby/object:Gem::Version
31
- hash: 11
32
- segments:
33
- - 2
34
- - 2
35
- - 6
22
+ - !ruby/object:Gem::Version
36
23
  version: 2.2.6
37
24
  type: :runtime
38
- version_requirements: *id001
39
- - !ruby/object:Gem::Dependency
40
- name: faraday
41
25
  prerelease: false
42
- requirement: &id002 !ruby/object:Gem::Requirement
26
+ version_requirements: *70129246095580
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday
29
+ requirement: &70129246093420 !ruby/object:Gem::Requirement
43
30
  none: false
44
- requirements:
31
+ requirements:
45
32
  - - ~>
46
- - !ruby/object:Gem::Version
47
- hash: 5
48
- segments:
49
- - 0
50
- - 7
51
- - 3
52
- version: 0.7.3
33
+ - !ruby/object:Gem::Version
34
+ version: 0.7.4
53
35
  type: :runtime
54
- version_requirements: *id002
55
- - !ruby/object:Gem::Dependency
56
- name: faraday_middleware
57
36
  prerelease: false
58
- requirement: &id003 !ruby/object:Gem::Requirement
37
+ version_requirements: *70129246093420
38
+ - !ruby/object:Gem::Dependency
39
+ name: faraday_middleware
40
+ requirement: &70129246092040 !ruby/object:Gem::Requirement
59
41
  none: false
60
- requirements:
42
+ requirements:
61
43
  - - ~>
62
- - !ruby/object:Gem::Version
63
- hash: 15424103
64
- segments:
65
- - 0
66
- - 7
67
- - 0
68
- - rc
69
- - 1
70
- version: 0.7.0.rc1
44
+ - !ruby/object:Gem::Version
45
+ version: 0.7.0
71
46
  type: :runtime
72
- version_requirements: *id003
73
- - !ruby/object:Gem::Dependency
74
- name: hashie
75
47
  prerelease: false
76
- requirement: &id004 !ruby/object:Gem::Requirement
48
+ version_requirements: *70129246092040
49
+ - !ruby/object:Gem::Dependency
50
+ name: hashie
51
+ requirement: &70129246091200 !ruby/object:Gem::Requirement
77
52
  none: false
78
- requirements:
53
+ requirements:
79
54
  - - ~>
80
- - !ruby/object:Gem::Version
81
- hash: 23
82
- segments:
83
- - 1
84
- - 0
85
- - 0
86
- version: 1.0.0
55
+ - !ruby/object:Gem::Version
56
+ version: 1.2.0
87
57
  type: :runtime
88
- version_requirements: *id004
89
- - !ruby/object:Gem::Dependency
90
- name: multi_json
91
58
  prerelease: false
92
- requirement: &id005 !ruby/object:Gem::Requirement
59
+ version_requirements: *70129246091200
60
+ - !ruby/object:Gem::Dependency
61
+ name: multi_json
62
+ requirement: &70129246088920 !ruby/object:Gem::Requirement
93
63
  none: false
94
- requirements:
64
+ requirements:
95
65
  - - ~>
96
- - !ruby/object:Gem::Version
97
- hash: 19
98
- segments:
99
- - 1
100
- - 0
101
- - 2
66
+ - !ruby/object:Gem::Version
102
67
  version: 1.0.2
103
68
  type: :runtime
104
- version_requirements: *id005
105
- - !ruby/object:Gem::Dependency
106
- name: ZenTest
107
69
  prerelease: false
108
- requirement: &id006 !ruby/object:Gem::Requirement
70
+ version_requirements: *70129246088920
71
+ - !ruby/object:Gem::Dependency
72
+ name: json
73
+ requirement: &70129246088080 !ruby/object:Gem::Requirement
109
74
  none: false
110
- requirements:
75
+ requirements:
111
76
  - - ~>
112
- - !ruby/object:Gem::Version
113
- hash: 17
114
- segments:
115
- - 4
116
- - 5
117
- version: "4.5"
77
+ - !ruby/object:Gem::Version
78
+ version: '1.6'
118
79
  type: :development
119
- version_requirements: *id006
120
- - !ruby/object:Gem::Dependency
121
- name: nokogiri
122
80
  prerelease: false
123
- requirement: &id007 !ruby/object:Gem::Requirement
124
- none: false
125
- requirements:
126
- - - ~>
127
- - !ruby/object:Gem::Version
128
- hash: 7
129
- segments:
130
- - 1
131
- - 4
132
- version: "1.4"
133
- type: :development
134
- version_requirements: *id007
135
- - !ruby/object:Gem::Dependency
81
+ version_requirements: *70129246088080
82
+ - !ruby/object:Gem::Dependency
136
83
  name: rake
137
- prerelease: false
138
- requirement: &id008 !ruby/object:Gem::Requirement
84
+ requirement: &70129246086920 !ruby/object:Gem::Requirement
139
85
  none: false
140
- requirements:
86
+ requirements:
141
87
  - - ~>
142
- - !ruby/object:Gem::Version
143
- hash: 25
144
- segments:
145
- - 0
146
- - 9
147
- version: "0.9"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.9'
148
90
  type: :development
149
- version_requirements: *id008
150
- - !ruby/object:Gem::Dependency
151
- name: rspec
152
91
  prerelease: false
153
- requirement: &id009 !ruby/object:Gem::Requirement
92
+ version_requirements: *70129246086920
93
+ - !ruby/object:Gem::Dependency
94
+ name: rspec
95
+ requirement: &70129246086120 !ruby/object:Gem::Requirement
154
96
  none: false
155
- requirements:
97
+ requirements:
156
98
  - - ~>
157
- - !ruby/object:Gem::Version
158
- hash: 15
159
- segments:
160
- - 2
161
- - 6
162
- version: "2.6"
99
+ - !ruby/object:Gem::Version
100
+ version: '2.6'
163
101
  type: :development
164
- version_requirements: *id009
165
- - !ruby/object:Gem::Dependency
166
- name: simplecov
167
102
  prerelease: false
168
- requirement: &id010 !ruby/object:Gem::Requirement
103
+ version_requirements: *70129246086120
104
+ - !ruby/object:Gem::Dependency
105
+ name: simplecov
106
+ requirement: &70129246085140 !ruby/object:Gem::Requirement
169
107
  none: false
170
- requirements:
108
+ requirements:
171
109
  - - ~>
172
- - !ruby/object:Gem::Version
173
- hash: 3
174
- segments:
175
- - 0
176
- - 4
177
- version: "0.4"
110
+ - !ruby/object:Gem::Version
111
+ version: '0.4'
178
112
  type: :development
179
- version_requirements: *id010
180
- - !ruby/object:Gem::Dependency
181
- name: webmock
182
113
  prerelease: false
183
- requirement: &id011 !ruby/object:Gem::Requirement
114
+ version_requirements: *70129246085140
115
+ - !ruby/object:Gem::Dependency
116
+ name: webmock
117
+ requirement: &70129246084240 !ruby/object:Gem::Requirement
184
118
  none: false
185
- requirements:
119
+ requirements:
186
120
  - - ~>
187
- - !ruby/object:Gem::Version
188
- hash: 3
189
- segments:
190
- - 1
191
- - 6
192
- version: "1.6"
121
+ - !ruby/object:Gem::Version
122
+ version: '1.7'
193
123
  type: :development
194
- version_requirements: *id011
195
- - !ruby/object:Gem::Dependency
196
- name: yajl-ruby
197
124
  prerelease: false
198
- requirement: &id012 !ruby/object:Gem::Requirement
199
- none: false
200
- requirements:
201
- - - ~>
202
- - !ruby/object:Gem::Version
203
- hash: 27
204
- segments:
205
- - 0
206
- - 8
207
- version: "0.8"
208
- type: :development
209
- version_requirements: *id012
210
- - !ruby/object:Gem::Dependency
125
+ version_requirements: *70129246084240
126
+ - !ruby/object:Gem::Dependency
211
127
  name: yard
212
- prerelease: false
213
- requirement: &id013 !ruby/object:Gem::Requirement
128
+ requirement: &70129246083520 !ruby/object:Gem::Requirement
214
129
  none: false
215
- requirements:
130
+ requirements:
216
131
  - - ~>
217
- - !ruby/object:Gem::Version
218
- hash: 5
219
- segments:
220
- - 0
221
- - 7
222
- version: "0.7"
132
+ - !ruby/object:Gem::Version
133
+ version: '0.7'
223
134
  type: :development
224
- version_requirements: *id013
135
+ prerelease: false
136
+ version_requirements: *70129246083520
225
137
  description: Simple wrapper for the GitHub API v2
226
- email:
138
+ email:
227
139
  - wynn.netherland@gmail.com
228
140
  - adam@stacoviak.com
229
141
  - sferik@gmail.com
230
142
  executables: []
231
-
232
143
  extensions: []
233
-
234
144
  extra_rdoc_files: []
235
-
236
- files:
237
- - .autotest
145
+ files:
238
146
  - .document
239
147
  - .gemtest
240
148
  - .gitignore
@@ -251,6 +159,7 @@ files:
251
159
  - lib/octokit/client.rb
252
160
  - lib/octokit/client/commits.rb
253
161
  - lib/octokit/client/issues.rb
162
+ - lib/octokit/client/labels.rb
254
163
  - lib/octokit/client/milestones.rb
255
164
  - lib/octokit/client/network.rb
256
165
  - lib/octokit/client/objects.rb
@@ -274,13 +183,8 @@ files:
274
183
  - spec/fixtures/v2/blob.json
275
184
  - spec/fixtures/v2/blob_metadata.json
276
185
  - spec/fixtures/v2/blobs.json
277
- - spec/fixtures/v2/branches.json
278
- - spec/fixtures/v2/collaborators.json
279
186
  - spec/fixtures/v2/comment.json
280
187
  - spec/fixtures/v2/comments.json
281
- - spec/fixtures/v2/commit.json
282
- - spec/fixtures/v2/commits.json
283
- - spec/fixtures/v2/contributors.json
284
188
  - spec/fixtures/v2/delete_failure.json
285
189
  - spec/fixtures/v2/delete_token.json
286
190
  - spec/fixtures/v2/emails.json
@@ -289,8 +193,6 @@ files:
289
193
  - spec/fixtures/v2/issue.json
290
194
  - spec/fixtures/v2/issues.json
291
195
  - spec/fixtures/v2/labels.json
292
- - spec/fixtures/v2/languages.json
293
- - spec/fixtures/v2/network.json
294
196
  - spec/fixtures/v2/network_data.json
295
197
  - spec/fixtures/v2/network_meta.json
296
198
  - spec/fixtures/v2/organization.json
@@ -300,7 +202,6 @@ files:
300
202
  - spec/fixtures/v2/pulls.json
301
203
  - spec/fixtures/v2/raw.txt
302
204
  - spec/fixtures/v2/repositories.json
303
- - spec/fixtures/v2/repository.json
304
205
  - spec/fixtures/v2/tags.json
305
206
  - spec/fixtures/v2/team.json
306
207
  - spec/fixtures/v2/teams.json
@@ -308,19 +209,33 @@ files:
308
209
  - spec/fixtures/v2/tree_metadata.json
309
210
  - spec/fixtures/v2/user.json
310
211
  - spec/fixtures/v2/users.json
311
- - spec/fixtures/v2/watchers.json
212
+ - spec/fixtures/v3/branches.json
213
+ - spec/fixtures/v3/collaborators.json
312
214
  - spec/fixtures/v3/comment.json
313
215
  - spec/fixtures/v3/comments.json
216
+ - spec/fixtures/v3/commit.json
217
+ - spec/fixtures/v3/commits.json
218
+ - spec/fixtures/v3/contributors.json
219
+ - spec/fixtures/v3/forks.json
314
220
  - spec/fixtures/v3/issues.json
315
221
  - spec/fixtures/v3/label.json
316
222
  - spec/fixtures/v3/labels.json
223
+ - spec/fixtures/v3/languages.json
317
224
  - spec/fixtures/v3/milestone.json
318
225
  - spec/fixtures/v3/milestones.json
319
226
  - spec/fixtures/v3/not_found.json
227
+ - spec/fixtures/v3/public_key.json
228
+ - spec/fixtures/v3/public_keys.json
229
+ - spec/fixtures/v3/repositories.json
230
+ - spec/fixtures/v3/repository.json
231
+ - spec/fixtures/v3/tags.json
232
+ - spec/fixtures/v3/teams.json
320
233
  - spec/fixtures/v3/user.json
234
+ - spec/fixtures/v3/watchers.json
321
235
  - spec/helper.rb
322
236
  - spec/octokit/client/commits_spec.rb
323
237
  - spec/octokit/client/issues_spec.rb
238
+ - spec/octokit/client/labels_spec.rb
324
239
  - spec/octokit/client/milestones_spec.rb
325
240
  - spec/octokit/client/network_spec.rb
326
241
  - spec/octokit/client/objects_spec.rb
@@ -334,55 +249,38 @@ files:
334
249
  - spec/octokit/client_spec.rb
335
250
  - spec/octokit_spec.rb
336
251
  - spec/repository_spec.rb
337
- has_rdoc: true
338
252
  homepage: https://github.com/pengwynn/octokit
339
253
  licenses: []
340
-
341
254
  post_install_message:
342
255
  rdoc_options: []
343
-
344
- require_paths:
256
+ require_paths:
345
257
  - lib
346
- required_ruby_version: !ruby/object:Gem::Requirement
258
+ required_ruby_version: !ruby/object:Gem::Requirement
347
259
  none: false
348
- requirements:
349
- - - ">="
350
- - !ruby/object:Gem::Version
351
- hash: 3
352
- segments:
353
- - 0
354
- version: "0"
355
- required_rubygems_version: !ruby/object:Gem::Requirement
260
+ requirements:
261
+ - - ! '>='
262
+ - !ruby/object:Gem::Version
263
+ version: '0'
264
+ required_rubygems_version: !ruby/object:Gem::Requirement
356
265
  none: false
357
- requirements:
358
- - - ">="
359
- - !ruby/object:Gem::Version
360
- hash: 23
361
- segments:
362
- - 1
363
- - 3
364
- - 6
266
+ requirements:
267
+ - - ! '>='
268
+ - !ruby/object:Gem::Version
365
269
  version: 1.3.6
366
270
  requirements: []
367
-
368
271
  rubyforge_project:
369
- rubygems_version: 1.6.2
272
+ rubygems_version: 1.8.10
370
273
  signing_key:
371
274
  specification_version: 3
372
275
  summary: Wrapper for the GitHub API
373
- test_files:
276
+ test_files:
374
277
  - spec/faraday/response_spec.rb
375
278
  - spec/fixtures/timeline.json
376
279
  - spec/fixtures/v2/blob.json
377
280
  - spec/fixtures/v2/blob_metadata.json
378
281
  - spec/fixtures/v2/blobs.json
379
- - spec/fixtures/v2/branches.json
380
- - spec/fixtures/v2/collaborators.json
381
282
  - spec/fixtures/v2/comment.json
382
283
  - spec/fixtures/v2/comments.json
383
- - spec/fixtures/v2/commit.json
384
- - spec/fixtures/v2/commits.json
385
- - spec/fixtures/v2/contributors.json
386
284
  - spec/fixtures/v2/delete_failure.json
387
285
  - spec/fixtures/v2/delete_token.json
388
286
  - spec/fixtures/v2/emails.json
@@ -391,8 +289,6 @@ test_files:
391
289
  - spec/fixtures/v2/issue.json
392
290
  - spec/fixtures/v2/issues.json
393
291
  - spec/fixtures/v2/labels.json
394
- - spec/fixtures/v2/languages.json
395
- - spec/fixtures/v2/network.json
396
292
  - spec/fixtures/v2/network_data.json
397
293
  - spec/fixtures/v2/network_meta.json
398
294
  - spec/fixtures/v2/organization.json
@@ -402,7 +298,6 @@ test_files:
402
298
  - spec/fixtures/v2/pulls.json
403
299
  - spec/fixtures/v2/raw.txt
404
300
  - spec/fixtures/v2/repositories.json
405
- - spec/fixtures/v2/repository.json
406
301
  - spec/fixtures/v2/tags.json
407
302
  - spec/fixtures/v2/team.json
408
303
  - spec/fixtures/v2/teams.json
@@ -410,19 +305,33 @@ test_files:
410
305
  - spec/fixtures/v2/tree_metadata.json
411
306
  - spec/fixtures/v2/user.json
412
307
  - spec/fixtures/v2/users.json
413
- - spec/fixtures/v2/watchers.json
308
+ - spec/fixtures/v3/branches.json
309
+ - spec/fixtures/v3/collaborators.json
414
310
  - spec/fixtures/v3/comment.json
415
311
  - spec/fixtures/v3/comments.json
312
+ - spec/fixtures/v3/commit.json
313
+ - spec/fixtures/v3/commits.json
314
+ - spec/fixtures/v3/contributors.json
315
+ - spec/fixtures/v3/forks.json
416
316
  - spec/fixtures/v3/issues.json
417
317
  - spec/fixtures/v3/label.json
418
318
  - spec/fixtures/v3/labels.json
319
+ - spec/fixtures/v3/languages.json
419
320
  - spec/fixtures/v3/milestone.json
420
321
  - spec/fixtures/v3/milestones.json
421
322
  - spec/fixtures/v3/not_found.json
323
+ - spec/fixtures/v3/public_key.json
324
+ - spec/fixtures/v3/public_keys.json
325
+ - spec/fixtures/v3/repositories.json
326
+ - spec/fixtures/v3/repository.json
327
+ - spec/fixtures/v3/tags.json
328
+ - spec/fixtures/v3/teams.json
422
329
  - spec/fixtures/v3/user.json
330
+ - spec/fixtures/v3/watchers.json
423
331
  - spec/helper.rb
424
332
  - spec/octokit/client/commits_spec.rb
425
333
  - spec/octokit/client/issues_spec.rb
334
+ - spec/octokit/client/labels_spec.rb
426
335
  - spec/octokit/client/milestones_spec.rb
427
336
  - spec/octokit/client/network_spec.rb
428
337
  - spec/octokit/client/objects_spec.rb
@@ -436,3 +345,4 @@ test_files:
436
345
  - spec/octokit/client_spec.rb
437
346
  - spec/octokit_spec.rb
438
347
  - spec/repository_spec.rb
348
+ has_rdoc: