github_api 0.8.11 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. data/README.md +21 -14
  2. data/features/activity/notifications.feature +15 -0
  3. data/features/cassettes/activity/notifications/list_user.yml +54 -0
  4. data/features/step_definitions/common_steps.rb +8 -9
  5. data/lib/github_api.rb +3 -4
  6. data/lib/github_api/activity.rb +8 -13
  7. data/lib/github_api/activity/events.rb +0 -5
  8. data/lib/github_api/activity/notifications.rb +0 -5
  9. data/lib/github_api/api.rb +27 -22
  10. data/lib/github_api/api_factory.rb +13 -12
  11. data/lib/github_api/authorizations.rb +0 -5
  12. data/lib/github_api/client.rb +33 -33
  13. data/lib/github_api/configuration.rb +10 -2
  14. data/lib/github_api/connection.rb +2 -3
  15. data/lib/github_api/constants.rb +0 -3
  16. data/lib/github_api/gists.rb +2 -7
  17. data/lib/github_api/git_data.rb +10 -15
  18. data/lib/github_api/git_data/blobs.rb +0 -5
  19. data/lib/github_api/git_data/commits.rb +0 -5
  20. data/lib/github_api/git_data/references.rb +3 -7
  21. data/lib/github_api/git_data/tags.rb +0 -5
  22. data/lib/github_api/git_data/trees.rb +0 -5
  23. data/lib/github_api/gitignore.rb +0 -5
  24. data/lib/github_api/issues.rb +10 -15
  25. data/lib/github_api/issues/comments.rb +0 -5
  26. data/lib/github_api/issues/events.rb +0 -5
  27. data/lib/github_api/issues/labels.rb +0 -5
  28. data/lib/github_api/issues/milestones.rb +0 -5
  29. data/lib/github_api/markdown.rb +0 -5
  30. data/lib/github_api/meta.rb +0 -5
  31. data/lib/github_api/orgs.rb +4 -9
  32. data/lib/github_api/page_iterator.rb +44 -29
  33. data/lib/github_api/paged_request.rb +12 -12
  34. data/lib/github_api/{result.rb → pagination.rb} +19 -86
  35. data/lib/github_api/params_hash.rb +1 -1
  36. data/lib/github_api/pull_requests.rb +2 -7
  37. data/lib/github_api/repos.rb +22 -27
  38. data/lib/github_api/request.rb +7 -4
  39. data/lib/github_api/response/header.rb +76 -0
  40. data/lib/github_api/response_wrapper.rb +126 -0
  41. data/lib/github_api/scopes.rb +1 -1
  42. data/lib/github_api/search.rb +0 -5
  43. data/lib/github_api/users.rb +6 -11
  44. data/lib/github_api/version.rb +2 -2
  45. data/spec/github/activity/notifications/get_spec.rb +1 -1
  46. data/spec/github/activity/starring/starred_spec.rb +1 -1
  47. data/spec/github/activity/watching/watched_spec.rb +1 -1
  48. data/spec/github/api_factory_spec.rb +7 -8
  49. data/spec/github/api_spec.rb +0 -7
  50. data/spec/github/authorization_spec.rb +22 -32
  51. data/spec/github/authorizations/create_spec.rb +49 -0
  52. data/spec/github/authorizations/delete_spec.rb +39 -0
  53. data/spec/github/authorizations/get_spec.rb +49 -0
  54. data/spec/github/authorizations/list_spec.rb +55 -0
  55. data/spec/github/authorizations/update_spec.rb +50 -0
  56. data/spec/github/authorizations_spec.rb +2 -236
  57. data/spec/github/gists/comments/create_spec.rb +1 -1
  58. data/spec/github/gists/comments/edit_spec.rb +1 -1
  59. data/spec/github/gists/comments/get_spec.rb +1 -1
  60. data/spec/github/gists/create_spec.rb +1 -1
  61. data/spec/github/gists/edit_spec.rb +1 -1
  62. data/spec/github/gists/fork_spec.rb +1 -1
  63. data/spec/github/gists/get_spec.rb +1 -1
  64. data/spec/github/git_data/blobs/create_spec.rb +1 -1
  65. data/spec/github/git_data/blobs/get_spec.rb +1 -1
  66. data/spec/github/git_data/commits/create_spec.rb +1 -1
  67. data/spec/github/git_data/commits/get_spec.rb +1 -1
  68. data/spec/github/git_data/references/create_spec.rb +2 -2
  69. data/spec/github/git_data/references/get_spec.rb +1 -1
  70. data/spec/github/git_data/references/list_spec.rb +16 -6
  71. data/spec/github/git_data/tags/create_spec.rb +1 -1
  72. data/spec/github/git_data/tags/get_spec.rb +1 -1
  73. data/spec/github/git_data/trees/create_spec.rb +1 -1
  74. data/spec/github/git_data/trees/get_spec.rb +4 -4
  75. data/spec/github/issues/comments/create_spec.rb +1 -1
  76. data/spec/github/issues/comments/edit_spec.rb +1 -1
  77. data/spec/github/issues/comments/get_spec.rb +1 -1
  78. data/spec/github/issues/create_spec.rb +1 -1
  79. data/spec/github/issues/edit_spec.rb +1 -1
  80. data/spec/github/issues/events/get_spec.rb +1 -1
  81. data/spec/github/issues/get_spec.rb +1 -1
  82. data/spec/github/issues/labels/create_spec.rb +1 -1
  83. data/spec/github/issues/labels/get_spec.rb +1 -1
  84. data/spec/github/issues/labels/update_spec.rb +1 -1
  85. data/spec/github/issues/milestones/create_spec.rb +1 -1
  86. data/spec/github/issues/milestones/delete_spec.rb +1 -1
  87. data/spec/github/issues/milestones/get_spec.rb +1 -1
  88. data/spec/github/issues/milestones/update_spec.rb +1 -1
  89. data/spec/github/orgs/edit_spec.rb +1 -1
  90. data/spec/github/orgs/get_spec.rb +1 -1
  91. data/spec/github/orgs/teams/create_spec.rb +1 -1
  92. data/spec/github/orgs/teams/edit_spec.rb +1 -1
  93. data/spec/github/orgs/teams/get_spec.rb +1 -1
  94. data/spec/github/paged_request_spec.rb +34 -29
  95. data/spec/github/pagination/iterator/number_spec.rb +118 -0
  96. data/spec/github/pagination/iterator/sha_spec.rb +67 -0
  97. data/spec/github/pull_requests/comments/create_spec.rb +1 -1
  98. data/spec/github/pull_requests/comments/edit_spec.rb +1 -1
  99. data/spec/github/pull_requests/comments/get_spec.rb +1 -1
  100. data/spec/github/pull_requests/create_spec.rb +1 -1
  101. data/spec/github/pull_requests/get_spec.rb +1 -1
  102. data/spec/github/pull_requests/update_spec.rb +1 -1
  103. data/spec/github/repos/branch_spec.rb +1 -1
  104. data/spec/github/repos/comments/create_spec.rb +1 -1
  105. data/spec/github/repos/comments/get_spec.rb +1 -1
  106. data/spec/github/repos/comments/update_spec.rb +1 -1
  107. data/spec/github/repos/commits/get_spec.rb +1 -1
  108. data/spec/github/repos/create_spec.rb +1 -1
  109. data/spec/github/repos/downloads/create_spec.rb +1 -1
  110. data/spec/github/repos/downloads/get_spec.rb +1 -1
  111. data/spec/github/repos/edit_spec.rb +1 -1
  112. data/spec/github/repos/forks/create_spec.rb +1 -1
  113. data/spec/github/repos/get_spec.rb +1 -1
  114. data/spec/github/repos/hooks/create_spec.rb +1 -1
  115. data/spec/github/repos/hooks/edit_spec.rb +1 -1
  116. data/spec/github/repos/hooks/get_spec.rb +1 -1
  117. data/spec/github/repos/languages_spec.rb +1 -1
  118. data/spec/github/repos/merging/merge_spec.rb +1 -1
  119. data/spec/github/repos/statuses/create_spec.rb +1 -1
  120. data/spec/github/repos/tags_spec.rb +1 -1
  121. data/spec/github/repos/teams_spec.rb +1 -1
  122. data/spec/github/request/endpoint_spec.rb +24 -0
  123. data/spec/github/request/request_spec.rb +38 -0
  124. data/spec/github/{result_spec.rb → response_wrapper_spec.rb} +14 -13
  125. data/spec/github/users/emails/list_spec.rb +1 -1
  126. data/spec/github/users/get_spec.rb +2 -7
  127. data/spec/github/users/keys/create_spec.rb +1 -1
  128. data/spec/github/users/keys/get_spec.rb +1 -1
  129. data/spec/github/users/keys/update_spec.rb +1 -1
  130. data/spec/github/users/update_spec.rb +1 -1
  131. data/spec/github_spec.rb +1 -6
  132. data/spec/{github/activity → integration}/activity_spec.rb +0 -0
  133. data/spec/{github/gists → integration}/gists_spec.rb +2 -0
  134. data/spec/{github/git_data → integration}/git_data_spec.rb +0 -0
  135. data/spec/{github/issues → integration}/issues_spec.rb +2 -0
  136. data/spec/integration/options_spec.rb +103 -23
  137. data/spec/{github/orgs → integration}/orgs_spec.rb +0 -0
  138. data/spec/{github/pull_requests → integration}/pull_requests_spec.rb +0 -0
  139. data/spec/{github → integration}/repos_spec.rb +2 -0
  140. data/spec/{github/users → integration}/users_spec.rb +0 -0
  141. data/spec/shared/array_of_resources_behaviour.rb +1 -1
  142. metadata +55 -46
  143. data/lib/github_api/page_uri_processor.rb +0 -25
  144. data/lib/github_api/response/helpers.rb +0 -21
  145. data/spec/github/page_iterator_spec.rb +0 -260
  146. data/spec/github/response/helpers_spec.rb +0 -16
