disqussion 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/.gitignore +9 -0
  2. data/Gemfile +3 -0
  3. data/Gemfile.lock +80 -0
  4. data/HISTORY.mkd +5 -0
  5. data/LICENSE.mkd +20 -0
  6. data/README.mkd +139 -0
  7. data/Rakefile +23 -0
  8. data/disqussion.gemspec +37 -0
  9. data/lib/disqussion/api.rb +21 -0
  10. data/lib/disqussion/client/.DS_Store +0 -0
  11. data/lib/disqussion/client/applications.rb +20 -0
  12. data/lib/disqussion/client/blacklists.rb +4 -0
  13. data/lib/disqussion/client/categories.rb +4 -0
  14. data/lib/disqussion/client/exports.rb +4 -0
  15. data/lib/disqussion/client/forums.rb +122 -0
  16. data/lib/disqussion/client/imports.rb +4 -0
  17. data/lib/disqussion/client/posts.rb +217 -0
  18. data/lib/disqussion/client/reactions.rb +79 -0
  19. data/lib/disqussion/client/reports.rb +4 -0
  20. data/lib/disqussion/client/threads.rb +199 -0
  21. data/lib/disqussion/client/trends.rb +23 -0
  22. data/lib/disqussion/client/users.rb +103 -0
  23. data/lib/disqussion/client/utils.rb +90 -0
  24. data/lib/disqussion/client/whitelists.rb +4 -0
  25. data/lib/disqussion/client.rb +46 -0
  26. data/lib/disqussion/configuration.rb +121 -0
  27. data/lib/disqussion/connection.rb +36 -0
  28. data/lib/disqussion/error.rb +51 -0
  29. data/lib/disqussion/request.rb +38 -0
  30. data/lib/disqussion/version.rb +3 -0
  31. data/lib/disqussion/view_helpers.rb +9 -0
  32. data/lib/disqussion/widget.rb +183 -0
  33. data/lib/disqussion.rb +25 -0
  34. data/lib/faraday/response/raise_http_4xx.rb +41 -0
  35. data/lib/faraday/response/raise_http_5xx.rb +20 -0
  36. data/spec/disqussion/api_spec.rb +63 -0
  37. data/spec/disqussion/client/.DS_Store +0 -0
  38. data/spec/disqussion/client/applications_spec.rb +24 -0
  39. data/spec/disqussion/client/forums_spec.rb +80 -0
  40. data/spec/disqussion/client/posts_spec.rb +154 -0
  41. data/spec/disqussion/client/reactions_spec.rb +63 -0
  42. data/spec/disqussion/client/threads_spec.rb +128 -0
  43. data/spec/disqussion/client/trends_spec.rb +24 -0
  44. data/spec/disqussion/client/users_spec.rb +33 -0
  45. data/spec/disqussion/client_spec.rb +15 -0
  46. data/spec/disqussion_spec.rb +101 -0
  47. data/spec/faraday/response_spec.rb +30 -0
  48. data/spec/fixtures/applications/listUsage.json +129 -0
  49. data/spec/fixtures/forums/create.json +12 -0
  50. data/spec/fixtures/forums/details.json +12 -0
  51. data/spec/fixtures/forums/listCategories.json +21 -0
  52. data/spec/fixtures/forums/listPosts.json +859 -0
  53. data/spec/fixtures/forums/listThreads.json +533 -0
  54. data/spec/fixtures/posts/approve.json +6 -0
  55. data/spec/fixtures/posts/create.json +6 -0
  56. data/spec/fixtures/posts/details.json +35 -0
  57. data/spec/fixtures/posts/highlight.json +6 -0
  58. data/spec/fixtures/posts/list.json +247 -0
  59. data/spec/fixtures/posts/remove.json +6 -0
  60. data/spec/fixtures/posts/report.json +6 -0
  61. data/spec/fixtures/posts/restore.json +6 -0
  62. data/spec/fixtures/posts/spam.json +6 -0
  63. data/spec/fixtures/posts/unhighlight.json +6 -0
  64. data/spec/fixtures/posts/vote.json +6 -0
  65. data/spec/fixtures/reactions/domains.json +4 -0
  66. data/spec/fixtures/reactions/ips.json +131 -0
  67. data/spec/fixtures/reactions/threads.json +4 -0
  68. data/spec/fixtures/reactions/users.json +124 -0
  69. data/spec/fixtures/threads/close.json +4 -0
  70. data/spec/fixtures/threads/create.json +22 -0
  71. data/spec/fixtures/threads/details.json +24 -0
  72. data/spec/fixtures/threads/list.json +531 -0
  73. data/spec/fixtures/threads/listMostLiked.json +530 -0
  74. data/spec/fixtures/threads/listPosts.json +87 -0
  75. data/spec/fixtures/threads/open.json +8 -0
  76. data/spec/fixtures/threads/remove.json +4 -0
  77. data/spec/fixtures/threads/restore.json +4 -0
  78. data/spec/fixtures/threads/vote.json +4 -0
  79. data/spec/fixtures/trends/listTreads.json +283 -0
  80. data/spec/fixtures/users/details.json +19 -0
  81. data/spec/fixtures/users/follow.json +4 -0
  82. data/spec/helper.rb +47 -0
  83. metadata +348 -0
