github_api 0.4.6 → 0.4.7

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 (97) hide show
  1. data/features/cassettes/errors/repos/create.yml +33 -23
  2. data/features/cassettes/gists/comments/all.yml +116 -106
  3. data/features/cassettes/gists/comments/first.yml +41 -31
  4. data/features/cassettes/gists/gist.yml +61 -50
  5. data/features/cassettes/gists/gists/public_all.yml +31 -58
  6. data/features/cassettes/gists/gists/user_all.yml +44 -34
  7. data/features/cassettes/pagination/repos.yml +161 -287
  8. data/features/cassettes/pagination/repos/commits.yml +174 -299
  9. data/features/cassettes/pagination/repos/commits/next.yml +166 -161
  10. data/features/cassettes/pagination/repos/commits/sha.yml +127 -121
  11. data/features/cassettes/pagination/repos/commits/sha/next.yml +130 -250
  12. data/features/cassettes/pagination/repos/diff.yml +126 -154
  13. data/features/cassettes/pagination/repos/diff/next.yml +123 -246
  14. data/features/cassettes/pagination/repos/next.yml +162 -157
  15. data/features/cassettes/pagination/repos/per_page/each_page.yml +370 -352
  16. data/features/cassettes/pagination/repos/per_page/first.yml +127 -121
  17. data/features/cassettes/repos/branches.yml +38 -65
  18. data/features/cassettes/repos/tags.yml +127 -175
  19. data/features/support/vcr.rb +2 -2
  20. data/lib/github_api/authorization.rb +3 -3
  21. data/lib/github_api/error.rb +3 -0
  22. data/lib/github_api/error/client_error.rb +20 -0
  23. data/lib/github_api/error/invalid_options.rb +18 -0
  24. data/lib/github_api/error/required_params.rb +18 -0
  25. data/lib/github_api/error/service_error.rb +1 -1
  26. data/lib/github_api/error/validations.rb +18 -0
  27. data/lib/github_api/gists.rb +1 -5
  28. data/lib/github_api/gists/comments.rb +2 -8
  29. data/lib/github_api/git_data/blobs.rb +1 -2
  30. data/lib/github_api/git_data/commits.rb +1 -2
  31. data/lib/github_api/git_data/references.rb +2 -4
  32. data/lib/github_api/git_data/trees.rb +1 -1
  33. data/lib/github_api/issues.rb +1 -2
  34. data/lib/github_api/issues/comments.rb +2 -2
  35. data/lib/github_api/issues/labels.rb +2 -4
  36. data/lib/github_api/issues/milestones.rb +2 -4
  37. data/lib/github_api/orgs/teams.rb +3 -4
  38. data/lib/github_api/repos.rb +9 -3
  39. data/lib/github_api/repos/commits.rb +2 -2
  40. data/lib/github_api/repos/downloads.rb +1 -2
  41. data/lib/github_api/repos/hooks.rb +2 -8
  42. data/lib/github_api/repos/keys.rb +2 -3
  43. data/lib/github_api/validation.rb +5 -1
  44. data/lib/github_api/version.rb +1 -1
  45. data/spec/github/api_factory_spec.rb +2 -1
  46. data/spec/github/api_spec.rb +4 -2
  47. data/spec/github/authorization_spec.rb +19 -28
  48. data/spec/github/authorizations_spec.rb +2 -1
  49. data/spec/github/client_spec.rb +4 -1
  50. data/spec/github/deprecation_spec.rb +2 -1
  51. data/spec/github/error/client_error_spec.rb +28 -0
  52. data/spec/github/error/invalid_options_spec.rb +21 -0
  53. data/spec/github/error/required_params_spec.rb +21 -0
  54. data/spec/github/events_spec.rb +4 -4
  55. data/spec/github/filter_spec.rb +2 -2
  56. data/spec/github/gists/comments_spec.rb +8 -4
  57. data/spec/github/gists_spec.rb +19 -14
  58. data/spec/github/git_data/blobs_spec.rb +10 -4
  59. data/spec/github/git_data/commits_spec.rb +13 -6
  60. data/spec/github/git_data/references_spec.rb +13 -8
  61. data/spec/github/git_data/tags_spec.rb +8 -3
  62. data/spec/github/git_data/trees_spec.rb +9 -3
  63. data/spec/github/issues/comments_spec.rb +10 -3
  64. data/spec/github/issues/events_spec.rb +8 -3
  65. data/spec/github/issues/labels_spec.rb +13 -7
  66. data/spec/github/issues/milestones_spec.rb +10 -3
  67. data/spec/github/issues_spec.rb +3 -3
  68. data/spec/github/mime_type_spec.rb +64 -64
  69. data/spec/github/orgs/members_spec.rb +2 -11
  70. data/spec/github/orgs/teams_spec.rb +9 -9
  71. data/spec/github/orgs_spec.rb +22 -8
  72. data/spec/github/page_iterator_spec.rb +2 -1
  73. data/spec/github/page_links_spec.rb +2 -1
  74. data/spec/github/paged_request_spec.rb +2 -1
  75. data/spec/github/pull_requests/comments_spec.rb +9 -3
  76. data/spec/github/pull_requests_spec.rb +6 -2
  77. data/spec/github/repos/collaborators_spec.rb +12 -7
  78. data/spec/github/repos/commits_spec.rb +20 -14
  79. data/spec/github/repos/downloads_spec.rb +19 -8
  80. data/spec/github/repos/forks_spec.rb +6 -3
  81. data/spec/github/repos/hooks_spec.rb +14 -8
  82. data/spec/github/repos/keys_spec.rb +8 -6
  83. data/spec/github/repos/pub_sub_hubbub_spec.rb +4 -11
  84. data/spec/github/repos/watching_spec.rb +15 -38
  85. data/spec/github/repos_spec.rb +35 -39
  86. data/spec/github/request_spec.rb +4 -0
  87. data/spec/github/response/helpers_spec.rb +0 -2
  88. data/spec/github/result_spec.rb +2 -3
  89. data/spec/github/users/followers_spec.rb +6 -8
  90. data/spec/github/users_spec.rb +123 -123
  91. data/spec/github/validation_spec.rb +8 -7
  92. data/spec/github_spec.rb +6 -7
  93. data/spec/spec_helper.rb +2 -2
  94. metadata +36 -21
  95. data/features/cassettes/gists/star.yml +0 -34
  96. data/features/cassettes/pagination/repos/per_page/1.yml +0 -134
  97. data/features/cassettes/repos/teams.yml +0 -38
