github_api 0.3.5 → 0.3.6

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 (147) hide show
  1. data/LICENSE.txt +20 -0
  2. data/README.rdoc +228 -0
  3. data/Rakefile +52 -0
  4. data/features/github_api.feature +50 -0
  5. data/features/options.feature +4 -0
  6. data/features/pagination.feature +4 -0
  7. data/features/step_definitions/github_api_steps.rb +11 -0
  8. data/features/support/env.rb +13 -0
  9. data/lib/github_api.rb +73 -0
  10. data/lib/github_api/api.rb +175 -0
  11. data/lib/github_api/api/utils.rb +9 -0
  12. data/lib/github_api/authorization.rb +73 -0
  13. data/lib/github_api/authorizations.rb +119 -0
  14. data/lib/github_api/cache_control.rb +19 -0
  15. data/lib/github_api/client.rb +55 -0
  16. data/lib/github_api/compatibility.rb +23 -0
  17. data/lib/github_api/configuration.rb +96 -0
  18. data/lib/github_api/connection.rb +75 -0
  19. data/lib/github_api/core_ext/array.rb +14 -0
  20. data/lib/github_api/core_ext/hash.rb +42 -0
  21. data/lib/github_api/error.rb +35 -0
  22. data/lib/github_api/events.rb +202 -0
  23. data/lib/github_api/gists.rb +200 -0
  24. data/lib/github_api/gists/comments.rb +86 -0
  25. data/lib/github_api/git_data.rb +26 -0
  26. data/lib/github_api/git_data/blobs.rb +51 -0
  27. data/lib/github_api/git_data/commits.rb +78 -0
  28. data/lib/github_api/git_data/references.rb +113 -0
  29. data/lib/github_api/git_data/tags.rb +78 -0
  30. data/lib/github_api/git_data/trees.rb +89 -0
  31. data/lib/github_api/issues.rb +215 -0
  32. data/lib/github_api/issues/comments.rb +123 -0
  33. data/lib/github_api/issues/events.rb +54 -0
  34. data/lib/github_api/issues/labels.rb +191 -0
  35. data/lib/github_api/issues/milestones.rb +140 -0
  36. data/lib/github_api/mime_type.rb +55 -0
  37. data/lib/github_api/orgs.rb +95 -0
  38. data/lib/github_api/orgs/members.rb +120 -0
  39. data/lib/github_api/orgs/teams.rb +245 -0
  40. data/lib/github_api/pull_requests.rb +224 -0
  41. data/lib/github_api/pull_requests/comments.rb +144 -0
  42. data/lib/github_api/repos.rb +286 -0
  43. data/lib/github_api/repos/collaborators.rb +81 -0
  44. data/lib/github_api/repos/commits.rb +180 -0
  45. data/lib/github_api/repos/downloads.rb +155 -0
  46. data/lib/github_api/repos/forks.rb +48 -0
  47. data/lib/github_api/repos/hooks.rb +174 -0
  48. data/lib/github_api/repos/keys.rb +104 -0
  49. data/lib/github_api/repos/pub_sub_hubbub.rb +102 -0
  50. data/lib/github_api/repos/watching.rb +94 -0
  51. data/lib/github_api/request.rb +84 -0
  52. data/lib/github_api/request/basic_auth.rb +31 -0
  53. data/lib/github_api/request/caching.rb +33 -0
  54. data/lib/github_api/request/oauth2.rb +33 -0
  55. data/lib/github_api/response.rb +28 -0
  56. data/lib/github_api/response/helpers.rb +14 -0
  57. data/lib/github_api/response/jsonize.rb +26 -0
  58. data/lib/github_api/response/mashify.rb +24 -0
  59. data/lib/github_api/response/raise_error.rb +33 -0
  60. data/lib/github_api/result.rb +42 -0
  61. data/lib/github_api/users.rb +84 -0
  62. data/lib/github_api/users/emails.rb +49 -0
  63. data/lib/github_api/users/followers.rb +98 -0
  64. data/lib/github_api/users/keys.rb +84 -0
  65. data/lib/github_api/version.rb +12 -0
  66. data/spec/README.rdoc +22 -0
  67. data/spec/coverage_adapter.rb +15 -0
  68. data/spec/fixtures/auths/authorization.json +14 -0
  69. data/spec/fixtures/auths/authorizations.json +16 -0
  70. data/spec/fixtures/events/events.json +29 -0
  71. data/spec/fixtures/issues/comment.json +13 -0
  72. data/spec/fixtures/issues/comments.json +15 -0
  73. data/spec/fixtures/issues/event.json +13 -0
  74. data/spec/fixtures/issues/events.json +15 -0
  75. data/spec/fixtures/issues/issue.json +56 -0
  76. data/spec/fixtures/issues/issues.json +58 -0
  77. data/spec/fixtures/issues/milestone.json +18 -0
  78. data/spec/fixtures/issues/milestones.json +20 -0
  79. data/spec/fixtures/orgs/members.json +9 -0
  80. data/spec/fixtures/orgs/org.json +18 -0
  81. data/spec/fixtures/orgs/orgs.json +8 -0
  82. data/spec/fixtures/orgs/team.json +8 -0
  83. data/spec/fixtures/orgs/team_repos.json +29 -0
  84. data/spec/fixtures/orgs/teams.json +7 -0
  85. data/spec/fixtures/repos/branches.json +9 -0
  86. data/spec/fixtures/repos/collaborators.json +8 -0
  87. data/spec/fixtures/repos/commit.json +53 -0
  88. data/spec/fixtures/repos/commit_comment.json +16 -0
  89. data/spec/fixtures/repos/commit_comments.json +18 -0
  90. data/spec/fixtures/repos/commits.json +27 -0
  91. data/spec/fixtures/repos/contributors.json +8 -0
  92. data/spec/fixtures/repos/download.json +10 -0
  93. data/spec/fixtures/repos/download_s3.json +21 -0
  94. data/spec/fixtures/repos/downloads.json +12 -0
  95. data/spec/fixtures/repos/fork.json +27 -0
  96. data/spec/fixtures/repos/forks.json +29 -0
  97. data/spec/fixtures/repos/hook.json +15 -0
  98. data/spec/fixtures/repos/hooks.json +10 -0
  99. data/spec/fixtures/repos/key.json +6 -0
  100. data/spec/fixtures/repos/keys.json +8 -0
  101. data/spec/fixtures/repos/languages.json +4 -0
  102. data/spec/fixtures/repos/repo.json +90 -0
  103. data/spec/fixtures/repos/repo_comments.json +18 -0
  104. data/spec/fixtures/repos/repos.json +29 -0
  105. data/spec/fixtures/repos/tags.json +11 -0
  106. data/spec/fixtures/repos/teams.json +7 -0
  107. data/spec/fixtures/repos/watched.json +29 -0
  108. data/spec/fixtures/repos/watchers.json +8 -0
  109. data/spec/fixtures/users/user.json +32 -0
  110. data/spec/github/api_spec.rb +25 -0
  111. data/spec/github/authorization_spec.rb +176 -0
  112. data/spec/github/authorizations_spec.rb +242 -0
  113. data/spec/github/client_spec.rb +50 -0
  114. data/spec/github/core_ext/hash_spec.rb +44 -0
  115. data/spec/github/events_spec.rb +491 -0
  116. data/spec/github/gists/comments_spec.rb +5 -0
  117. data/spec/github/gists_spec.rb +5 -0
  118. data/spec/github/git_data/blobs_spec.rb +5 -0
  119. data/spec/github/git_data/commits_spec.rb +5 -0
  120. data/spec/github/git_data/references_spec.rb +5 -0
  121. data/spec/github/git_data/tags_spec.rb +5 -0
  122. data/spec/github/git_data/trees_spec.rb +5 -0
  123. data/spec/github/git_data_spec.rb +5 -0
  124. data/spec/github/issues/comments_spec.rb +254 -0
  125. data/spec/github/issues/events_spec.rb +153 -0
  126. data/spec/github/issues/labels_spec.rb +5 -0
  127. data/spec/github/issues/milestones_spec.rb +260 -0
  128. data/spec/github/issues_spec.rb +287 -0
  129. data/spec/github/mime_type_spec.rb +70 -0
  130. data/spec/github/orgs/members_spec.rb +275 -0
  131. data/spec/github/orgs/teams_spec.rb +563 -0
  132. data/spec/github/orgs_spec.rb +160 -0
  133. data/spec/github/repos/collaborators_spec.rb +169 -0
  134. data/spec/github/repos/commits_spec.rb +424 -0
  135. data/spec/github/repos/downloads_spec.rb +247 -0
  136. data/spec/github/repos/forks_spec.rb +108 -0
  137. data/spec/github/repos/hooks_spec.rb +333 -0
  138. data/spec/github/repos/keys_spec.rb +217 -0
  139. data/spec/github/repos/pub_sub_hubbub_spec.rb +83 -0
  140. data/spec/github/repos/watching_spec.rb +222 -0
  141. data/spec/github/repos_spec.rb +571 -0
  142. data/spec/github/result_spec.rb +43 -0
  143. data/spec/github/users_spec.rb +140 -0
  144. data/spec/github_spec.rb +109 -0
  145. data/spec/spec_helper.rb +86 -0
  146. data/spec/support/base.rb +13 -0
  147. metadata +149 -4