@@ -5,7 +5,7 @@ require 'spec_helper'
5
5
  describe Github do
6
6
 
7
7
  after do
8
- subject.set_defaults
8
+ subject.reset!
9
9
  reset_authentication_for subject
10
10
  end
11
11
 
@@ -94,11 +94,6 @@ describe Github do
94
94
  it "should have set mime type to json" do
95
95
  subject.mime_type.should == :json
96
96
  end
97
-
98
- it "should allow to set current api client" do
99
- subject.should respond_to :api_client=
100
- subject.should respond_to :api_client
101
- end
102
97
  end
103
98
 
104
99
  describe ".configure" do
@@ -6,6 +6,8 @@ describe Github::Gists do
6
6
 
7
7
  after { reset_authentication_for subject }
8
8
 
9
+ it_should_behave_like 'api interface'
10
+
9
11
  its(:comments) { should be_a Github::Gists::Comments }
10
12
 
11
13
  end # Github::Gists
@@ -6,6 +6,8 @@ describe Github::Issues do
6
6
 
7
7
  after { reset_authentication_for subject }
8
8
 
9
+ it_should_behave_like 'api interface'
10
+
9
11
  its(:assignees) { should be_a Github::Issues::Assignees }
10
12
 
11
13
  its(:comments) { should be_a Github::Issues::Comments }