metadata ADDED
@@ -0,0 +1,348 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: disqussion
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.1
6
+ platform: ruby
7
+ authors:
8
+ - "J\xC3\xA9r\xC3\xA9my Van de Wyngaert"
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-05-10 00:00:00 +02:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: json
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
20
+ none: false
21
+ requirements:
22
+ - - ~>
23
+ - !ruby/object:Gem::Version
24
+ version: "1.5"
25
+ type: :development
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: nokogiri
29
+ prerelease: false
30
+ requirement: &id002 !ruby/object:Gem::Requirement
31
+ none: false
32
+ requirements:
33
+ - - ~>
34
+ - !ruby/object:Gem::Version
35
+ version: "1.4"
36
+ type: :development
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: maruku
40
+ prerelease: false
41
+ requirement: &id003 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: "0.6"
47
+ type: :development
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: rake
51
+ prerelease: false
52
+ requirement: &id004 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ~>
56
+ - !ruby/object:Gem::Version
57
+ version: "0.8"
58
+ type: :development
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
61
+ name: rspec
62
+ prerelease: false
63
+ requirement: &id005 !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: "2.5"
69
+ type: :development
70
+ version_requirements: *id005
71
+ - !ruby/object:Gem::Dependency
72
+ name: simplecov
73
+ prerelease: false
74
+ requirement: &id006 !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ~>
78
+ - !ruby/object:Gem::Version
79
+ version: "0.4"
80
+ type: :development
81
+ version_requirements: *id006
82
+ - !ruby/object:Gem::Dependency
83
+ name: webmock
84
+ prerelease: false
85
+ requirement: &id007 !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ~>
89
+ - !ruby/object:Gem::Version
90
+ version: "1.6"
91
+ type: :development
92
+ version_requirements: *id007
93
+ - !ruby/object:Gem::Dependency
94
+ name: yard
95
+ prerelease: false
96
+ requirement: &id008 !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: "0.6"
102
+ type: :development
103
+ version_requirements: *id008
104
+ - !ruby/object:Gem::Dependency
105
+ name: ZenTest
106
+ prerelease: false
107
+ requirement: &id009 !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ~>
111
+ - !ruby/object:Gem::Version
112
+ version: "4.5"
113
+ type: :development
114
+ version_requirements: *id009
115
+ - !ruby/object:Gem::Dependency
116
+ name: ruby-debug19
117
+ prerelease: false
118
+ requirement: &id010 !ruby/object:Gem::Requirement
119
+ none: false
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: "0"
124
+ type: :development
125
+ version_requirements: *id010
126
+ - !ruby/object:Gem::Dependency
127
+ name: hashie
128
+ prerelease: false
129
+ requirement: &id011 !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ~>
133
+ - !ruby/object:Gem::Version
134
+ version: 1.0.0
135
+ type: :runtime
136
+ version_requirements: *id011
137
+ - !ruby/object:Gem::Dependency
138
+ name: faraday
139
+ prerelease: false
140
+ requirement: &id012 !ruby/object:Gem::Requirement
141
+ none: false
142
+ requirements:
143
+ - - ~>
144
+ - !ruby/object:Gem::Version
145
+ version: 0.6.1
146
+ type: :runtime
147
+ version_requirements: *id012
148
+ - !ruby/object:Gem::Dependency
149
+ name: faraday_middleware
150
+ prerelease: false
151
+ requirement: &id013 !ruby/object:Gem::Requirement
152
+ none: false
153
+ requirements:
154
+ - - ~>
155
+ - !ruby/object:Gem::Version
156
+ version: 0.6.3
157
+ type: :runtime
158
+ version_requirements: *id013
159
+ - !ruby/object:Gem::Dependency
160
+ name: multi_json
161
+ prerelease: false
162
+ requirement: &id014 !ruby/object:Gem::Requirement
163
+ none: false
164
+ requirements:
165
+ - - ~>
166
+ - !ruby/object:Gem::Version
167
+ version: 1.0.0
168
+ type: :runtime
169
+ version_requirements: *id014
170
+ - !ruby/object:Gem::Dependency
171
+ name: rash
172
+ prerelease: false
173
+ requirement: &id015 !ruby/object:Gem::Requirement
174
+ none: false
175
+ requirements:
176
+ - - ~>
177
+ - !ruby/object:Gem::Version
178
+ version: 0.3.0
179
+ type: :runtime
180
+ version_requirements: *id015
181
+ description: Disqus API v3 wrapper
182
+ email:
183
+ - jeremyvdw@gmail.com
184
+ executables: []
185
+
186
+ extensions: []
187
+
188
+ extra_rdoc_files: []
189
+
190
+ files:
191
+ - .gitignore
192
+ - Gemfile
193
+ - Gemfile.lock
194
+ - HISTORY.mkd
195
+ - LICENSE.mkd
196
+ - README.mkd
197
+ - Rakefile
198
+ - disqussion.gemspec
199
+ - lib/disqussion.rb
200
+ - lib/disqussion/api.rb
201
+ - lib/disqussion/client.rb
202
+ - lib/disqussion/client/.DS_Store
203
+ - lib/disqussion/client/applications.rb
204
+ - lib/disqussion/client/blacklists.rb
205
+ - lib/disqussion/client/categories.rb
206
+ - lib/disqussion/client/exports.rb
207
+ - lib/disqussion/client/forums.rb
208
+ - lib/disqussion/client/imports.rb
209
+ - lib/disqussion/client/posts.rb
210
+ - lib/disqussion/client/reactions.rb
211
+ - lib/disqussion/client/reports.rb
212
+ - lib/disqussion/client/threads.rb
213
+ - lib/disqussion/client/trends.rb
214
+ - lib/disqussion/client/users.rb
215
+ - lib/disqussion/client/utils.rb
216
+ - lib/disqussion/client/whitelists.rb
217
+ - lib/disqussion/configuration.rb
218
+ - lib/disqussion/connection.rb
219
+ - lib/disqussion/error.rb
220
+ - lib/disqussion/request.rb
221
+ - lib/disqussion/version.rb
222
+ - lib/disqussion/view_helpers.rb
223
+ - lib/disqussion/widget.rb
224
+ - lib/faraday/response/raise_http_4xx.rb
225
+ - lib/faraday/response/raise_http_5xx.rb
226
+ - spec/disqussion/api_spec.rb
227
+ - spec/disqussion/client/.DS_Store
228
+ - spec/disqussion/client/applications_spec.rb
229
+ - spec/disqussion/client/forums_spec.rb
230
+ - spec/disqussion/client/posts_spec.rb
231
+ - spec/disqussion/client/reactions_spec.rb
232
+ - spec/disqussion/client/threads_spec.rb
233
+ - spec/disqussion/client/trends_spec.rb
234
+ - spec/disqussion/client/users_spec.rb
235
+ - spec/disqussion/client_spec.rb
236
+ - spec/disqussion_spec.rb
237
+ - spec/faraday/response_spec.rb
238
+ - spec/fixtures/applications/listUsage.json
239
+ - spec/fixtures/forums/create.json
240
+ - spec/fixtures/forums/details.json
241
+ - spec/fixtures/forums/listCategories.json
242
+ - spec/fixtures/forums/listPosts.json
243
+ - spec/fixtures/forums/listThreads.json
244
+ - spec/fixtures/posts/approve.json
245
+ - spec/fixtures/posts/create.json
246
+ - spec/fixtures/posts/details.json
247
+ - spec/fixtures/posts/highlight.json
248
+ - spec/fixtures/posts/list.json
249
+ - spec/fixtures/posts/remove.json
250
+ - spec/fixtures/posts/report.json
251
+ - spec/fixtures/posts/restore.json
252
+ - spec/fixtures/posts/spam.json
253
+ - spec/fixtures/posts/unhighlight.json
254
+ - spec/fixtures/posts/vote.json
255
+ - spec/fixtures/reactions/domains.json
256
+ - spec/fixtures/reactions/ips.json
257
+ - spec/fixtures/reactions/threads.json
258
+ - spec/fixtures/reactions/users.json
259
+ - spec/fixtures/threads/close.json
260
+ - spec/fixtures/threads/create.json
261
+ - spec/fixtures/threads/details.json
262
+ - spec/fixtures/threads/list.json
263
+ - spec/fixtures/threads/listMostLiked.json
264
+ - spec/fixtures/threads/listPosts.json
265
+ - spec/fixtures/threads/open.json
266
+ - spec/fixtures/threads/remove.json
267
+ - spec/fixtures/threads/restore.json
268
+ - spec/fixtures/threads/vote.json
269
+ - spec/fixtures/trends/listTreads.json
270
+ - spec/fixtures/users/details.json
271
+ - spec/fixtures/users/follow.json
272
+ - spec/helper.rb
273
+ has_rdoc: true
274
+ homepage: https://github.com/jeremyvdw/disqussion
275
+ licenses: []
276
+
277
+ post_install_message:
278
+ rdoc_options: []
279
+
280
+ require_paths:
281
+ - lib
282
+ required_ruby_version: !ruby/object:Gem::Requirement
283
+ none: false
284
+ requirements:
285
+ - - ">="
286
+ - !ruby/object:Gem::Version
287
+ version: "0"
288
+ required_rubygems_version: !ruby/object:Gem::Requirement
289
+ none: false
290
+ requirements:
291
+ - - ">="
292
+ - !ruby/object:Gem::Version
293
+ version: "0"
294
+ requirements: []
295
+
296
+ rubyforge_project: disqussion
297
+ rubygems_version: 1.6.2
298
+ signing_key:
299
+ specification_version: 3
300
+ summary: Disqus API v3 wrapper
301
+ test_files:
302
+ - spec/disqussion/api_spec.rb
303
+ - spec/disqussion/client/.DS_Store
304
+ - spec/disqussion/client/applications_spec.rb
305
+ - spec/disqussion/client/forums_spec.rb
306
+ - spec/disqussion/client/posts_spec.rb
307
+ - spec/disqussion/client/reactions_spec.rb
308
+ - spec/disqussion/client/threads_spec.rb
309
+ - spec/disqussion/client/trends_spec.rb
310
+ - spec/disqussion/client/users_spec.rb
311
+ - spec/disqussion/client_spec.rb
312
+ - spec/disqussion_spec.rb
313
+ - spec/faraday/response_spec.rb
314
+ - spec/fixtures/applications/listUsage.json
315
+ - spec/fixtures/forums/create.json
316
+ - spec/fixtures/forums/details.json
317
+ - spec/fixtures/forums/listCategories.json
318
+ - spec/fixtures/forums/listPosts.json
319
+ - spec/fixtures/forums/listThreads.json
320
+ - spec/fixtures/posts/approve.json
321
+ - spec/fixtures/posts/create.json
322
+ - spec/fixtures/posts/details.json
323
+ - spec/fixtures/posts/highlight.json
324
+ - spec/fixtures/posts/list.json
325
+ - spec/fixtures/posts/remove.json
326
+ - spec/fixtures/posts/report.json
327
+ - spec/fixtures/posts/restore.json
328
+ - spec/fixtures/posts/spam.json
329
+ - spec/fixtures/posts/unhighlight.json
330
+ - spec/fixtures/posts/vote.json
331
+ - spec/fixtures/reactions/domains.json
332
+ - spec/fixtures/reactions/ips.json
333
+ - spec/fixtures/reactions/threads.json
334
+ - spec/fixtures/reactions/users.json
335
+ - spec/fixtures/threads/close.json
336
+ - spec/fixtures/threads/create.json
337
+ - spec/fixtures/threads/details.json
338
+ - spec/fixtures/threads/list.json
339
+ - spec/fixtures/threads/listMostLiked.json
340
+ - spec/fixtures/threads/listPosts.json
341
+ - spec/fixtures/threads/open.json
342
+ - spec/fixtures/threads/remove.json
343
+ - spec/fixtures/threads/restore.json
344
+ - spec/fixtures/threads/vote.json
345
+ - spec/fixtures/trends/listTreads.json
346
+ - spec/fixtures/users/details.json
347
+ - spec/fixtures/users/follow.json
348
+ - spec/helper.rb