@@ -1,3 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
+ require 'spec_helper'
3
4
 
5
+ describe Github::Request do
6
+ pending
7
+ end
@@ -1,7 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Github::Response::Helpers do
4
-
5
4
  let(:env) { { :body => [1,2,3] } }
6
5
  let(:instance) { described_class.new }
7
6
 
@@ -14,5 +13,4 @@ describe Github::Response::Helpers do
14
13
  res = instance.on_complete(env)
15
14
  res[:body].should respond_to :env
16
15
  end
17
-
18
16
  end # Github::Response::Helpers
@@ -1,7 +1,8 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Github::Result do
4
-
5
6
  let(:github) { Github.new }
6
7
  let(:user) { 'wycats' }
7
8
  let(:res) { github.events.public({ 'per_page' => 20 }) }
@@ -86,11 +87,9 @@ describe Github::Result do
86
87
  context "pagination methods" do
87
88
  let(:env) { {:response_headers => {}}}
88
89
  let(:iterator) { Github::PageIterator.new(env) }
89
- let(:items) { [] }
90
90
 
91
91
  before do
92
92
  described_class.stub(:page_iterator).and_return iterator
93
- @items.stub(:env).and_return env
94
93
  end
95
94
 
96
95
  it "should respond to links" do
@@ -1,14 +1,12 @@
1
- require 'spec_helper'
1
+ # encoding: utf-8
2
2
 
3
- describe Github::Users::Followers, :type => :base do
3
+ require 'spec_helper'
4
4
 
5
- before do
6
- reset_authentication_for github
7
- end
5
+ describe Github::Users::Followers do
6
+ let(:github) { Github.new }
7
+ let(:user) { 'peter-murach' }
8
8
 
9
- after do
10
- reset_authentication_for github
11
- end
9
+ after { reset_authentication_for github }
12
10
 
13
11
  describe "#followers" do
14
12
  context "resource found for a user" do
@@ -2,128 +2,128 @@ require 'spec_helper'
2
2
 
3
3
  describe Github::Users, :type => :base do
4
4
 