@@ -5,31 +5,111 @@ require 'spec_helper'
5
5
  describe Github, 'options' do
6
6
  let(:default_adapter) { :net_http }
7
7
  let(:adapter) { :patron }
8
+ let(:token) { '123' }
8
9
  let(:options) { { :adapter => adapter } }
9
10
 
11
+ context 'when different instances of the same class' do
12
+ it 'instantiates the same api classes with different options' do
13
+ repos = Github::Repos.new
14
+ repos2 = Github::Repos.new options
10
15
 
11
- context '' do
12
- # let(:github) { Github.new options }
13
- # let(:repos) { Github::Repos.new }
14
-
15
- it '' do
16
- # repos = Github::Repos.new
17
- # expect(repos.adapter).to eql default_adapter
18
- # expect(Github.current_api).to eql repos
19
- #
20
- # github = Github.new options
21
- # expect(github.adapter).to eql adapter
22
- # expect(Github.current_api).to eql github
23
- #
24
- # expect(github.repos.adapter).to eql adapter
25
- # expect(Github.current_api).to_not eql github
26
- # expect(Github.current_api).to eql github.repos
27
- #
28
- # expect(repos.adapter).to eql default_adapter
29
- #
30
- # new_github = Github.new
31
- # expect(new_github.adapter).to eql default_adapter
32
- # expect(Github.current_api).to eql new_github
16
+ expect(repos.object_id).to_not eql(repos2.object_id)
17
+
18
+ expect(repos.adapter).to eql default_adapter
19
+ expect(repos2.adapter).to eql adapter
20
+
21
+ repos.adapter = adapter
22
+ repos2.adapter = default_adapter
23
+
24
+ expect(repos.adapter).to eql adapter
25
+ expect(repos2.adapter).to eql default_adapter
26
+ end
27
+
28
+ it 'instantiates the same clients with different options' do
29
+ client = Github.new :oauth_token => 'client'
30
+ client2 = Github.new :oauth_token => 'client2'
31
+
32
+ expect(client.object_id).to_not eql(client2.object_id)
33
+
34
+ expect(client.oauth_token).to eql 'client'
35
+ expect(client2.oauth_token).to eql 'client2'
33
36
  end