@@ -0,0 +1,43 @@
1
+ require 'spec_helper'
2
+
3
+ describe Github::Result do
4
+
5
+ let(:github) { Github.new }
6
+ let(:res) { github.events.public }
7
+
8
+ before do
9
+ stub_get("/events").
10
+ to_return(:body => fixture('events/events.json'),
11
+ :status => 200,
12
+ :headers => {
13
+ :content_type => "application/json; charset=utf-8",
14
+ 'X-RateLimit-Remaining' => '4999',
15
+ 'content-length' => '344'
16
+ })
17
+ end
18
+
19
+ it "should read response content_type " do
20
+ res.content_type.should match 'application/json'
21
+ end
22
+
23
+ it "should read response content_length " do
24
+ res.content_length.should match '344'
25
+ end
26
+
27
+ it "should read response ratelimit" do
28
+ res.ratelimit.should == '4999'
29
+ end
30
+
31
+ it "should read response statsu" do
32
+ res.status.should be 200
33
+ end
34
+
35
+ it "should assess successful" do
36
+ res.success?.should be_true
37
+ end
38
+
39
+ it "should read response body" do
40
+ res.body.should_not be_empty
41
+ end
42
+
43
+ end # Github::Result
@@ -0,0 +1,140 @@
1
+ require 'spec_helper'
2
+
3
+ describe Github::Users do
4
+
5
+ let(:github) { Github.new }
6
+ let(:user) { 'peter-murach' }
7
+
8
+ before do
9
+ reset_authentication_for github
10
+ end
11
+
12
+ after do
13
+ reset_authentication_for github
14
+ end
15
+
16
+ describe "get_user" do
17
+ context "resource found for a user" do
18
+ before do
19
+ stub_get("/users/#{user}").
20
+ to_return(:body => fixture('users/user.json'), :status => 200, :headers => {:content_type => "application/json; charset=utf-8"})
21
+ end
22
+
23
+ it "should get the resources" do
24
+ github.users.get_user user
25
+ a_get("/users/#{user}").should have_been_made
26
+ end
27
+
28
+ it "should return resource" do
29
+ user_resource = github.users.get_user user
30
+ user_resource.should be_a Hash
31
+ end
32
+
33
+ it "should be a mash type" do
34
+ user_resource = github.users.get_user user
35
+ user_resource.should be_a Hashie::Mash
36
+ end
37
+
38
+ it "should get org information" do
39
+ user_resource = github.users.get_user user
40
+ user_resource.login.should == 'octocat'
41
+ end
42
+
43
+ it "should yield to a block" do
44
+ github.users.should_receive(:get_user).with(user).and_yield('web')
45
+ github.users.get_user(user) { |param| 'web' }
46
+ end
47
+ end
48
+
49
+ context "resource found for an authenticated user" do
50
+ before do
51
+ reset_authentication_for github
52
+ github.oauth_token = OAUTH_TOKEN
53
+ stub_get("/user?access_token=#{OAUTH_TOKEN}").
54
+ to_return(:body => fixture('users/user.json'), :status => 200, :headers => {:content_type => "application/json; charset=utf-8"})
55
+ end
56
+
57
+ after do
58
+ reset_authentication_for github
59
+ end
60
+
61
+ it "should get the resources" do
62
+ github.users.get_user
63
+ a_get("/user?access_token=#{OAUTH_TOKEN}").should have_been_made
64
+ end
65
+ end
66
+
67
+ context "resource not found for a user" do
68
+ before do
69
+ stub_get("/users/#{user}").
70
+ to_return(:body => "", :status => [404, "Not Found"])
71
+ end
72
+
73
+ it "should return 404 with a message 'Not Found'" do
74
+ expect {
75
+ github.users.get_user user
76
+ }.to raise_error(Github::ResourceNotFound)
77
+ end
78
+ end
79
+ end # get_user
80
+
81
+ describe "update_user" do
82
+ let(:user_params) {
83
+ {
84
+ "name" => "monalisa octocat",
85
+ "email" => "octocat@github.com",
86
+ "blog" => "https://github.com/blog",
87
+ "company" => "GitHub",
88
+ "location" => "San Francisco",
89
+ "hireable" => true,
90
+ "bio" => "There once..."
91
+ }
92
+ }
93
+
94
+ context "resouce updated" do
95
+ before do
96
+ reset_authentication_for github
97
+ github.oauth_token = OAUTH_TOKEN
98
+ stub_patch("/user?access_token=#{OAUTH_TOKEN}").with(user_params).
99
+ to_return(:body => fixture('users/user.json'), :status => 200, :headers => {:content_type => "application/json; charset=utf-8"})
100
+
101
+ end
102
+
103
+ after do
104
+ reset_authentication_for github
105
+ end
106
+
107
+ it "should create resource successfully" do
108
+ github.users.update_user
109
+ a_patch("/user?access_token=#{OAUTH_TOKEN}").with(user_params).should have_been_made
110
+ end
111
+
112
+ it "should return the resource" do
113
+ user_resource = github.users.update_user
114
+ user_resource.should be_a Hashie::Mash
115
+ end
116
+
117
+ it "should get the resource information" do
118
+ user_resource = github.users.update_user
119
+ user_resource.login.should == 'octocat'
120
+ end
121
+ end
122
+
123
+ context "failed to update resource" do
124
+ before do
125
+ reset_authentication_for github
126
+ github.oauth_token = OAUTH_TOKEN
127
+ stub_patch("/user?access_token=#{OAUTH_TOKEN}").with(user_params).
128
+ to_return(:body => fixture('users/user.json'), :status => 404, :headers => {:content_type => "application/json; charset=utf-8"})
129
+
130
+ end
131
+
132
+ it "should fail to retrieve resource" do
133
+ expect {
134
+ github.users.update_user
135
+ }.to raise_error(Github::ResourceNotFound)
136
+ end
137
+ end
138
+ end # update_comment
139
+
140
+ end # Github::Users
@@ -0,0 +1,109 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe Github do
4
+
5
+ before do
6
+ Github.user = nil
7
+ Github.repo = nil
8
+ end
9
+
10
+ it "should respond to 'new' message" do
11
+ Github.should respond_to :new
12
+ end
13
+
14
+ it "should receive 'new' and initialize Github::Client instance" do
15
+ Github.new.should be_a Github::Client
16
+ end
17
+
18
+ it "should respond to 'configure' message" do
19
+ Github.should respond_to :configure
20
+ end
21
+
22
+ describe "setting configuration options" do
23
+
24
+ it "should return default adapter" do
25
+ Github.adapter.should == Github::Configuration::DEFAULT_ADAPTER
26
+ end
27
+
28
+ it "should allow to set adapter" do
29
+ Github.adapter = :typhoeus
30
+ Github.adapter.should == :typhoeus
31
+ end
32
+
33
+ it "should return the default end point" do
34
+ Github.endpoint.should == Github::Configuration::DEFAULT_ENDPOINT
35
+ end
36
+
37
+ it "should allow to set endpoint" do
38
+ Github.endpoint = 'http://linkedin.com'
39
+ Github.endpoint.should == 'http://linkedin.com'
40
+ end
41
+
42
+ it "should return the default user agent" do
43
+ Github.user_agent.should == Github::Configuration::DEFAULT_USER_AGENT
44
+ end
45
+
46
+ it "should allow to set new user agent" do
47
+ Github.user_agent = 'New User Agent'
48
+ Github.user_agent.should == 'New User Agent'
49
+ end
50
+
51
+ it "should have not set oauth token" do
52
+ Github.oauth_token.should be_nil
53
+ end
54
+
55
+ it "should allow to set oauth token" do
56
+ Github.oauth_token = ''
57
+ end
58
+
59
+ it "should have not set default user" do
60
+ Github.user.should be_nil
61
+ end
62
+
63
+ it "should allow to set new user" do
64
+ Github.user = 'github'
65
+ Github.user.should == 'github'
66
+ end
67
+
68
+ it "should have not set default repository" do
69
+ Github.repo.should be_nil
70
+ end
71
+
72
+ it "should allow to set new repository" do
73
+ Github.repo = 'github'
74
+ Github.repo.should == 'github'
75
+ end
76
+
77
+ it "should have connection options as hash" do
78
+ Github.connection_options.should be_a Hash
79
+ end
80
+
81
+ it "should initialize connection options to empty hash" do
82
+ Github.connection_options.should be_empty
83
+ end
84
+
85
+ it "shoulve have not set user's login" do
86
+ Github.login.should be_nil
87
+ end
88
+
89
+ it "should have not set user's password" do
90
+ Github.password.should be_nil
91
+ end
92
+
93
+ it "should have set mime type to json" do
94
+ Github.mime_type.should == :json
95
+ end
96
+ end
97
+
98
+ describe ".configure" do
99
+ Github::Configuration::VALID_OPTIONS_KEYS.each do |key|
100
+ it "should set the #{key}" do
101
+ Github.configure do |config|
102
+ config.send("#{key}=", key)
103
+ Github.send(key).should == key
104
+ end
105
+ end
106
+ end
107
+ end
108
+
109
+ end
@@ -0,0 +1,86 @@
1
+ require 'rubygems'
2
+
3
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
4
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
5
+
6
+ require 'rspec'
7
+ require 'json'
8
+ require 'webmock/rspec'
9
+ require 'github_api'
10
+
11
+ if RUBY_VERSION > '1.9' and ENV['COVERAGE']
12
+ require 'coverage_adapter'
13
+ SimpleCov.start 'github_api'
14
+ end
15
+
16
+ # Requires supporting files with custom matchers and macros, etc,
17
+ # in ./support/ and its subdirectories.
18
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
19
+
20
+ RSpec.configure do |config|
21
+ config.include WebMock::API
22
+ end
23
+
24
+ def stub_get(path, endpoint = Github.endpoint.to_s)
25
+ stub_request(:get, endpoint + path)
26
+ end
27
+
28
+ def stub_post(path, endpoint = Github.endpoint.to_s)
29
+ stub_request(:post, endpoint + path)
30
+ end
31
+
32
+ def stub_patch(path, endpoint = Github.endpoint.to_s)
33
+ stub_request(:patch, endpoint + path)
34
+ end
35
+
36
+ def stub_put(path, endpoint = Github.endpoint.to_s)
37
+ stub_request(:put, endpoint + path)
38
+ end
39
+
40
+ def stub_delete(path, endpoint = Github.endpoint.to_s)
41
+ stub_request(:delete, endpoint + path)
42
+ end
43
+
44
+ def a_get(path, endpoint = Github.endpoint.to_s)
45
+ a_request(:get, endpoint + path)
46
+ end
47
+
48
+ def a_post(path, endpoint = Github.endpoint.to_s)
49
+ a_request(:post, endpoint + path)
50
+ end
51
+
52
+ def a_patch(path, endpoint = Github.endpoint.to_s)
53
+ a_request(:patch, endpoint + path)
54
+ end
55
+
56
+ def a_put(path, endpoint = Github.endpoint)
57
+ a_request(:put, endpoint + path)
58
+ end
59
+
60
+ def a_delete(path, endpoint = Github.endpoint)
61
+ a_request(:delete, endpoint + path)
62
+ end
63
+
64
+ def fixture_path
65
+ File.expand_path("../fixtures", __FILE__)
66
+ end
67
+
68
+ def fixture(file)
69
+ File.new(File.join(fixture_path, '/', file))
70
+ end
71
+
72
+ OAUTH_TOKEN = 'bafec72922f31fe86aacc8aca4261117f3bd62cf'
73
+
74
+ def reset_authentication_for(object)
75
+ ['basic_auth', 'oauth_token', 'login', 'password' ].each do |item|
76
+ object.send("#{item}=", nil)
77
+ end
78
+ end
79
+
80
+ class Hash
81
+ def except(*keys)
82
+ cpy = self.dup
83
+ keys.each { |key| cpy.delete(key) }
84
+ cpy
85
+ end
86
+ end
@@ -0,0 +1,13 @@
1
+ module SpecHelpers
2
+ module Base
3
+
4
+ def self.included(base)
5
+ base.class_eval do
6
+ let(:github) { Github.new }
7
+ let(:user) { 'peter-murach' }
8
+ let(:repo) { 'github' }
9
+ end
10
+ end
11
+
12
+ end
13
+ end # SpecHelpers
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: github_api
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.5
5
+ version: 0.3.6
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: 2011-12-18 00:00:00 +00:00
13
+ date: 2011-12-26 00:00:00 +00:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -164,8 +164,153 @@ extensions: []
164
164
 