5
- before do
6
- reset_authentication_for github
7
- end
8
-
9
- after do
10
- reset_authentication_for github
11
- end
12
-
13
- describe "get_user" do
14
- context "resource found for a user" do
15
- before do
16
- stub_get("/users/#{user}").
17
- to_return(:body => fixture('users/user.json'),
18
- :status => 200, :headers => {:content_type => "application/json; charset=utf-8"})
19
- end
20
-
21
- it "should get the resources" do
22
- github.users.get_user user
23
- a_get("/users/#{user}").should have_been_made
24
- end
25
-
26
- it "should return resource" do
27
- user_resource = github.users.get_user user
28
- user_resource.should be_a Hash
29
- end
30
-
31
- it "should be a mash type" do
32
- user_resource = github.users.get_user user
33
- user_resource.should be_a Hashie::Mash
34
- end
35
-
36
- it "should get org information" do
37
- user_resource = github.users.get_user user
38
- user_resource.login.should == 'octocat'
39
- end
40
-
41
- it "should yield to a block" do
42
- github.users.should_receive(:get_user).with(user).and_yield('web')
43
- github.users.get_user(user) { |param| 'web' }
44
- end
45
- end
46
-
47
- context "resource found for an authenticated user" do
48
- before do
49
- github.oauth_token = OAUTH_TOKEN
50
- stub_get("/user").
51
- with(:query => { :access_token => "#{OAUTH_TOKEN}"}).
52
- to_return(:body => fixture('users/user.json'), :status => 200, :headers => {:content_type => "application/json; charset=utf-8"})
53
- end
54
-
55
- it "should get the resources" do
56
- github.users.get_user
57
- a_get("/user").with(:query => {:access_token => "#{OAUTH_TOKEN}"}).
58
- should have_been_made
59
- end
60
- end
61
-
62
- context "resource not found for a user" do
63
- before do
64
- stub_get("/users/#{user}").
65
- to_return(:body => "", :status => [404, "Not Found"])
66
- end
67
-
68
- it "should return 404 with a message 'Not Found'" do
69
- expect {
70
- github.users.get_user user
71
- }.to raise_error(Github::Error::NotFound)
72
- end
73
- end
74
- end # get_user
75
-
76
- describe "update_user" do
77
- let(:user_params) {
78
- {
79
- "name" => "monalisa octocat",
80
- "email" => "octocat@github.com",
81
- "blog" => "https://github.com/blog",
82
- "company" => "GitHub",
83
- "location" => "San Francisco",
84
- "hireable" => true,
85
- "bio" => "There once..."
86
- }
87
- }
88
-
89
- context "resouce updated" do
90
- before do
91
- github.oauth_token = OAUTH_TOKEN
92
- stub_patch("/user?access_token=#{OAUTH_TOKEN}").with(user_params).
93
- to_return(:body => fixture('users/user.json'), :status => 200, :headers => {:content_type => "application/json; charset=utf-8"})
94
-
95
- end
96
-
97
- it "should create resource successfully" do
98
- github.users.update_user
99
- a_patch("/user?access_token=#{OAUTH_TOKEN}").with(user_params).should have_been_made
100
- end
101
-
102
- it "should return the resource" do
103
- user_resource = github.users.update_user
104
- user_resource.should be_a Hashie::Mash
105
- end
106
-
107
- it "should get the resource information" do
108
- user_resource = github.users.update_user
109
- user_resource.login.should == 'octocat'
110
- end
111
- end
112
-
113
- context "failed to update resource" do
114
- before do
115
- github.oauth_token = OAUTH_TOKEN
116
- stub_patch("/user?access_token=#{OAUTH_TOKEN}").with(user_params).
117
- to_return(:body => fixture('users/user.json'), :status => 404, :headers => {:content_type => "application/json; charset=utf-8"})
118
-
119
- end
120
-
121
- it "should fail to retrieve resource" do
122
- expect {
123
- github.users.update_user
124
- }.to raise_error(Github::Error::NotFound)
125
- end
126
- end
127
- end # update_comment
5
+ # before do
6
+ # reset_authentication_for github
7
+ # end
8
+ #
9
+ # after do
10
+ # reset_authentication_for github
11
+ # end
12
+ #
13
+ # describe "get_user" do
14
+ # context "resource found for a user" do
15
+ # before do
16
+ # stub_get("/users/#{user}").
17
+ # to_return(:body => fixture('users/user.json'),
18
+ # :status => 200, :headers => {:content_type => "application/json; charset=utf-8"})
19
+ # end
20
+ #
21
+ # it "should get the resources" do
22
+ # github.users.get_user user
23
+ # a_get("/users/#{user}").should have_been_made
24
+ # end
25
+ #
26
+ # it "should return resource" do
27
+ # user_resource = github.users.get_user user
28
+ # user_resource.should be_a Hash
29
+ # end
30
+ #
31
+ # it "should be a mash type" do
32
+ # user_resource = github.users.get_user user
33
+ # user_resource.should be_a Hashie::Mash
34
+ # end
35
+ #
36
+ # it "should get org information" do
37
+ # user_resource = github.users.get_user user
38
+ # user_resource.login.should == 'octocat'
39
+ # end
40
+ #
41
+ # it "should yield to a block" do
42
+ # github.users.should_receive(:get_user).with(user).and_yield('web')
43
+ # github.users.get_user(user) { |param| 'web' }
44
+ # end
45
+ # end
46
+ #
47
+ # context "resource found for an authenticated user" do
48
+ # before do
49
+ # github.oauth_token = OAUTH_TOKEN
50
+ # stub_get("/user").
51
+ # with(:query => { :access_token => "#{OAUTH_TOKEN}"}).
52
+ # to_return(:body => fixture('users/user.json'), :status => 200, :headers => {:content_type => "application/json; charset=utf-8"})
53
+ # end
54
+ #
55
+ # it "should get the resources" do
56
+ # github.users.get_user
57
+ # a_get("/user").with(:query => {:access_token => "#{OAUTH_TOKEN}"}).
58
+ # should have_been_made
59
+ # end
60
+ # end
61
+ #
62
+ # context "resource not found for a user" do
63
+ # before do
64
+ # stub_get("/users/#{user}").
65
+ # to_return(:body => "", :status => [404, "Not Found"])
66
+ # end
67
+ #
68
+ # it "should return 404 with a message 'Not Found'" do
69
+ # expect {
70
+ # github.users.get_user user
71
+ # }.to raise_error(Github::Error::NotFound)
72
+ # end
73
+ # end
74
+ # end # get_user
75
+ #
76
+ # describe "update_user" do
77
+ # let(:user_params) {
78
+ # {
79
+ # "name" => "monalisa octocat",
80
+ # "email" => "octocat@github.com",
81
+ # "blog" => "https://github.com/blog",
82
+ # "company" => "GitHub",
83
+ # "location" => "San Francisco",
84
+ # "hireable" => true,
85
+ # "bio" => "There once..."
86
+ # }
87
+ # }
88
+ #
89
+ # context "resouce updated" do
90
+ # before do
91
+ # github.oauth_token = OAUTH_TOKEN
92
+ # stub_patch("/user?access_token=#{OAUTH_TOKEN}").with(user_params).
93
+ # to_return(:body => fixture('users/user.json'), :status => 200, :headers => {:content_type => "application/json; charset=utf-8"})
94
+ #
95
+ # end
96
+ #
97
+ # it "should create resource successfully" do
98
+ # github.users.update_user
99
+ # a_patch("/user?access_token=#{OAUTH_TOKEN}").with(user_params).should have_been_made
100
+ # end
101
+ #
102
+ # it "should return the resource" do
103
+ # user_resource = github.users.update_user
104
+ # user_resource.should be_a Hashie::Mash
105
+ # end
106
+ #
107
+ # it "should get the resource information" do
108
+ # user_resource = github.users.update_user
109
+ # user_resource.login.should == 'octocat'
110
+ # end
111
+ # end
112
+ #
113
+ # context "failed to update resource" do
114
+ # before do
115
+ # github.oauth_token = OAUTH_TOKEN
116
+ # stub_patch("/user?access_token=#{OAUTH_TOKEN}").with(user_params).
117
+ # to_return(:body => fixture('users/user.json'), :status => 404, :headers => {:content_type => "application/json; charset=utf-8"})
118
+ #
119
+ # end
120
+ #
121
+ # it "should fail to retrieve resource" do
122
+ # expect {
123
+ # github.users.update_user
124
+ # }.to raise_error(Github::Error::NotFound)
125
+ # end
126
+ # end
127
+ # end # update_comment
128
128
 