34
37
  end
35
- end
38
+
39
+ context 'when different instances of the same chain' do
40
+ it "inherits properties from client and doesn't pass them up the tree" do
41
+ client = Github.new options
42
+ repos = client.repos
43
+
44
+ expect(client.adapter).to eql(adapter)
45
+ expect(repos.adapter).to eql(adapter)
46
+
47
+ repos.adapter = default_adapter
48
+ expect(client.adapter).to eql(adapter)
49
+ expect(repos.adapter).to eql(default_adapter)
50
+
51
+ client.oauth_token = token
52
+ expect(client.oauth_token).to eql(token)
53
+ expect(repos.oauth_token).to be_nil
54
+ end
55
+
56
+ it "inherits properties from api and doesn't pass them up the tree" do
57
+ repos = Github::Repos.new options
58
+ comments = repos.comments
59
+
60
+ expect(repos.adapter).to eql(adapter)
61
+ expect(comments.adapter).to eql(adapter)
62
+
63
+ comments.adapter = default_adapter
64
+ expect(repos.adapter).to eql(adapter)
65
+ expect(comments.adapter).to eql(default_adapter)
66
+
67
+ repos.oauth_token = token
68
+ expect(repos.oauth_token).to eql(token)
69
+ expect(comments.oauth_token).to be_nil
70
+ end
71
+ end
72
+
73
+ context 'when setting attributes through accessors' do
74
+ let(:default_endpoint) { 'https://api.github.com'}
75
+ let(:endpoint) { 'https://my-company/api/v3' }
76
+ let(:login) { 'Piotr' }
77
+
78
+ it 'sets login on correct instance' do
79
+ client = Github.new :login => login
80
+ expect(Github.login).to be_nil
81
+ expect(client.login).to eql login
82
+ end
83
+
84
+ it 'sets attribute' do
85
+ client = Github.new options
86
+ client.endpoint = endpoint
87
+ expect(Github.endpoint).to eql default_endpoint
88
+ expect(client.endpoint).to eql endpoint
89
+ end
90
+
91
+ it 'sets attribute through dsl' do
92
+ client = Github.new do |config|
93
+ config.endpoint = endpoint
94
+ end
95
+ expect(client.endpoint).to eql endpoint
96
+ repos = client.repos do |config|
97
+ config.adapter = adapter
98
+ end
99
+ expect(repos.endpoint).to eql endpoint
100
+ expect(repos.adapter).to eql adapter
101
+ end
102
+
103
+ it 'updates current_options through api setters' do
104
+ client = Github.new :endpoint => endpoint
105
+ expect(client.repos.current_options[:endpoint]).to eql endpoint
106
+ expect(client.repos.endpoint).to eql endpoint
107
+
108
+ client.repos.endpoint = default_endpoint
109
+
110
+ expect(client.repos.endpoint).to eql default_endpoint
111
+ expect(client.repos.current_options[:endpoint]).to eql default_endpoint
112
+ end
113
+ end
114
+
115
+ end # options
@@ -14,6 +14,8 @@ describe Github::Repos, 'integration' do
14
14
 
15
15
  its(:commits) { should be_a Github::Repos::Commits }
