octokit 0.6.3 → 0.6.4

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 (53) hide show
  1. data/.travis.yml +1 -0
  2. data/CHANGELOG.md +18 -18
  3. data/README.md +5 -3
  4. data/Rakefile +2 -0
  5. data/lib/faraday/response/{raise_error.rb → raise_octokit_error.rb} +11 -2
  6. data/lib/octokit.rb +18 -46
  7. data/lib/octokit/authentication.rb +21 -0
  8. data/lib/octokit/client.rb +13 -6
  9. data/lib/octokit/client/commits.rb +2 -2
  10. data/lib/octokit/client/issues.rb +184 -21
  11. data/lib/octokit/client/milestones.rb +87 -0
  12. data/lib/octokit/client/network.rb +2 -4
  13. data/lib/octokit/client/objects.rb +6 -8
  14. data/lib/octokit/client/organizations.rb +18 -19
  15. data/lib/octokit/client/pub_sub_hubbub.rb +41 -0
  16. data/lib/octokit/client/pub_sub_hubbub/service_hooks.rb +41 -0
  17. data/lib/octokit/client/pulls.rb +12 -3
  18. data/lib/octokit/client/repositories.rb +28 -30
  19. data/lib/octokit/client/timelines.rb +3 -5
  20. data/lib/octokit/client/users.rb +40 -18
  21. data/lib/octokit/connection.rb +42 -0
  22. data/lib/octokit/error.rb +34 -0
  23. data/lib/octokit/request.rb +44 -0
  24. data/lib/octokit/version.rb +1 -1
  25. data/octokit.gemspec +33 -28
  26. data/puppeteer.jpg +0 -0
  27. data/spec/faraday/response_spec.rb +2 -1
  28. data/spec/fixtures/v2/commit.json +1 -1
  29. data/spec/fixtures/v3/comment.json +14 -0
  30. data/spec/fixtures/v3/comments.json +44 -0
  31. data/spec/fixtures/v3/label.json +5 -0
  32. data/spec/fixtures/v3/labels.json +17 -0
  33. data/spec/fixtures/v3/milestone.json +12 -0
  34. data/spec/fixtures/v3/milestones.json +28 -0
  35. data/spec/fixtures/v3/not_found.json +3 -0
  36. data/spec/fixtures/v3/user.json +20 -0
  37. data/spec/helper.rb +14 -11
  38. data/spec/octokit/client/commits_spec.rb +3 -3
  39. data/spec/octokit/client/issues_spec.rb +82 -44
  40. data/spec/octokit/client/milestones_spec.rb +67 -0
  41. data/spec/octokit/client/objects_spec.rb +6 -6
  42. data/spec/octokit/client/organizations_spec.rb +19 -19
  43. data/spec/octokit/client/pub_sub_hubbub/service_hooks_spec.rb +45 -0
  44. data/spec/octokit/client/pub_sub_hubbub_spec.rb +49 -0
  45. data/spec/octokit/client/pulls_spec.rb +15 -3
  46. data/spec/octokit/client/repositories_spec.rb +30 -30
  47. data/spec/octokit/client/users_spec.rb +26 -26
  48. data/spec/octokit/client_spec.rb +2 -2
  49. data/spec/octokit_spec.rb +12 -3
  50. metadata +147 -55
  51. data/lib/octokit/client/authentication.rb +0 -23
  52. data/lib/octokit/client/connection.rb +0 -33
  53. data/lib/octokit/client/request.rb +0 -42