129
129
  end # Github::Users
@@ -1,19 +1,20 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe Github::Validation, :type => :base do
3
+ describe Github::Validation do
4
+ let(:github) { Github.new }
4
5
 
5
6
  context '#_validate_inputs' do
6
- before do
7
- @required = ['param_a', 'param_c']
8
- @provided = { 'param_a' => true, 'param_c' => true }
9
- end
7
+ let(:required) { ['param_a', 'param_c'] }
8
+ let(:provided) { { 'param_a' => true, 'param_c' => true } }
10
9
 
11
10
  it 'detect missing parameter' do
12
- github._validate_inputs(@required, @provided.except('param_c')).should be_false
11
+ expect {
12
+ github._validate_inputs(required, provided.except('param_c')).should be_false
13
+ }.to raise_error(Github::Error::RequiredParams)
13
14
  end
14
15
 
15
16
  it 'asserts correct required parameters' do
16
- github._validate_inputs(@required, @provided).should be_true
17
+ github._validate_inputs(required, provided).should be_true
17
18
  end
18
19
  end
19
20
 
data/spec/github_spec.rb CHANGED
@@ -1,12 +1,12 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
1
+ # encoding: utf-8
2
+
3
+ require 'spec_helper'
2
4
 
3
5
  describe Github do
4
6
 