16
16
 
17
+ its(:contents) { should be_a Github::Repos::Contents }
18
+
17
19
  its(:downloads) { should be_a Github::Repos::Downloads }
18
20
 
19
21
  its(:forks) { should be_a Github::Repos::Forks }
@@ -4,7 +4,7 @@ shared_examples_for 'an array of resources' do
4
4
 
5
5
  it "should return array of resources" do
6
6
  objects = requestable
7
- objects.should be_an Array
7
+ objects.should be_a Enumerable
8
8
  objects.should have(1).items
9
9
  end
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.11
4
+ version: 0.9.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-09 00:00:00.000000000Z
12
+ date: 2013-02-18 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hashie
16
- requirement: &2154734500 !ruby/object:Gem::Requirement
16
+ requirement: &2154928480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2154734500
24
+ version_requirements: *2154928480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: faraday
27
- requirement: &2154734000 !ruby/object:Gem::Requirement
27
+ requirement: &2154927980 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.8.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2154734000
35
+ version_requirements: *2154927980
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: multi_json
38
- requirement: &2154733540 !ruby/object:Gem::Requirement
38
+ requirement: &2154927520 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '1.4'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2154733540
46
+ version_requirements: *2154927520
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: oauth2
49
- requirement: &2154733160 !ruby/object:Gem::Requirement
49
+ requirement: &2154927140 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2154733160
57
+ version_requirements: *2154927140
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: nokogiri
60
- requirement: &2154732620 !ruby/object:Gem::Requirement
60
+ requirement: &2154926600 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.5.2
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *2154732620
68
+ version_requirements: *2154926600
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
- requirement: &2154732120 !ruby/object:Gem::Requirement
71
+ requirement: &2154926100 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2154732120
79
+ version_requirements: *2154926100
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: cucumber
82
- requirement: &2154731660 !ruby/object:Gem::Requirement
82
+ requirement: &2154925640 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *2154731660
90
+ version_requirements: *2154925640
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: webmock
93
- requirement: &2154731200 !ruby/object:Gem::Requirement
93
+ requirement: &2154925180 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 1.9.0
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *2154731200
101
+ version_requirements: *2154925180
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: vcr
104
- requirement: &2154730740 !ruby/object:Gem::Requirement
104
+ requirement: &2154924720 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 2.4.0
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *2154730740
112
+ version_requirements: *2154924720
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: simplecov
115
- requirement: &2154730280 !ruby/object:Gem::Requirement
115
+ requirement: &2154924260 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 0.7.1
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *2154730280
123
+ version_requirements: *2154924260
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: guard
126
- requirement: &2154729900 !ruby/object:Gem::Requirement
126
+ requirement: &2154923880 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *2154729900
134
+ version_requirements: *2154923880
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: guard-rspec
137
- requirement: &2154729440 !ruby/object:Gem::Requirement
137
+ requirement: &2154923420 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: '0'
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *2154729440
145
+ version_requirements: *2154923420
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: guard-cucumber
148
- requirement: &2154729020 !ruby/object:Gem::Requirement
148
+ requirement: &2154919140 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: '0'
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *2154729020
156
+ version_requirements: *2154919140
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: rake
159
- requirement: &2154728600 !ruby/object:Gem::Requirement
159
+ requirement: &2154918720 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: '0'
165
165
  type: :development
166
166
  prerelease: false
167
- version_requirements: *2154728600
167
+ version_requirements: *2154918720
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: bundler
170
- requirement: &2154728180 !ruby/object:Gem::Requirement
170
+ requirement: &2154918300 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ! '>='
@@ -175,7 +175,7 @@ dependencies:
175
175
  version: '0'
176
176
  type: :development
177
177
  prerelease: false
178
- version_requirements: *2154728180
178
+ version_requirements: *2154918300
179
179
  description: ! ' Ruby wrapper that supports all of the GitHub API v3 methods(nearly
180
180
  200). It''s build in a modular way, that is, you can either instantiate the whole
181
181
  api wrapper Github.new or use parts of it e.i. Github::Repos.new if working solely
@@ -187,6 +187,7 @@ extra_rdoc_files: []
187
187
  files:
188
188
  - Rakefile
189
189
  - features/activity/events.feature