@@ -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("user/search/sferik").
15
+ stub_get("/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("user/email/sferik@gmail.com").
26
+ stub_get("/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,8 +38,8 @@ 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("user/show/sferik").
42
- to_return(:body => fixture("v2/user.json"))
41
+ stub_get("https://api.github.com/users/sferik").
42
+ to_return(:body => fixture("v3/user.json"))
43
43
  user = @client.user("sferik")
44
44
  user.login.should == "sferik"
45
45
  end
@@ -49,8 +49,8 @@ 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("user/show").
53
- to_return(:body => fixture("v2/user.json"))
52
+ stub_get("https://api.github.com/user").
53
+ to_return(:body => fixture("v3/user.json"))
54
54
  user = @client.user
55
55
  user.login.should == "sferik"
56
56
  end
@@ -64,10 +64,10 @@ 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_post("user/show/sferik").
68
- with(:values => {:location => "San Francisco"}).
69
- to_return(:body => fixture("v2/user.json"))
70
- user = @client.update_user(:location => "San Francisco")
67
+ stub_patch("https://api.github.com/user").
68
+ with(:body => {:name => "Erik Michaels-Ober", :email => "sferik@gmail.com", :company => "Code for America", :location => "San Francisco", :hireable => false}).
69
+ to_return(:body => fixture("v3/user.json"))
70
+ user = @client.update_user(:name => "Erik Michaels-Ober", :email => "sferik@gmail.com", :company => "Code for America", :location => "San Francisco", :hireable => false)
71
71
  user.login.should == "sferik"
72
72
  end
73
73
 
@@ -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("user/show/sferik/followers").
83
+ stub_get("/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("user/show/sferik/followers").
94
+ stub_get("/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("user/show/sferik/following").
109
+ stub_get("/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("user/show/sferik/following").
120
+ stub_get("/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("user/show/sferik/following").
135
+ stub_get("/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("user/show/sferik/following").
146
+ stub_get("/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("user/follow/dianakimball").
159
+ stub_post("/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("user/unfollow/dogbrainz").
170
+ stub_post("/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("repos/watched/sferik").
183
+ stub_get("/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("repos/watched/sferik").
194
+ stub_get("/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("user/keys").
207
+ stub_get("/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("user/key/add").
218
+ stub_post("/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("user/key/remove").
230
+ stub_post("/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("user/emails").
242
+ stub_get("/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("user/email/add").
253
+ stub_post("/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("user/email/remove").
265
+ stub_post("/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")
@@ -3,7 +3,7 @@ require 'helper'
3
3
  describe Octokit::Client do
4
4
 
5
5
  it 'should work with basic auth' do
6
- stub_request(:get, "https://foo%2Ftoken:bar@github.com/api/v2/json/commits/list/baz/quux/master").
6
+ stub_get("https://foo%2Ftoken:bar@github.com/api/v2/json/commits/list/baz/quux/master").
7
7
  with(:headers => {'Accept'=>'*/*'}).
8
8
  to_return(:status => 200, :body => '{"commits":[]}', :headers => {})
9
9
  proc {
@@ -12,7 +12,7 @@ describe Octokit::Client do
12
12
  end
13
13
 
14
14
  it 'should work with basic auth and password' do
15
- stub_request(:get, "https://foo:bar@github.com/api/v2/json/commits/list/baz/quux/master").
15
+ stub_get("https://foo:bar@github.com/api/v2/json/commits/list/baz/quux/master").
16
16
  with(:headers => {'Accept'=>'*/*'}).
17
17
  to_return(:status => 200, :body => '{"commits":[]}', :headers => {})
18
18
  proc {
@@ -8,14 +8,23 @@ describe Octokit do
8
8
 
9
9
  describe ".respond_to?" do
10
10
  it "should be true if method exists" do
11
- Octokit.respond_to?(:client, true).should be_true
11
+ Octokit.respond_to?(:new, true).should be_true
12
12
  end
13
13
  end
14
14
 
15
- describe ".client" do
15
+ describe ".new" do
16
16
  it "should be a Octokit::Client" do
17
- Octokit.client.should be_a Octokit::Client
17
+ Octokit.new.should be_a Octokit::Client
18
18
  end
19
19
  end
20
20
 
21
+ describe ".delegate" do
22
+ it "should delegate missing methods to Octokit::Client" do
23
+ stub_get("https://api.github.com/repos/pengwynn/octokit/issues").
24
+ to_return(:status => 200, :body => fixture('v3/issues.json'))
25
+ issues = Octokit.issues('pengwynn/octokit')
26
+ issues.last.user.login.should == 'fellix'
27
+ end
28
+
29
+ end
21
30
  end
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octokit
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 15
4
5
  prerelease:
5
- version: 0.6.3
6
+ segments:
7
+ - 0
8
+ - 6
9
+ - 4
10
+ version: 0.6.4
6
11
  platform: ruby
7
12
  authors:
8
13
  - Wynn Netherland
@@ -12,165 +17,216 @@ autorequire:
12
17
  bindir: bin
13
18
  cert_chain: []
14
19
 
15
- date: 2011-05-05 00:00:00 Z
20
+ date: 2011-07-02 00:00:00 -05:00
21
+ default_executable:
16
22
  dependencies:
17
23
  - !ruby/object:Gem::Dependency
18
- name: json_pure
24
+ name: addressable
19
25
  prerelease: false
20
26
  requirement: &id001 !ruby/object:Gem::Requirement
21
27
  none: false
22
28
  requirements:
23
29
  - - ~>
24
30
  - !ruby/object:Gem::Version
25
- version: "1.5"
26
- type: :development
31
+ hash: 11
32
+ segments:
33
+ - 2
34
+ - 2
35
+ - 6
36
+ version: 2.2.6
37
+ type: :runtime
27
38
  version_requirements: *id001
28
39
  - !ruby/object:Gem::Dependency
29
- name: nokogiri
40
+ name: faraday
30
41
  prerelease: false
31
42
  requirement: &id002 !ruby/object:Gem::Requirement
32
43
  none: false
33
44
  requirements:
34
45
  - - ~>
35
46
  - !ruby/object:Gem::Version
36
- version: "1.4"
37
- type: :development
47
+ hash: 5
48
+ segments:
49
+ - 0
50
+ - 7
51
+ - 3
52
+ version: 0.7.3
53
+ type: :runtime
38
54
  version_requirements: *id002
39
55
  - !ruby/object:Gem::Dependency
40
- name: rake
56
+ name: faraday_middleware
41
57
  prerelease: false
42
58
  requirement: &id003 !ruby/object:Gem::Requirement
43
59
  none: false
44
60
  requirements:
45
61
  - - ~>
46
62
  - !ruby/object:Gem::Version
47
- version: "0.8"
48
- type: :development
63
+ hash: 15424103
64
+ segments:
65
+ - 0
66
+ - 7
67
+ - 0
68
+ - rc
69
+ - 1
70
+ version: 0.7.0.rc1
71
+ type: :runtime
49
72
  version_requirements: *id003
50
73
  - !ruby/object:Gem::Dependency
51
- name: rspec
74
+ name: hashie
52
75
  prerelease: false
53
76
  requirement: &id004 !ruby/object:Gem::Requirement
54
77
  none: false
55
78
  requirements:
56
79
  - - ~>
57
80
  - !ruby/object:Gem::Version
58
- version: "2.5"
59
- type: :development
81
+ hash: 23
82
+ segments:
83
+ - 1
84
+ - 0
85
+ - 0
86
+ version: 1.0.0
87
+ type: :runtime
60
88
  version_requirements: *id004
61
89
  - !ruby/object:Gem::Dependency
62
- name: simplecov
90
+ name: multi_json
63
91
  prerelease: false
64
92
  requirement: &id005 !ruby/object:Gem::Requirement
65
93
  none: false
66
94
  requirements:
67
95
  - - ~>
68
96
  - !ruby/object:Gem::Version
69
- version: "0.4"
70
- type: :development
97
+ hash: 19
98
+ segments:
99
+ - 1
100
+ - 0
101
+ - 2
102
+ version: 1.0.2
103
+ type: :runtime
71
104
  version_requirements: *id005
72
105
  - !ruby/object:Gem::Dependency
73
- name: yard
106
+ name: ZenTest
74
107
  prerelease: false
75
108
  requirement: &id006 !ruby/object:Gem::Requirement
76
109
  none: false
77
110
  requirements:
78
111
  - - ~>
79
112
  - !ruby/object:Gem::Version
80
- version: "0.6"
113
+ hash: 17
114
+ segments:
115
+ - 4
116
+ - 5
117
+ version: "4.5"
81
118
  type: :development
82
119
  version_requirements: *id006
83
120
  - !ruby/object:Gem::Dependency
84
- name: webmock
121
+ name: nokogiri
85
122
  prerelease: false
86
123
  requirement: &id007 !ruby/object:Gem::Requirement
87
124
  none: false
88
125
  requirements:
89
126
  - - ~>
90
127
  - !ruby/object:Gem::Version
91
- version: "1.6"
128
+ hash: 7
129
+ segments:
130
+ - 1
131
+ - 4
132
+ version: "1.4"
92
133
  type: :development
93
134
  version_requirements: *id007
94
135
  - !ruby/object:Gem::Dependency
95
- name: ZenTest
136
+ name: rake
96
137
  prerelease: false
97
138
  requirement: &id008 !ruby/object:Gem::Requirement
98
139
  none: false
99
140
  requirements:
100
141
  - - ~>
101
142
  - !ruby/object:Gem::Version
102
- version: "4.5"
143
+ hash: 25
144
+ segments:
145
+ - 0
146
+ - 9
147
+ version: "0.9"
103
148
  type: :development
104
149
  version_requirements: *id008
105
150
  - !ruby/object:Gem::Dependency
106
- name: addressable
151
+ name: rspec
107
152
  prerelease: false
108
153
  requirement: &id009 !ruby/object:Gem::Requirement
109
154
  none: false
110
155
  requirements:
111
156
  - - ~>
112
157
  - !ruby/object:Gem::Version
113
- version: 2.2.4
114
- type: :runtime
158
+ hash: 15
159
+ segments:
160
+ - 2
161
+ - 6
162
+ version: "2.6"
163
+ type: :development
115
164
  version_requirements: *id009
116
165
  - !ruby/object:Gem::Dependency
117
- name: hashie
166
+ name: simplecov
118
167
  prerelease: false
119
168
  requirement: &id010 !ruby/object:Gem::Requirement
120
169
  none: false
121
170
  requirements:
122
171
  - - ~>
123
172
  - !ruby/object:Gem::Version
124
- version: 1.0.0
125
- type: :runtime
173
+ hash: 3
174
+ segments:
175
+ - 0
176
+ - 4
177
+ version: "0.4"
178
+ type: :development
126
179
  version_requirements: *id010
127
180
  - !ruby/object:Gem::Dependency
128
- name: faraday
181
+ name: webmock
129
182
  prerelease: false
130
183
  requirement: &id011 !ruby/object:Gem::Requirement
131
184
  none: false
132
185
  requirements:
133
186
  - - ~>
134
187
  - !ruby/object:Gem::Version
135
- version: 0.6.0
136
- type: :runtime
188
+ hash: 3
189
+ segments:
190
+ - 1
191
+ - 6
192
+ version: "1.6"
193
+ type: :development
137
194
  version_requirements: *id011
138
195
  - !ruby/object:Gem::Dependency
139
- name: faraday_middleware
196
+ name: yajl-ruby
140
197
  prerelease: false
141
198
  requirement: &id012 !ruby/object:Gem::Requirement
142
199
  none: false
143
200
  requirements:
144
201
  - - ~>
145
202
  - !ruby/object:Gem::Version
146
- version: 0.6.0
147
- type: :runtime
203
+ hash: 27
204
+ segments:
205
+ - 0
206
+ - 8
207
+ version: "0.8"
208
+ type: :development
148
209
  version_requirements: *id012
149
210
  - !ruby/object:Gem::Dependency
150
- name: multi_json
211
+ name: yard
151
212
  prerelease: false
152
213
  requirement: &id013 !ruby/object:Gem::Requirement
153
214
  none: false
154
215
  requirements:
155
216
  - - ~>
156
217
  - !ruby/object:Gem::Version
157
- version: 1.0.0
158
- type: :runtime
218
+ hash: 5
219
+ segments:
220
+ - 0
221
+ - 7
222
+ version: "0.7"
223
+ type: :development
159
224
  version_requirements: *id013
160
- - !ruby/object:Gem::Dependency
161
- name: rash
162
- prerelease: false
163
- requirement: &id014 !ruby/object:Gem::Requirement
164
- none: false
165
- requirements:
166
- - - ~>
167
- - !ruby/object:Gem::Version
168
- version: 0.3.0
169
- type: :runtime
170
- version_requirements: *id014
171
225
  description: Simple wrapper for the GitHub API v2
172
226
  email:
173
227
  - wynn.netherland@gmail.com
228
+ - adam@stacoviak.com
229
+ - sferik@gmail.com
174
230
  executables: []
175
231
 
176
232
  extensions: []
@@ -189,25 +245,30 @@ files:
189
245
  - LICENSE
190
246
  - README.md
191
247
  - Rakefile
192
- - lib/faraday/response/raise_error.rb
248
+ - lib/faraday/response/raise_octokit_error.rb
193
249
  - lib/octokit.rb
250
+ - lib/octokit/authentication.rb
194
251
  - lib/octokit/client.rb
195
- - lib/octokit/client/authentication.rb
196
252
  - lib/octokit/client/commits.rb
197
- - lib/octokit/client/connection.rb
198
253
  - lib/octokit/client/issues.rb
254
+ - lib/octokit/client/milestones.rb
199
255
  - lib/octokit/client/network.rb
200
256
  - lib/octokit/client/objects.rb
201
257
  - lib/octokit/client/organizations.rb
258
+ - lib/octokit/client/pub_sub_hubbub.rb
259
+ - lib/octokit/client/pub_sub_hubbub/service_hooks.rb
202
260
  - lib/octokit/client/pulls.rb
203
261
  - lib/octokit/client/repositories.rb
204
- - lib/octokit/client/request.rb
205
262
  - lib/octokit/client/timelines.rb
206
263
  - lib/octokit/client/users.rb
207
264
  - lib/octokit/configuration.rb
265
+ - lib/octokit/connection.rb
266
+ - lib/octokit/error.rb
208
267
  - lib/octokit/repository.rb
268
+ - lib/octokit/request.rb
209
269
  - lib/octokit/version.rb
210
270
  - octokit.gemspec
271
+ - puppeteer.jpg
211
272
  - spec/faraday/response_spec.rb
212
273
  - spec/fixtures/timeline.json
213
274
  - spec/fixtures/v2/blob.json
@@ -248,13 +309,24 @@ files:
248
309
  - spec/fixtures/v2/user.json
249
310
  - spec/fixtures/v2/users.json
250
311
  - spec/fixtures/v2/watchers.json
312
+ - spec/fixtures/v3/comment.json
313
+ - spec/fixtures/v3/comments.json
251
314
  - spec/fixtures/v3/issues.json
315
+ - spec/fixtures/v3/label.json
316
+ - spec/fixtures/v3/labels.json
317
+ - spec/fixtures/v3/milestone.json
318
+ - spec/fixtures/v3/milestones.json
319
+ - spec/fixtures/v3/not_found.json
320
+ - spec/fixtures/v3/user.json
252
321
  - spec/helper.rb
253
322
  - spec/octokit/client/commits_spec.rb
254
323
  - spec/octokit/client/issues_spec.rb
324
+ - spec/octokit/client/milestones_spec.rb
255
325
  - spec/octokit/client/network_spec.rb
256
326
  - spec/octokit/client/objects_spec.rb
257
327
  - spec/octokit/client/organizations_spec.rb
328
+ - spec/octokit/client/pub_sub_hubbub/service_hooks_spec.rb
329
+ - spec/octokit/client/pub_sub_hubbub_spec.rb
258
330
  - spec/octokit/client/pulls_spec.rb
259
331
  - spec/octokit/client/repositories_spec.rb
260
332
  - spec/octokit/client/timelines_spec.rb
@@ -262,7 +334,8 @@ files:
262
334
  - spec/octokit/client_spec.rb
263
335
  - spec/octokit_spec.rb
264
336
  - spec/repository_spec.rb
265
- homepage: http://wynnnetherland.com/projects/octokit/
337
+ has_rdoc: true
338
+ homepage: https://github.com/pengwynn/octokit
266
339
  licenses: []
267
340
 
268
341
  post_install_message:
@@ -275,17 +348,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
275
348
  requirements:
276
349
  - - ">="
277
350
  - !ruby/object:Gem::Version
351
+ hash: 3
352
+ segments:
353
+ - 0
278
354
  version: "0"
279
355
  required_rubygems_version: !ruby/object:Gem::Requirement
280
356
  none: false
281
357
  requirements:
282
358
  - - ">="
283
359
  - !ruby/object:Gem::Version
360
+ hash: 23
361
+ segments:
362
+ - 1
363
+ - 3
364
+ - 6
284
365
  version: 1.3.6
285
366
  requirements: []
286
367
 
287
368
  rubyforge_project:
288
- rubygems_version: 1.8.0
369
+ rubygems_version: 1.6.2
289
370
  signing_key:
290
371
  specification_version: 3
291
372
  summary: Wrapper for the GitHub API
@@ -330,13 +411,24 @@ test_files:
330
411
  - spec/fixtures/v2/user.json
331
412
  - spec/fixtures/v2/users.json
332
413
  - spec/fixtures/v2/watchers.json
414
+ - spec/fixtures/v3/comment.json
415
+ - spec/fixtures/v3/comments.json
333
416
  - spec/fixtures/v3/issues.json
417
+ - spec/fixtures/v3/label.json
418
+ - spec/fixtures/v3/labels.json
419
+ - spec/fixtures/v3/milestone.json
420
+ - spec/fixtures/v3/milestones.json
421
+ - spec/fixtures/v3/not_found.json
422
+ - spec/fixtures/v3/user.json
334
423
  - spec/helper.rb
335
424
  - spec/octokit/client/commits_spec.rb
336
425
  - spec/octokit/client/issues_spec.rb
426
+ - spec/octokit/client/milestones_spec.rb
337
427
  - spec/octokit/client/network_spec.rb
338
428
  - spec/octokit/client/objects_spec.rb
339
429
  - spec/octokit/client/organizations_spec.rb
430
+ - spec/octokit/client/pub_sub_hubbub/service_hooks_spec.rb
431
+ - spec/octokit/client/pub_sub_hubbub_spec.rb
340
432
  - spec/octokit/client/pulls_spec.rb
341
433
  - spec/octokit/client/repositories_spec.rb
342
434
  - spec/octokit/client/timelines_spec.rb