165
165
  extra_rdoc_files: []
166
166
 
167
- files: []
168
-
167
+ files:
168
+ - Rakefile
169
+ - features/github_api.feature
170
+ - features/options.feature
171
+ - features/pagination.feature
172
+ - features/step_definitions/github_api_steps.rb
173
+ - features/support/env.rb
174
+ - lib/github_api/api/utils.rb
175
+ - lib/github_api/api.rb
176
+ - lib/github_api/authorization.rb
177
+ - lib/github_api/authorizations.rb
178
+ - lib/github_api/cache_control.rb
179
+ - lib/github_api/client.rb
180
+ - lib/github_api/compatibility.rb
181
+ - lib/github_api/configuration.rb
182
+ - lib/github_api/connection.rb
183
+ - lib/github_api/core_ext/array.rb
184
+ - lib/github_api/core_ext/hash.rb
185
+ - lib/github_api/error.rb
186
+ - lib/github_api/events.rb
187
+ - lib/github_api/gists/comments.rb
188
+ - lib/github_api/gists.rb
189
+ - lib/github_api/git_data/blobs.rb
190
+ - lib/github_api/git_data/commits.rb
191
+ - lib/github_api/git_data/references.rb
192
+ - lib/github_api/git_data/tags.rb
193
+ - lib/github_api/git_data/trees.rb
194
+ - lib/github_api/git_data.rb
195
+ - lib/github_api/issues/comments.rb
196
+ - lib/github_api/issues/events.rb
197
+ - lib/github_api/issues/labels.rb
198
+ - lib/github_api/issues/milestones.rb
199
+ - lib/github_api/issues.rb
200
+ - lib/github_api/mime_type.rb
201
+ - lib/github_api/orgs/members.rb
202
+ - lib/github_api/orgs/teams.rb
203
+ - lib/github_api/orgs.rb
204
+ - lib/github_api/pull_requests/comments.rb
205
+ - lib/github_api/pull_requests.rb
206
+ - lib/github_api/repos/collaborators.rb
207
+ - lib/github_api/repos/commits.rb
208
+ - lib/github_api/repos/downloads.rb
209
+ - lib/github_api/repos/forks.rb
210
+ - lib/github_api/repos/hooks.rb
211
+ - lib/github_api/repos/keys.rb
212
+ - lib/github_api/repos/pub_sub_hubbub.rb
213
+ - lib/github_api/repos/watching.rb
214
+ - lib/github_api/repos.rb
215
+ - lib/github_api/request/basic_auth.rb
216
+ - lib/github_api/request/caching.rb
217
+ - lib/github_api/request/oauth2.rb
218
+ - lib/github_api/request.rb
219
+ - lib/github_api/response/helpers.rb
220
+ - lib/github_api/response/jsonize.rb
221
+ - lib/github_api/response/mashify.rb
222
+ - lib/github_api/response/raise_error.rb
223
+ - lib/github_api/response.rb
224
+ - lib/github_api/result.rb
225
+ - lib/github_api/users/emails.rb
226
+ - lib/github_api/users/followers.rb
227
+ - lib/github_api/users/keys.rb
228
+ - lib/github_api/users.rb
229
+ - lib/github_api/version.rb
230
+ - lib/github_api.rb
231
+ - spec/coverage_adapter.rb
232
+ - spec/fixtures/auths/authorization.json
233
+ - spec/fixtures/auths/authorizations.json
234
+ - spec/fixtures/events/events.json
235
+ - spec/fixtures/issues/comment.json
236
+ - spec/fixtures/issues/comments.json
237
+ - spec/fixtures/issues/event.json
238
+ - spec/fixtures/issues/events.json
239
+ - spec/fixtures/issues/issue.json
240
+ - spec/fixtures/issues/issues.json
241
+ - spec/fixtures/issues/milestone.json
242
+ - spec/fixtures/issues/milestones.json
243
+ - spec/fixtures/orgs/members.json
244
+ - spec/fixtures/orgs/org.json
245
+ - spec/fixtures/orgs/orgs.json
246
+ - spec/fixtures/orgs/team.json
247
+ - spec/fixtures/orgs/team_repos.json
248
+ - spec/fixtures/orgs/teams.json
249
+ - spec/fixtures/repos/branches.json
250
+ - spec/fixtures/repos/collaborators.json
251
+ - spec/fixtures/repos/commit.json
252
+ - spec/fixtures/repos/commit_comment.json
253
+ - spec/fixtures/repos/commit_comments.json
254
+ - spec/fixtures/repos/commits.json
255
+ - spec/fixtures/repos/contributors.json
256
+ - spec/fixtures/repos/download.json
257
+ - spec/fixtures/repos/download_s3.json
258
+ - spec/fixtures/repos/downloads.json
259
+ - spec/fixtures/repos/fork.json
260
+ - spec/fixtures/repos/forks.json
261
+ - spec/fixtures/repos/hook.json
262
+ - spec/fixtures/repos/hooks.json
263
+ - spec/fixtures/repos/key.json
264
+ - spec/fixtures/repos/keys.json
265
+ - spec/fixtures/repos/languages.json
266
+ - spec/fixtures/repos/repo.json
267
+ - spec/fixtures/repos/repo_comments.json
268
+ - spec/fixtures/repos/repos.json
269
+ - spec/fixtures/repos/tags.json
270
+ - spec/fixtures/repos/teams.json
271
+ - spec/fixtures/repos/watched.json
272
+ - spec/fixtures/repos/watchers.json
273
+ - spec/fixtures/users/user.json
274
+ - spec/github/api_spec.rb
275
+ - spec/github/authorization_spec.rb
276
+ - spec/github/authorizations_spec.rb
277
+ - spec/github/client_spec.rb
278
+ - spec/github/core_ext/hash_spec.rb
279
+ - spec/github/events_spec.rb
280
+ - spec/github/gists/comments_spec.rb
281
+ - spec/github/gists_spec.rb
282
+ - spec/github/git_data/blobs_spec.rb
283
+ - spec/github/git_data/commits_spec.rb
284
+ - spec/github/git_data/references_spec.rb
285
+ - spec/github/git_data/tags_spec.rb
286
+ - spec/github/git_data/trees_spec.rb
287
+ - spec/github/git_data_spec.rb
288
+ - spec/github/issues/comments_spec.rb
289
+ - spec/github/issues/events_spec.rb
290
+ - spec/github/issues/labels_spec.rb
291
+ - spec/github/issues/milestones_spec.rb
292
+ - spec/github/issues_spec.rb
293
+ - spec/github/mime_type_spec.rb
294
+ - spec/github/orgs/members_spec.rb
295
+ - spec/github/orgs/teams_spec.rb
296
+ - spec/github/orgs_spec.rb
297
+ - spec/github/repos/collaborators_spec.rb
298
+ - spec/github/repos/commits_spec.rb
299
+ - spec/github/repos/downloads_spec.rb
300
+ - spec/github/repos/forks_spec.rb
301
+ - spec/github/repos/hooks_spec.rb
302
+ - spec/github/repos/keys_spec.rb
303
+ - spec/github/repos/pub_sub_hubbub_spec.rb
304
+ - spec/github/repos/watching_spec.rb
305
+ - spec/github/repos_spec.rb
306
+ - spec/github/result_spec.rb
307
+ - spec/github/users_spec.rb
308
+ - spec/github_spec.rb
309
+ - spec/README.rdoc
310
+ - spec/spec_helper.rb
311
+ - spec/support/base.rb
312
+ - README.rdoc
313
+ - LICENSE.txt
169
314
  has_rdoc: true
170
315
  homepage: https://github.com/peter-murach/github
171
316
  licenses: []