190
+ - features/activity/notifications.feature
190
191
  - features/activity/starring.feature
191
192
  - features/activity/watching.feature
192
193
  - features/cassettes/activity/events/issue.yml
@@ -197,6 +198,7 @@ files:
197
198
  - features/cassettes/activity/events/received.yml
198
199
  - features/cassettes/activity/events/repo.yml
199
200
  - features/cassettes/activity/events/user_org.yml
201
+ - features/cassettes/activity/notifications/list_user.yml
200
202
  - features/cassettes/activity/starring/list.yml
201
203
  - features/cassettes/activity/starring/star.yml
202
204
  - features/cassettes/activity/starring/starred.yml
@@ -415,8 +417,8 @@ files:
415
417
  - lib/github_api/orgs.rb
416
418
  - lib/github_api/page_iterator.rb
417
419
  - lib/github_api/page_links.rb
418
- - lib/github_api/page_uri_processor.rb
419
420
  - lib/github_api/paged_request.rb
421
+ - lib/github_api/pagination.rb
420
422
  - lib/github_api/parameter_filter.rb
421
423
  - lib/github_api/params_hash.rb
422
424
  - lib/github_api/pull_requests/comments.rb
@@ -440,13 +442,13 @@ files:
440
442
  - lib/github_api/request.rb
441
443
  - lib/github_api/requestable.rb
442
444
  - lib/github_api/resource.rb
443
- - lib/github_api/response/helpers.rb
445
+ - lib/github_api/response/header.rb
444
446
  - lib/github_api/response/jsonize.rb
445
447
  - lib/github_api/response/mashify.rb
446
448
  - lib/github_api/response/raise_error.rb
447
449
  - lib/github_api/response/xmlize.rb
448
450
  - lib/github_api/response.rb
449
- - lib/github_api/result.rb
451
+ - lib/github_api/response_wrapper.rb
450
452
  - lib/github_api/s3_uploader.rb
451
453
  - lib/github_api/say.rb
452
454
  - lib/github_api/scopes.rb
@@ -553,7 +555,6 @@ files:
553
555
  - spec/fixtures/users/keys.json
554
556
  - spec/fixtures/users/user.json
555
557
  - spec/fixtures/users/users.json
556
- - spec/github/activity/activity_spec.rb
557
558
  - spec/github/activity/events/issue_spec.rb
558
559
  - spec/github/activity/events/network_spec.rb
559
560
  - spec/github/activity/events/org_spec.rb
@@ -582,6 +583,11 @@ files:
582
583
  - spec/github/api_factory_spec.rb
583
584
  - spec/github/api_spec.rb
584
585
  - spec/github/authorization_spec.rb
586
+ - spec/github/authorizations/create_spec.rb
587
+ - spec/github/authorizations/delete_spec.rb
588
+ - spec/github/authorizations/get_spec.rb
589
+ - spec/github/authorizations/list_spec.rb
590
+ - spec/github/authorizations/update_spec.rb
585
591
  - spec/github/authorizations_spec.rb
586
592
  - spec/github/client_spec.rb
587
593
  - spec/github/core_ext/hash_spec.rb
@@ -603,7 +609,6 @@ files:
603
609
  - spec/github/gists/edit_spec.rb
604
610
  - spec/github/gists/fork_spec.rb
605
611
  - spec/github/gists/get_spec.rb
606
- - spec/github/gists/gists_spec.rb
607
612
  - spec/github/gists/is_starred_spec.rb
608
613
  - spec/github/gists/list_spec.rb
609
614
  - spec/github/gists/star_spec.rb
@@ -615,7 +620,6 @@ files:
615
620
  - spec/github/git_data/commits/create_spec.rb
616
621
  - spec/github/git_data/commits/get_spec.rb
617
622
  - spec/github/git_data/commits_spec.rb
618
- - spec/github/git_data/git_data_spec.rb
619
623
  - spec/github/git_data/references/create_spec.rb
620
624
  - spec/github/git_data/references/delete_spec.rb
621
625
  - spec/github/git_data/references/get_spec.rb
@@ -645,7 +649,6 @@ files:
645
649
  - spec/github/issues/events/list_spec.rb