5
- before do
6
- subject.user = nil
7
- subject.repo = nil
8
- subject.oauth_token = nil
9
- subject.basic_auth = nil
7
+ after do
8
+ subject.set_defaults
9
+ reset_authentication_for subject
10
10
  end
11
11
 
12
12
  it "should respond to 'new' message" do
@@ -22,7 +22,6 @@ describe Github do
22
22
  end
23
23
 
24
24
  describe "setting configuration options" do
25
-
26
25
  it "should return default adapter" do
27
26
  subject.adapter.should == Github::Configuration::DEFAULT_ADAPTER
28
27
  end
data/spec/spec_helper.rb CHANGED
@@ -28,7 +28,7 @@ end
28
28
 
29
29
  RSpec.configure do |config|
30
30
  config.include WebMock::API
31
- # config.order = :rand
31
+ config.order = :rand
32
32
  config.color_enabled = true
33
33
  config.treat_symbols_as_metadata_keys_with_true_values = true
34
34
 
@@ -91,7 +91,7 @@ end
91
91
  OAUTH_TOKEN = 'bafec72922f31fe86aacc8aca4261117f3bd62cf'
92
92
 
93
93
  def reset_authentication_for(object)
94
- ['basic_auth', 'oauth_token', 'login', 'password' ].each do |item|
94
+ [ 'user', 'repo', 'basic_auth', 'oauth_token', 'login', 'password' ].each do |item|
95
95
  object.send("#{item}=", nil)
96
96
  end
97
97
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: github_api
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.6
5
+ version: 0.4.7
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-02-27 00:00:00 +00:00
13
+ date: 2012-03-11 00:00:00 +00:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -91,82 +91,93 @@ dependencies:
91
91
  type: :development
92
92
  version_requirements: *id007
93
93
  - !ruby/object:Gem::Dependency
94
- name: bundler
94
+ name: webmock
95
95
  prerelease: false
96
96
  requirement: &id008 !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
99
  - - ~>
100
100
  - !ruby/object:Gem::Version
101
- version: 1.0.0
101
+ version: 1.8.0
102
102
  type: :development
103
103
  version_requirements: *id008
104
104
  - !ruby/object:Gem::Dependency
105
- name: webmock
105
+ name: vcr
106
106
  prerelease: false
107
107
  requirement: &id009 !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
110
110
  - - ~>
111
111
  - !ruby/object:Gem::Version
112
- version: 1.8.0
112
+ version: 2.0.0
113
113
  type: :development
114
114
  version_requirements: *id009
115
115
  - !ruby/object:Gem::Dependency
116
- name: vcr
116
+ name: simplecov
117
117
  prerelease: false
118
118
  requirement: &id010 !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements:
121
121
  - - ~>
122
122
  - !ruby/object:Gem::Version
123
- version: 1.11.3
123
+ version: 0.6.1
124
124
  type: :development
125
125
  version_requirements: *id010
126
126
  - !ruby/object:Gem::Dependency
127
- name: simplecov
127
+ name: guard
128
128
  prerelease: false
129
129
  requirement: &id011 !ruby/object:Gem::Requirement
130
130
  none: false
131
131
  requirements:
132
132
  - - ~>
133
133
  - !ruby/object:Gem::Version
134
- version: 0.6.1
134
+ version: 0.8.8
135
135
  type: :development
136
136
  version_requirements: *id011
137
137
  - !ruby/object:Gem::Dependency
138
- name: guard
138
+ name: guard-rspec
139
139
  prerelease: false
140
140
  requirement: &id012 !ruby/object:Gem::Requirement
141
141
  none: false
142
142
  requirements:
143
- - - ~>
143
+ - - "="
144
144
  - !ruby/object:Gem::Version
