ted_api 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +56 -0
- data/Rakefile +8 -0
- data/lib/faraday/response/raise_ted_api_error.rb +43 -0
- data/lib/ted_api.rb +20 -0
- data/lib/ted_api/client.rb +39 -0
- data/lib/ted_api/client/countries.rb +18 -0
- data/lib/ted_api/client/events.rb +18 -0
- data/lib/ted_api/client/languages.rb +18 -0
- data/lib/ted_api/client/quotes.rb +18 -0
- data/lib/ted_api/client/rating_words.rb +18 -0
- data/lib/ted_api/client/speakers.rb +18 -0
- data/lib/ted_api/client/tags.rb +18 -0
- data/lib/ted_api/client/talks.rb +26 -0
- data/lib/ted_api/client/themes.rb +18 -0
- data/lib/ted_api/configuration.rb +54 -0
- data/lib/ted_api/connection.rb +30 -0
- data/lib/ted_api/error.rb +34 -0
- data/lib/ted_api/request.rb +34 -0
- data/lib/ted_api/version.rb +3 -0
- data/spec/faraday/response_spec.rb +35 -0
- data/spec/fixtures/countries.json +1 -0
- data/spec/fixtures/countries.xml +109 -0
- data/spec/fixtures/country.json +1 -0
- data/spec/fixtures/country.xml +8 -0
- data/spec/fixtures/event.json +1 -0
- data/spec/fixtures/event.xml +12 -0
- data/spec/fixtures/events.json +1 -0
- data/spec/fixtures/events.xml +189 -0
- data/spec/fixtures/language.json +1 -0
- data/spec/fixtures/language.xml +8 -0
- data/spec/fixtures/languages.json +1 -0
- data/spec/fixtures/languages.xml +106 -0
- data/spec/fixtures/quote.json +1 -0
- data/spec/fixtures/quote.xml +14 -0
- data/spec/fixtures/quotes.json +2 -0
- data/spec/fixtures/quotes.xml +230 -0
- data/spec/fixtures/rating_word.json +1 -0
- data/spec/fixtures/rating_word.xml +7 -0
- data/spec/fixtures/rating_words.json +1 -0
- data/spec/fixtures/rating_words.xml +65 -0
- data/spec/fixtures/speaker.json +1 -0
- data/spec/fixtures/speaker.xml +16 -0
- data/spec/fixtures/speakers.json +1 -0
- data/spec/fixtures/speakers.xml +269 -0
- data/spec/fixtures/speakers_by_talk.json +1 -0
- data/spec/fixtures/subtitles.json +2 -0
- data/spec/fixtures/tag.json +1 -0
- data/spec/fixtures/tag.xml +11 -0
- data/spec/fixtures/tags.json +1 -0
- data/spec/fixtures/tags.xml +169 -0
- data/spec/fixtures/talk.json +1 -0
- data/spec/fixtures/talk.xml +302 -0
- data/spec/fixtures/talks.json +1 -0
- data/spec/fixtures/talks.xml +249 -0
- data/spec/fixtures/theme.json +1 -0
- data/spec/fixtures/theme.xml +19 -0
- data/spec/fixtures/themes.json +1 -0
- data/spec/fixtures/themes.xml +294 -0
- data/spec/spec_helper.rb +38 -0
- data/spec/ted_api/client/countries_spec.rb +46 -0
- data/spec/ted_api/client/events_spec.rb +46 -0
- data/spec/ted_api/client/languages_spec.rb +46 -0
- data/spec/ted_api/client/quotes_spec.rb +46 -0
- data/spec/ted_api/client/rating_words_spec.rb +46 -0
- data/spec/ted_api/client/speakers_spec.rb +46 -0
- data/spec/ted_api/client/tags_spec.rb +46 -0
- data/spec/ted_api/client/talks_spec.rb +78 -0
- data/spec/ted_api/client/themes_spec.rb +46 -0
- data/spec/ted_api/client_spec.rb +26 -0
- data/spec/ted_api_spec.rb +21 -0
- data/ted_api.gemspec +33 -0
- metadata +347 -0
metadata
ADDED
@@ -0,0 +1,347 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ted_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- John Barton
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-09-10 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: faraday
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 0.8.4
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.8.4
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: faraday_middleware
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 0.8.4
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.8.4
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: hashie
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.2'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.2'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: multi_json
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.3'
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '1.3'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: multi_xml
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 0.5.0
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.5.0
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: json
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: maruku
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: rake
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: rspec
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: simplecov
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
- !ruby/object:Gem::Dependency
|
175
|
+
name: webmock
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
type: :development
|
183
|
+
prerelease: false
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
186
|
+
requirements:
|
187
|
+
- - ! '>='
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
description: A wrapper for the TED Talks API.
|
191
|
+
email:
|
192
|
+
- jb@phy5ics.com
|
193
|
+
executables: []
|
194
|
+
extensions: []
|
195
|
+
extra_rdoc_files: []
|
196
|
+
files:
|
197
|
+
- .gitignore
|
198
|
+
- Gemfile
|
199
|
+
- LICENSE.txt
|
200
|
+
- README.md
|
201
|
+
- Rakefile
|
202
|
+
- lib/faraday/response/raise_ted_api_error.rb
|
203
|
+
- lib/ted_api.rb
|
204
|
+
- lib/ted_api/client.rb
|
205
|
+
- lib/ted_api/client/countries.rb
|
206
|
+
- lib/ted_api/client/events.rb
|
207
|
+
- lib/ted_api/client/languages.rb
|
208
|
+
- lib/ted_api/client/quotes.rb
|
209
|
+
- lib/ted_api/client/rating_words.rb
|
210
|
+
- lib/ted_api/client/speakers.rb
|
211
|
+
- lib/ted_api/client/tags.rb
|
212
|
+
- lib/ted_api/client/talks.rb
|
213
|
+
- lib/ted_api/client/themes.rb
|
214
|
+
- lib/ted_api/configuration.rb
|
215
|
+
- lib/ted_api/connection.rb
|
216
|
+
- lib/ted_api/error.rb
|
217
|
+
- lib/ted_api/request.rb
|
218
|
+
- lib/ted_api/version.rb
|
219
|
+
- spec/faraday/response_spec.rb
|
220
|
+
- spec/fixtures/countries.json
|
221
|
+
- spec/fixtures/countries.xml
|
222
|
+
- spec/fixtures/country.json
|
223
|
+
- spec/fixtures/country.xml
|
224
|
+
- spec/fixtures/event.json
|
225
|
+
- spec/fixtures/event.xml
|
226
|
+
- spec/fixtures/events.json
|
227
|
+
- spec/fixtures/events.xml
|
228
|
+
- spec/fixtures/language.json
|
229
|
+
- spec/fixtures/language.xml
|
230
|
+
- spec/fixtures/languages.json
|
231
|
+
- spec/fixtures/languages.xml
|
232
|
+
- spec/fixtures/quote.json
|
233
|
+
- spec/fixtures/quote.xml
|
234
|
+
- spec/fixtures/quotes.json
|
235
|
+
- spec/fixtures/quotes.xml
|
236
|
+
- spec/fixtures/rating_word.json
|
237
|
+
- spec/fixtures/rating_word.xml
|
238
|
+
- spec/fixtures/rating_words.json
|
239
|
+
- spec/fixtures/rating_words.xml
|
240
|
+
- spec/fixtures/speaker.json
|
241
|
+
- spec/fixtures/speaker.xml
|
242
|
+
- spec/fixtures/speakers.json
|
243
|
+
- spec/fixtures/speakers.xml
|
244
|
+
- spec/fixtures/speakers_by_talk.json
|
245
|
+
- spec/fixtures/subtitles.json
|
246
|
+
- spec/fixtures/tag.json
|
247
|
+
- spec/fixtures/tag.xml
|
248
|
+
- spec/fixtures/tags.json
|
249
|
+
- spec/fixtures/tags.xml
|
250
|
+
- spec/fixtures/talk.json
|
251
|
+
- spec/fixtures/talk.xml
|
252
|
+
- spec/fixtures/talks.json
|
253
|
+
- spec/fixtures/talks.xml
|
254
|
+
- spec/fixtures/theme.json
|
255
|
+
- spec/fixtures/theme.xml
|
256
|
+
- spec/fixtures/themes.json
|
257
|
+
- spec/fixtures/themes.xml
|
258
|
+
- spec/spec_helper.rb
|
259
|
+
- spec/ted_api/client/countries_spec.rb
|
260
|
+
- spec/ted_api/client/events_spec.rb
|
261
|
+
- spec/ted_api/client/languages_spec.rb
|
262
|
+
- spec/ted_api/client/quotes_spec.rb
|
263
|
+
- spec/ted_api/client/rating_words_spec.rb
|
264
|
+
- spec/ted_api/client/speakers_spec.rb
|
265
|
+
- spec/ted_api/client/tags_spec.rb
|
266
|
+
- spec/ted_api/client/talks_spec.rb
|
267
|
+
- spec/ted_api/client/themes_spec.rb
|
268
|
+
- spec/ted_api/client_spec.rb
|
269
|
+
- spec/ted_api_spec.rb
|
270
|
+
- ted_api.gemspec
|
271
|
+
homepage: https://github.com/phy5ics/ted-api
|
272
|
+
licenses: []
|
273
|
+
post_install_message:
|
274
|
+
rdoc_options: []
|
275
|
+
require_paths:
|
276
|
+
- lib
|
277
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
278
|
+
none: false
|
279
|
+
requirements:
|
280
|
+
- - ! '>='
|
281
|
+
- !ruby/object:Gem::Version
|
282
|
+
version: '0'
|
283
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
284
|
+
none: false
|
285
|
+
requirements:
|
286
|
+
- - ! '>='
|
287
|
+
- !ruby/object:Gem::Version
|
288
|
+
version: '0'
|
289
|
+
requirements: []
|
290
|
+
rubyforge_project:
|
291
|
+
rubygems_version: 1.8.23
|
292
|
+
signing_key:
|
293
|
+
specification_version: 3
|
294
|
+
summary: A wrapper for the TED Talks API that allows for both JSON and XML methods. See
|
295
|
+
http://developer.ted.com/ for more information on the API.
|
296
|
+
test_files:
|
297
|
+
- spec/faraday/response_spec.rb
|
298
|
+
- spec/fixtures/countries.json
|
299
|
+
- spec/fixtures/countries.xml
|
300
|
+
- spec/fixtures/country.json
|
301
|
+
- spec/fixtures/country.xml
|
302
|
+
- spec/fixtures/event.json
|
303
|
+
- spec/fixtures/event.xml
|
304
|
+
- spec/fixtures/events.json
|
305
|
+
- spec/fixtures/events.xml
|
306
|
+
- spec/fixtures/language.json
|
307
|
+
- spec/fixtures/language.xml
|
308
|
+
- spec/fixtures/languages.json
|
309
|
+
- spec/fixtures/languages.xml
|
310
|
+
- spec/fixtures/quote.json
|
311
|
+
- spec/fixtures/quote.xml
|
312
|
+
- spec/fixtures/quotes.json
|
313
|
+
- spec/fixtures/quotes.xml
|
314
|
+
- spec/fixtures/rating_word.json
|
315
|
+
- spec/fixtures/rating_word.xml
|
316
|
+
- spec/fixtures/rating_words.json
|
317
|
+
- spec/fixtures/rating_words.xml
|
318
|
+
- spec/fixtures/speaker.json
|
319
|
+
- spec/fixtures/speaker.xml
|
320
|
+
- spec/fixtures/speakers.json
|
321
|
+
- spec/fixtures/speakers.xml
|
322
|
+
- spec/fixtures/speakers_by_talk.json
|
323
|
+
- spec/fixtures/subtitles.json
|
324
|
+
- spec/fixtures/tag.json
|
325
|
+
- spec/fixtures/tag.xml
|
326
|
+
- spec/fixtures/tags.json
|
327
|
+
- spec/fixtures/tags.xml
|
328
|
+
- spec/fixtures/talk.json
|
329
|
+
- spec/fixtures/talk.xml
|
330
|
+
- spec/fixtures/talks.json
|
331
|
+
- spec/fixtures/talks.xml
|
332
|
+
- spec/fixtures/theme.json
|
333
|
+
- spec/fixtures/theme.xml
|
334
|
+
- spec/fixtures/themes.json
|
335
|
+
- spec/fixtures/themes.xml
|
336
|
+
- spec/spec_helper.rb
|
337
|
+
- spec/ted_api/client/countries_spec.rb
|
338
|
+
- spec/ted_api/client/events_spec.rb
|
339
|
+
- spec/ted_api/client/languages_spec.rb
|
340
|
+
- spec/ted_api/client/quotes_spec.rb
|
341
|
+
- spec/ted_api/client/rating_words_spec.rb
|
342
|
+
- spec/ted_api/client/speakers_spec.rb
|
343
|
+
- spec/ted_api/client/tags_spec.rb
|
344
|
+
- spec/ted_api/client/talks_spec.rb
|
345
|
+
- spec/ted_api/client/themes_spec.rb
|
346
|
+
- spec/ted_api/client_spec.rb
|
347
|
+
- spec/ted_api_spec.rb
|