646
650
  - spec/github/issues/events_spec.rb
647
651
  - spec/github/issues/get_spec.rb
648
- - spec/github/issues/issues_spec.rb
649
652
  - spec/github/issues/labels/add_spec.rb
650
653
  - spec/github/issues/labels/create_spec.rb
651
654
  - spec/github/issues/labels/delete_spec.rb
@@ -673,7 +676,6 @@ files:
673
676
  - spec/github/orgs/members/member_spec.rb
674
677
  - spec/github/orgs/members/publicize_spec.rb
675
678
  - spec/github/orgs/members_spec.rb
676
- - spec/github/orgs/orgs_spec.rb
677
679
  - spec/github/orgs/teams/add_member_spec.rb
678
680
  - spec/github/orgs/teams/add_repo_spec.rb
679
681
  - spec/github/orgs/teams/create_spec.rb
@@ -688,9 +690,10 @@ files:
688
690
  - spec/github/orgs/teams/team_member_spec.rb
689
691
  - spec/github/orgs/teams/team_repo_spec.rb
690
692
  - spec/github/orgs/teams_spec.rb
691
- - spec/github/page_iterator_spec.rb
692
693
  - spec/github/page_links_spec.rb
693
694
  - spec/github/paged_request_spec.rb
695
+ - spec/github/pagination/iterator/number_spec.rb
696
+ - spec/github/pagination/iterator/sha_spec.rb
694
697
  - spec/github/parameter_filter_spec.rb
695
698
  - spec/github/pull_requests/comments/create_spec.rb
696
699
  - spec/github/pull_requests/comments/delete_spec.rb
@@ -705,7 +708,6 @@ files:
705
708
  - spec/github/pull_requests/list_spec.rb
706
709
  - spec/github/pull_requests/merge_spec.rb
707
710
  - spec/github/pull_requests/merged_spec.rb
708
- - spec/github/pull_requests/pull_requests_spec.rb
709
711
  - spec/github/pull_requests/update_spec.rb
710
712
  - spec/github/repos/branch_spec.rb
711
713
  - spec/github/repos/branches_spec.rb
@@ -760,12 +762,12 @@ files:
760
762
  - spec/github/repos/statuses_spec.rb
761
763
  - spec/github/repos/tags_spec.rb
762
764
  - spec/github/repos/teams_spec.rb
763
- - spec/github/repos_spec.rb
765
+ - spec/github/request/endpoint_spec.rb
764
766
  - spec/github/request/jsonize_spec.rb
765
767
  - spec/github/request/oauth2_spec.rb
768
+ - spec/github/request/request_spec.rb
766
769
  - spec/github/request_spec.rb
767
- - spec/github/response/helpers_spec.rb
768
- - spec/github/result_spec.rb
770
+ - spec/github/response_wrapper_spec.rb
769
771
  - spec/github/s3_uploader_spec.rb
770
772
  - spec/github/scopes/list_spec.rb
771
773
  - spec/github/search_spec.rb
@@ -785,7 +787,6 @@ files:
785
787
  - spec/github/users/keys/update_spec.rb
786
788
  - spec/github/users/list_spec.rb
787
789
  - spec/github/users/update_spec.rb
788
- - spec/github/users/users_spec.rb
789
790
  - spec/github/utils/url_spec.rb
790
791
  - spec/github/validations/format_spec.rb
791
792
  - spec/github/validations/presence_spec.rb
@@ -793,7 +794,15 @@ files:
793
794
  - spec/github/validations/token_spec.rb
794
795
  - spec/github/validations_spec.rb
795
796
  - spec/github_spec.rb
797
+ - spec/integration/activity_spec.rb
798
+ - spec/integration/gists_spec.rb
799
+ - spec/integration/git_data_spec.rb
800
+ - spec/integration/issues_spec.rb
796
801
  - spec/integration/options_spec.rb
802
+ - spec/integration/orgs_spec.rb
803
+ - spec/integration/pull_requests_spec.rb
804
+ - spec/integration/repos_spec.rb
805
+ - spec/integration/users_spec.rb
797
806
  - spec/README.rdoc
798
807
  - spec/shared/api_interface_behaviour.rb
799
808
  - spec/shared/array_of_resources_behaviour.rb