ruby-stackoverflow 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +5 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +0 -5
- data/README.md +5 -6
- data/lib/generators/ruby_stackoverflow/ruby_stackoverflow_generator.rb +2 -6
- data/lib/ruby-stackoverflow.rb +2 -5
- data/lib/ruby-stackoverflow/client/badges_helper.rb +23 -26
- data/lib/ruby-stackoverflow/client/comments_helper.rb +5 -7
- data/lib/ruby-stackoverflow/client/parse_options.rb +2 -3
- data/lib/ruby-stackoverflow/client/question_helper.rb +1 -3
- data/lib/ruby-stackoverflow/client/resource/answer.rb +0 -1
- data/lib/ruby-stackoverflow/client/resource/badge.rb +0 -1
- data/lib/ruby-stackoverflow/client/resource/comment.rb +0 -2
- data/lib/ruby-stackoverflow/client/resource/notification.rb +0 -2
- data/lib/ruby-stackoverflow/client/resource/permission.rb +0 -2
- data/lib/ruby-stackoverflow/client/resource/post.rb +0 -1
- data/lib/ruby-stackoverflow/client/resource/question.rb +5 -7
- data/lib/ruby-stackoverflow/client/resource/suggested_edit.rb +0 -2
- data/lib/ruby-stackoverflow/client/resource/tag.rb +0 -13
- data/lib/ruby-stackoverflow/client/resource/user.rb +4 -4
- data/lib/ruby-stackoverflow/client/response_data.rb +3 -3
- data/lib/ruby-stackoverflow/client/user_helper.rb +9 -5
- data/lib/ruby-stackoverflow/configuration.rb +1 -1
- data/lib/ruby-stackoverflow/version.rb +1 -1
- data/ruby-stackoverflow.gemspec +2 -1
- data/spec/fixtures/vcr_cassettes/badges.yml +2 -2
- data/spec/fixtures/vcr_cassettes/badges_by_ids.yml +2 -2
- data/spec/fixtures/vcr_cassettes/badges_by_name.yml +2 -2
- data/spec/fixtures/vcr_cassettes/badges_by_recipients.yml +2 -2
- data/spec/fixtures/vcr_cassettes/badges_by_recipients_by_ids.yml +2 -2
- data/spec/fixtures/vcr_cassettes/badges_by_tags.yml +2 -2
- data/spec/fixtures/vcr_cassettes/comments.yml +2 -2
- data/spec/fixtures/vcr_cassettes/comments_by_ids.yml +2 -2
- data/spec/fixtures/vcr_cassettes/error.yml +2 -2
- data/spec/fixtures/vcr_cassettes/featured_questions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/linked_questions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/noanswered_questions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/questions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/questions_answers.yml +2 -2
- data/spec/fixtures/vcr_cassettes/questions_by_ids.yml +2 -2
- data/spec/fixtures/vcr_cassettes/questions_comments.yml +2 -2
- data/spec/fixtures/vcr_cassettes/related_questions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/timeline_questions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/unanswered_questions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/user_timeline.yml +2 -2
- data/spec/fixtures/vcr_cassettes/user_top_answers_with_given_tags.yml +2 -2
- data/spec/fixtures/vcr_cassettes/user_top_questions_with_given_tags.yml +2 -2
- data/spec/fixtures/vcr_cassettes/user_top_tags_by_answers.yml +2 -2
- data/spec/fixtures/vcr_cassettes/user_top_tags_by_questions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/user_write_permissions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_answers.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_badges.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_by_ids.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_comments.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_favorites_questions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_featured_questions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_mentioned_questions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_noanswerquestions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_notifications.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_questions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_replied_comments.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_reputation_questions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_suggested_edits.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_tags.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_unaccepted_questions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_unanswered_questions.yml +2 -2
- data/spec/fixtures/vcr_cassettes/users_unread_notifications.yml +2 -2
- data/spec/helper.rb +1 -1
- data/spec/ruby-stackoverflow/badges_spec.rb +14 -8
- data/spec/ruby-stackoverflow/comments_spec.rb +4 -2
- data/spec/ruby-stackoverflow/question_spec.rb +24 -14
- data/spec/ruby-stackoverflow/user_spec.rb +51 -58
- data/spec/spec_helper.rb +3 -3
- metadata +39 -43
@@ -9,7 +9,7 @@ module RubyStackoverflow
|
|
9
9
|
it 'should find users' do
|
10
10
|
VCR.use_cassette('users') do
|
11
11
|
response = RubyStackoverflow.users({inname: 'raysrashmi', sort: 'reputation'})
|
12
|
-
|
12
|
+
|
13
13
|
expect(response.data.first.display_name).to eq('raysrashmi')
|
14
14
|
expect(response.data.first.creation_date).to eq('2012-04-28 18:05:37 UTC')
|
15
15
|
end
|
@@ -19,8 +19,8 @@ module RubyStackoverflow
|
|
19
19
|
VCR.use_cassette('users_by_ids') do
|
20
20
|
stub_get(@user_basic_url+'1363236').to_return(json_response('users.json'))
|
21
21
|
response = RubyStackoverflow.users_by_ids(['1363236'])
|
22
|
-
|
23
|
-
response.data.last.respond_to?(:display_name).
|
22
|
+
|
23
|
+
expect(response.data.last.respond_to?(:display_name)).to be_truthy
|
24
24
|
expect(response.data.first.display_name).to eq('raysrashmi')
|
25
25
|
end
|
26
26
|
end
|
@@ -28,8 +28,9 @@ module RubyStackoverflow
|
|
28
28
|
it 'should get error' do
|
29
29
|
VCR.use_cassette('error') do
|
30
30
|
response = RubyStackoverflow.users_by_ids(['1363236&&'])
|
31
|
-
|
32
|
-
response.
|
31
|
+
|
32
|
+
expect(response.data).to be_nil
|
33
|
+
expect(response.error).not_to be_nil
|
33
34
|
expect(response.error.error_code).to eq(404)
|
34
35
|
expect(response.error.error_message).to eq("no method found with this name")
|
35
36
|
end
|
@@ -37,9 +38,9 @@ module RubyStackoverflow
|
|
37
38
|
|
38
39
|
it 'should get user answers' do
|
39
40
|
VCR.use_cassette('users_answers') do
|
40
|
-
response = RubyStackoverflow.users_with_answers(['1363236']
|
41
|
-
|
42
|
-
response.data.last.respond_to?(:display_name).
|
41
|
+
response = RubyStackoverflow.users_with_answers(['1363236'])
|
42
|
+
|
43
|
+
expect(response.data.last.respond_to?(:display_name)).to be_truthy
|
43
44
|
expect(response.data.first.display_name).to eq('raysrashmi')
|
44
45
|
expect(response.data.first.answers.count).to eq(13)
|
45
46
|
expect(response.data.first.answers.last.answer_id).to eq(19449714)
|
@@ -50,8 +51,8 @@ module RubyStackoverflow
|
|
50
51
|
it 'should get user badges' do
|
51
52
|
VCR.use_cassette('users_badges') do
|
52
53
|
response = RubyStackoverflow.users_with_badges(['1363236'],{order: 'asc'})
|
53
|
-
|
54
|
-
response.data.last.respond_to?(:display_name).
|
54
|
+
|
55
|
+
expect(response.data.last.respond_to?(:display_name)).to be_truthy
|
55
56
|
expect(response.data.first.display_name).to eq('raysrashmi')
|
56
57
|
expect(response.data.first.badges.count).to eq(5)
|
57
58
|
expect(response.data.first.badges.first.name).to eq('Teacher')
|
@@ -61,8 +62,8 @@ module RubyStackoverflow
|
|
61
62
|
it 'should get user comments' do
|
62
63
|
VCR.use_cassette('users_comments') do
|
63
64
|
response = RubyStackoverflow.users_with_comments(['1363236'],{sort: 'votes'})
|
64
|
-
|
65
|
-
response.data.last.respond_to?(:display_name).
|
65
|
+
|
66
|
+
expect(response.data.last.respond_to?(:display_name)).to be_truthy
|
66
67
|
expect(response.data.count).to eq(1)
|
67
68
|
expect(response.data.first.display_name).to eq('raysrashmi')
|
68
69
|
expect(response.data.first.comments.count).to eq(17)
|
@@ -74,8 +75,8 @@ module RubyStackoverflow
|
|
74
75
|
it 'should get user replied comments' do
|
75
76
|
VCR.use_cassette('users_replied_comments') do
|
76
77
|
response = RubyStackoverflow.users_with_replied_comments(['707894','1004415'], '1300151')
|
77
|
-
|
78
|
-
response.data.last.respond_to?(:display_name).
|
78
|
+
|
79
|
+
expect(response.data.last.respond_to?(:display_name)).to be_truthy
|
79
80
|
expect(response.data.first.display_name).to eq('felipeclopes')
|
80
81
|
expect(response.data.first.comments.count).to eq(1)
|
81
82
|
expect(response.data.first.comments.first.score).to eq(0)
|
@@ -86,8 +87,8 @@ module RubyStackoverflow
|
|
86
87
|
it 'should get users favorites questions' do
|
87
88
|
VCR.use_cassette('users_favorites_questions') do
|
88
89
|
response = RubyStackoverflow.users_with_favorites_questions(['707894','1004415'])
|
89
|
-
|
90
|
-
response.data.last.respond_to?(:display_name).
|
90
|
+
|
91
|
+
expect(response.data.last.respond_to?(:display_name)).to be_truthy
|
91
92
|
expect(response.data.first.display_name).to eq('Joel Grannas')
|
92
93
|
expect(response.data.first.questions.count).to eq(1)
|
93
94
|
expect(response.data.first.questions.last.view_count).to eq(151)
|
@@ -96,8 +97,8 @@ module RubyStackoverflow
|
|
96
97
|
it 'should get questions where users are mentioned' do
|
97
98
|
VCR.use_cassette('users_mentioned_questions') do
|
98
99
|
response = RubyStackoverflow.users_with_mentioned_comments(['707894','1004415'])
|
99
|
-
|
100
|
-
response.data.last.respond_to?(:display_name).
|
100
|
+
|
101
|
+
expect(response.data.last.respond_to?(:display_name)).to be_truthy
|
101
102
|
expect(response.data.first.display_name).to eq('Carlos Drew')
|
102
103
|
expect(response.data.first.comments.count).to eq(1)
|
103
104
|
expect(response.data.first.comments.last.score).to eq(0)
|
@@ -107,8 +108,8 @@ module RubyStackoverflow
|
|
107
108
|
it 'should get users notifications' do
|
108
109
|
VCR.use_cassette('users_notifications') do
|
109
110
|
response = RubyStackoverflow.users_notifications('1363236')
|
110
|
-
|
111
|
-
response.data.last.respond_to?(:notification_type).
|
111
|
+
|
112
|
+
expect(response.data.last.respond_to?(:notification_type)).to be_truthy
|
112
113
|
expect(response.data.first.site[:site_type]).to eq('main_site')
|
113
114
|
expect(response.data.count).to eq(16)
|
114
115
|
end
|
@@ -116,16 +117,16 @@ module RubyStackoverflow
|
|
116
117
|
it 'should get users unread notifications' do
|
117
118
|
VCR.use_cassette('users_unread_notifications') do
|
118
119
|
response = RubyStackoverflow.users_unread_notifications('1363236')
|
119
|
-
|
120
|
-
response.data.last.respond_to?(:notification_type).
|
120
|
+
|
121
|
+
expect(response.data.last.respond_to?(:notification_type)).to be_falsey
|
121
122
|
end
|
122
123
|
end
|
123
124
|
|
124
125
|
it 'should get users questions' do
|
125
126
|
VCR.use_cassette('users_questions') do
|
126
127
|
response = RubyStackoverflow.users_questions(['1363236'])
|
127
|
-
|
128
|
-
response.data.last.respond_to?(:display_name).
|
128
|
+
|
129
|
+
expect(response.data.last.respond_to?(:display_name)).to be_truthy
|
129
130
|
expect(response.data.first.display_name).to eq('raysrashmi')
|
130
131
|
expect(response.data.first.questions.count).to eq(3)
|
131
132
|
expect(response.data.first.questions.last.view_count).to eq(65)
|
@@ -135,23 +136,24 @@ module RubyStackoverflow
|
|
135
136
|
it 'should get users featured questions' do
|
136
137
|
VCR.use_cassette('users_featured_questions') do
|
137
138
|
response = RubyStackoverflow.users_featured_questions(['1363236'])
|
138
|
-
response.data.is_a?(Array).
|
139
|
+
expect(response.data.is_a?(Array)).to be_truthy
|
139
140
|
end
|
140
141
|
end
|
141
142
|
|
142
143
|
it 'should get users no answer questions' do
|
143
144
|
VCR.use_cassette('users_noanswerquestions') do
|
144
145
|
response = RubyStackoverflow.users_noanswers_questions(['1363236'])
|
145
|
-
|
146
|
-
response.data.
|
146
|
+
|
147
|
+
expect(response.data).not_to be_empty
|
148
|
+
expect(response.data.is_a?(Array)).to be_truthy
|
147
149
|
end
|
148
150
|
end
|
149
151
|
|
150
152
|
it 'should get users unanswered questions' do
|
151
153
|
VCR.use_cassette('users_unanswered_questions') do
|
152
154
|
response = RubyStackoverflow.users_unanswered_questions(['707894'])
|
153
|
-
|
154
|
-
response.data.last.respond_to?(:display_name).
|
155
|
+
|
156
|
+
expect(response.data.last.respond_to?(:display_name)).to be_truthy
|
155
157
|
expect(response.data.first.display_name).to eq('felipeclopes')
|
156
158
|
expect(response.data.first.questions.count).to eq(6)
|
157
159
|
expect(response.data.first.questions.last.view_count).to eq(1344)
|
@@ -161,8 +163,8 @@ module RubyStackoverflow
|
|
161
163
|
it 'should get users unaccepted questions' do
|
162
164
|
VCR.use_cassette('users_unaccepted_questions') do
|
163
165
|
response = RubyStackoverflow.users_unaccepted_questions(['1363236'])
|
164
|
-
|
165
|
-
response.data.last.respond_to?(:display_name).
|
166
|
+
|
167
|
+
expect(response.data.last.respond_to?(:display_name)).to be_truthy
|
166
168
|
expect(response.data.first.display_name).to eq('raysrashmi')
|
167
169
|
expect(response.data.first.questions.count).to eq(2)
|
168
170
|
expect(response.data.first.questions.last.view_count).to eq(65)
|
@@ -172,7 +174,8 @@ module RubyStackoverflow
|
|
172
174
|
it 'should get users reputation' do
|
173
175
|
VCR.use_cassette('users_reputation_questions') do
|
174
176
|
response = RubyStackoverflow.users_reputations(['1363236'])
|
175
|
-
|
177
|
+
|
178
|
+
expect(response.data.last.respond_to?(:display_name)).to be_truthy
|
176
179
|
expect(response.data.count).to eq(1)
|
177
180
|
expect(response.data.first.reputations.count).to eq(12)
|
178
181
|
expect(response.data.first.reputations.last.vote_type).to eq('down_votes')
|
@@ -183,9 +186,9 @@ module RubyStackoverflow
|
|
183
186
|
it 'should get users suggested edits' do
|
184
187
|
VCR.use_cassette('users_suggested_edits') do
|
185
188
|
response = RubyStackoverflow.users_suggested_edits(['707894'])
|
186
|
-
|
189
|
+
|
187
190
|
expect(response.data.count).to eq(1)
|
188
|
-
response.data.last.respond_to?(:display_name).
|
191
|
+
expect(response.data.last.respond_to?(:display_name)).to be_truthy
|
189
192
|
expect(response.data.first.display_name).to eq('felipeclopes')
|
190
193
|
expect(response.data.first.suggested_edits.count).to eq(8)
|
191
194
|
expect(response.data.first.suggested_edits.last.post_type).to eq('answer')
|
@@ -195,9 +198,10 @@ module RubyStackoverflow
|
|
195
198
|
it 'should get users tags' do
|
196
199
|
VCR.use_cassette('users_tags') do
|
197
200
|
response = RubyStackoverflow.users_tags(['707894'],{min: 1, max: 10, sort: 'popular' })
|
198
|
-
|
201
|
+
|
202
|
+
expect(response.data.is_a?(Array)).to be_truthy
|
199
203
|
expect(response.data.count).to eq(1)
|
200
|
-
response.data.last.respond_to?(:user_id).
|
204
|
+
expect(response.data.last.respond_to?(:user_id)).to be_truthy
|
201
205
|
expect(response.data.first.tags.count).to eq(30)
|
202
206
|
expect(response.data.first.tags.last.name).to eq('angularjs-directive')
|
203
207
|
end
|
@@ -206,9 +210,10 @@ module RubyStackoverflow
|
|
206
210
|
it 'should get user top answers for specific tags' do
|
207
211
|
VCR.use_cassette('user_top_answers_with_given_tags') do
|
208
212
|
response = RubyStackoverflow.users_top_answers_with_given_tags('707894',['ruby', 'rails'])
|
209
|
-
|
213
|
+
|
214
|
+
expect(response.data.is_a?(Array)).to be_truthy
|
210
215
|
expect(response.data.count).to eq(1)
|
211
|
-
response.data.last.respond_to?(:user_id).
|
216
|
+
expect(response.data.last.respond_to?(:user_id)).to be_truthy
|
212
217
|
expect(response.data.first.answers.count).to eq(9)
|
213
218
|
expect(response.data.first.answers.last.score).to eq(0)
|
214
219
|
end
|
@@ -217,9 +222,9 @@ module RubyStackoverflow
|
|
217
222
|
it 'should get user top questions for specific tags' do
|
218
223
|
VCR.use_cassette('user_top_questions_with_given_tags') do
|
219
224
|
response = RubyStackoverflow.users_top_questions_with_given_tags('707894',['ruby', 'rails'])
|
220
|
-
|
225
|
+
|
226
|
+
expect(response.data.last.respond_to?(:user_id)).to be_truthy
|
221
227
|
expect(response.data.count).to eq(1)
|
222
|
-
response.data.last.respond_to?(:user_id).should be_true
|
223
228
|
expect(response.data.first.questions.count).to eq(3)
|
224
229
|
expect(response.data.first.questions.last.score).to eq(-2)
|
225
230
|
end
|
@@ -230,11 +235,8 @@ module RubyStackoverflow
|
|
230
235
|
response = RubyStackoverflow.user_top_tags_by_answers('707894')
|
231
236
|
data = response.data
|
232
237
|
|
233
|
-
data.is_a?(Array).should be_true
|
234
238
|
expect(data.count).to eq(1)
|
235
|
-
|
236
|
-
data.last.respond_to?(:user_id).should be_true
|
237
|
-
|
239
|
+
expect(data.last.respond_to?(:user_id)).to be_truthy
|
238
240
|
expect(data.first.tags.count).to eq(30)
|
239
241
|
expect(data.first.tags.last.tag_name).to eq('asp.net-mvc')
|
240
242
|
end
|
@@ -245,11 +247,8 @@ module RubyStackoverflow
|
|
245
247
|
response = RubyStackoverflow.user_top_tags_by_questions('707894')
|
246
248
|
data = response.data
|
247
249
|
|
248
|
-
data.is_a?(Array).should be_true
|
249
250
|
expect(data.count).to eq(1)
|
250
|
-
|
251
|
-
data.last.respond_to?(:user_id).should be_true
|
252
|
-
|
251
|
+
expect(data.last.respond_to?(:user_id)).to be_truthy
|
253
252
|
expect(data.first.tags.count).to eq(12)
|
254
253
|
expect(data.first.tags.last.tag_name).to eq('timezone')
|
255
254
|
end
|
@@ -257,14 +256,11 @@ module RubyStackoverflow
|
|
257
256
|
|
258
257
|
it 'should get user timeline' do
|
259
258
|
VCR.use_cassette('user_timeline') do
|
260
|
-
response = RubyStackoverflow.users_timeline(['1363236']
|
259
|
+
response = RubyStackoverflow.users_timeline(['1363236'])
|
261
260
|
data = response.data
|
262
261
|
|
263
|
-
data.is_a?(Array).should be_true
|
264
262
|
expect(data.count).to eq(1)
|
265
|
-
|
266
|
-
data.last.respond_to?(:user_id).should be_true
|
267
|
-
|
263
|
+
expect(data.last.respond_to?(:user_id)).to be_truthy
|
268
264
|
expect(data.first.posts.count).to eq(16)
|
269
265
|
expect(data.first.posts.last.timeline_type).to eq('revision')
|
270
266
|
end
|
@@ -275,13 +271,10 @@ module RubyStackoverflow
|
|
275
271
|
response = RubyStackoverflow.user_write_permissions('1363236')
|
276
272
|
data = response.data
|
277
273
|
|
278
|
-
data.is_a?(Array).should be_true
|
279
274
|
expect(data.count).to eq(1)
|
280
|
-
|
281
|
-
data.last.respond_to?(:user_id).should be_true
|
282
|
-
|
275
|
+
expect(data.last.respond_to?(:user_id)).to be_truthy
|
283
276
|
expect(data.first.permissions.count).to eq(3)
|
284
|
-
expect(data.first.permissions.last.can_edit).to
|
277
|
+
expect(data.first.permissions.last.can_edit).to be_truthy
|
285
278
|
end
|
286
279
|
end
|
287
280
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -7,9 +7,9 @@ require 'helper'
|
|
7
7
|
require 'ruby-stackoverflow'
|
8
8
|
|
9
9
|
RSpec.configure do |config|
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
config.expect_with :rspec do |c|
|
11
|
+
c.syntax = :expect
|
12
|
+
end
|
13
13
|
|
14
14
|
config.fail_fast = true
|
15
15
|
config.order = 'random'
|
metadata
CHANGED
@@ -1,110 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-stackoverflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Rashmi Yadav
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-03-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: httparty
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 0.11.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 0.11.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: json
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.1'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.1'
|
46
55
|
- !ruby/object:Gem::Dependency
|
47
56
|
name: webmock
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
58
|
requirements:
|
51
|
-
- - ~>
|
59
|
+
- - "~>"
|
52
60
|
- !ruby/object:Gem::Version
|
53
61
|
version: 1.14.0
|
54
62
|
type: :development
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
65
|
requirements:
|
59
|
-
- - ~>
|
66
|
+
- - "~>"
|
60
67
|
- !ruby/object:Gem::Version
|
61
68
|
version: 1.14.0
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
70
|
name: vcr
|
64
71
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
72
|
requirements:
|
67
|
-
- - ~>
|
73
|
+
- - "~>"
|
68
74
|
- !ruby/object:Gem::Version
|
69
|
-
version: 2.
|
75
|
+
version: 2.7.0
|
70
76
|
type: :development
|
71
77
|
prerelease: false
|
72
78
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
79
|
requirements:
|
75
|
-
- - ~>
|
80
|
+
- - "~>"
|
76
81
|
- !ruby/object:Gem::Version
|
77
|
-
version: 2.
|
82
|
+
version: 2.7.0
|
78
83
|
- !ruby/object:Gem::Dependency
|
79
84
|
name: bundler
|
80
85
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
86
|
requirements:
|
83
|
-
- - ~>
|
87
|
+
- - "~>"
|
84
88
|
- !ruby/object:Gem::Version
|
85
89
|
version: '1.3'
|
86
90
|
type: :development
|
87
91
|
prerelease: false
|
88
92
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
93
|
requirements:
|
91
|
-
- - ~>
|
94
|
+
- - "~>"
|
92
95
|
- !ruby/object:Gem::Version
|
93
96
|
version: '1.3'
|
94
97
|
- !ruby/object:Gem::Dependency
|
95
98
|
name: rake
|
96
99
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
100
|
requirements:
|
99
|
-
- - ~>
|
101
|
+
- - "~>"
|
100
102
|
- !ruby/object:Gem::Version
|
101
103
|
version: 10.1.0
|
102
104
|
type: :development
|
103
105
|
prerelease: false
|
104
106
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
107
|
requirements:
|
107
|
-
- - ~>
|
108
|
+
- - "~>"
|
108
109
|
- !ruby/object:Gem::Version
|
109
110
|
version: 10.1.0
|
110
111
|
description: Ruby library for stackoverflow api
|
@@ -114,8 +115,10 @@ executables: []
|
|
114
115
|
extensions: []
|
115
116
|
extra_rdoc_files: []
|
116
117
|
files:
|
117
|
-
- .gitignore
|
118
|
-
- .rake_tasks
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rake_tasks"
|
120
|
+
- ".travis.yml"
|
121
|
+
- CHANGELOG.md
|
119
122
|
- Gemfile
|
120
123
|
- LICENSE.txt
|
121
124
|
- README.md
|
@@ -206,33 +209,26 @@ files:
|
|
206
209
|
homepage: https://github.com/raysrashmi/ruby-stackoverflow
|
207
210
|
licenses:
|
208
211
|
- MIT
|
212
|
+
metadata: {}
|
209
213
|
post_install_message:
|
210
214
|
rdoc_options: []
|
211
215
|
require_paths:
|
212
216
|
- lib
|
213
217
|
required_ruby_version: !ruby/object:Gem::Requirement
|
214
|
-
none: false
|
215
218
|
requirements:
|
216
|
-
- -
|
219
|
+
- - ">="
|
217
220
|
- !ruby/object:Gem::Version
|
218
221
|
version: '0'
|
219
|
-
segments:
|
220
|
-
- 0
|
221
|
-
hash: 3648489429190786940
|
222
222
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
223
|
-
none: false
|
224
223
|
requirements:
|
225
|
-
- -
|
224
|
+
- - ">="
|
226
225
|
- !ruby/object:Gem::Version
|
227
226
|
version: '0'
|
228
|
-
segments:
|
229
|
-
- 0
|
230
|
-
hash: 3648489429190786940
|
231
227
|
requirements: []
|
232
228
|
rubyforge_project:
|
233
|
-
rubygems_version:
|
229
|
+
rubygems_version: 2.2.2
|
234
230
|
signing_key:
|
235
|
-
specification_version:
|
231
|
+
specification_version: 4
|
236
232
|
summary: Interface for stackoverflow api
|
237
233
|
test_files:
|
238
234
|
- spec/fixtures/error.json
|