145
- version: 0.8.8
145
+ version: 0.5.7
146
146
  type: :development
147
147
  version_requirements: *id012
148
148
  - !ruby/object:Gem::Dependency
149
- name: guard-rspec
149
+ name: guard-cucumber
150
150
  prerelease: false
151
151
  requirement: &id013 !ruby/object:Gem::Requirement
152
152
  none: false
153
153
  requirements:
154
154
  - - "="
155
155
  - !ruby/object:Gem::Version
156
- version: 0.5.7
156
+ version: 0.7.4
157
157
  type: :development
158
158
  version_requirements: *id013
159
159
  - !ruby/object:Gem::Dependency
160
- name: guard-cucumber
160
+ name: rake
161
161
  prerelease: false
162
162
  requirement: &id014 !ruby/object:Gem::Requirement
163
163
  none: false
164
164
  requirements:
165
- - - "="
165
+ - - ">="
166
166
  - !ruby/object:Gem::Version
167
- version: 0.7.4
167
+ version: "0"
168
168
  type: :development
169
169
  version_requirements: *id014
170
+ - !ruby/object:Gem::Dependency
171
+ name: bundler
172
+ prerelease: false
173
+ requirement: &id015 !ruby/object:Gem::Requirement
174
+ none: false
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: "0"
179
+ type: :development
180
+ version_requirements: *id015
170
181
  description: " Ruby wrapper that supports all of the GitHub API v3 methods(nearly 200). It's build in a modular way, that is, you can either instantiate the whole api wrapper Github.new or use parts of it e.i. Github::Repos.new if working solely with repositories is your main concern. "
171
182
  email: ""
172
183
  executables: []
@@ -185,7 +196,6 @@ files:
185
196
  - features/cassettes/gists/gist.yml
186
197
  - features/cassettes/gists/gists/public_all.yml
187
198
  - features/cassettes/gists/gists/user_all.yml
188
- - features/cassettes/gists/star.yml
189
199
  - features/cassettes/pagination/repos/commits/next.yml
190
200
  - features/cassettes/pagination/repos/commits/sha/next.yml
191
201
  - features/cassettes/pagination/repos/commits/sha.yml
@@ -193,13 +203,11 @@ files:
193
203
  - features/cassettes/pagination/repos/diff/next.yml
194
204
  - features/cassettes/pagination/repos/diff.yml
195
205
  - features/cassettes/pagination/repos/next.yml
196
- - features/cassettes/pagination/repos/per_page/1.yml
197
206
  - features/cassettes/pagination/repos/per_page/each_page.yml
198
207
  - features/cassettes/pagination/repos/per_page/first.yml
199
208
  - features/cassettes/pagination/repos.yml
200
209
  - features/cassettes/repos/branches.yml
201
210
  - features/cassettes/repos/tags.yml
202
- - features/cassettes/repos/teams.yml
203
211
  - features/error_codes.feature
204
212
  - features/gists/comments.feature
205
213
  - features/gists.feature
@@ -228,13 +236,17 @@ files:
228
236
  - lib/github_api/core_ext/hash.rb
229
237
  - lib/github_api/deprecation.rb
230
238
  - lib/github_api/error/bad_request.rb
239
+ - lib/github_api/error/client_error.rb
231
240
  - lib/github_api/error/forbidden.rb
232
241
  - lib/github_api/error/internal_server_error.rb
242
+ - lib/github_api/error/invalid_options.rb
233
243
  - lib/github_api/error/not_found.rb
244
+ - lib/github_api/error/required_params.rb
234
245
  - lib/github_api/error/service_error.rb
235
246
  - lib/github_api/error/service_unavailable.rb
236
247
  - lib/github_api/error/unauthorized.rb
237
248
  - lib/github_api/error/unprocessable_entity.rb
249
+ - lib/github_api/error/validations.rb
238
250
  - lib/github_api/error.rb
239
251
  - lib/github_api/events.rb
240
252
  - lib/github_api/filter.rb
@@ -364,6 +376,9 @@ files:
364
376
  - spec/github/client_spec.rb
365
377
  - spec/github/core_ext/hash_spec.rb
366
378
  - spec/github/deprecation_spec.rb
379
+ - spec/github/error/client_error_spec.rb
380
+ - spec/github/error/invalid_options_spec.rb
381
+ - spec/github/error/required_params_spec.rb
367
382
  - spec/github/events_spec.rb
368
383
  - spec/github/filter_spec.rb
369
384
  - spec/github/gists/comments_spec.rb