red5 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d84a79a3bcb4b6cca90a470703d6dca96f67c080
4
- data.tar.gz: 203496fc2fd5b6590d8cb20fd75bd2aeb28f2319
3
+ metadata.gz: 484ed21a62afcf8abba94288ca22245cb5f0544b
4
+ data.tar.gz: 24384bcb79425480730e2e2c247c47f6bc376f8f
5
5
  SHA512:
6
- metadata.gz: df3ef0cb1d6a0a11dd16dfff9267fbb9d684009e22f26617eca62272ef3a4d90501bc1d29d8c83fe3735954544da149ddbde5ff045ea1331afb8ca36a84f93a7
7
- data.tar.gz: 7931602b478f9b31dbccfeaf02bdcdc3da19345c8a998913f3ab556bc46e21ffe3d4c060b68ccd5f01976cf8874ca003ad574380ef337dcdeb742e525d1873f5
6
+ metadata.gz: 8cbc633ac1a8df28228699849459c9e19ea4d7d020bd4173c6380969a893f855fae86d3914fbc21bd983038c5fe47028a45ec69250f2013261cd5b32d3398521
7
+ data.tar.gz: 67f7b0272b2c4bd9d4cb338c71852dfadca33686d6ba94d6d3cbdaf7ce0765f98c324a513f417ab6c18957f1d5967bc87deb07c8393faa574e40ce49a903b436
data/Guardfile CHANGED
@@ -19,7 +19,6 @@
19
19
  guard :rspec, cmd: "bundle exec rspec" do
20
20
  require "guard/rspec/dsl"
21
21
  dsl = Guard::RSpec::Dsl.new(self)
22
-
23
22
  # Feel free to open issues for suggestions and improvements
24
23
 
25
24
  # RSpec files
data/README.md CHANGED
@@ -31,6 +31,14 @@ I've followed the [Star Wars API](http://swapi.co/documentation#intro) as closel
31
31
  expect(film['episode_id']).to eq 4
32
32
  end
33
33
 
34
+ ###Get everything
35
+
36
+ it 'finds ALL THE PEOPLE', :vcr do
37
+ everybody = People.all
38
+ expect(everybody.count).to eq 82
39
+ expect(everybody[0].class).to eq People
40
+ end
41
+
34
42
  ###Fetch the thing linked to by an attribute
35
43
 
36
44
  it 'fetches the species for a person', :vcr do
@@ -17,6 +17,28 @@ module Red5
17
17
  self.find 1
18
18
  end
19
19
 
20
+ def self.all
21
+ list = []
22
+ basename = self.name.split('::').last
23
+ slug = basename.downcase
24
+ resource = RestClient::Resource.new "http://swapi.co/api/#{slug}/?page=1"
25
+ has_more = true
26
+
27
+ while has_more
28
+ data = resource.get.body
29
+ j = JSON.parse data
30
+ list += j['results']
31
+
32
+ if j['next']
33
+ resource = RestClient::Resource.new j['next']
34
+ else
35
+ has_more = false
36
+ end
37
+ end
38
+
39
+ list.map { |i| self.new i }
40
+ end
41
+
20
42
  def initialize data
21
43
  @data = data
22
44
  @data['id'] = @data['url'].split('/').last.to_i
@@ -1,3 +1,3 @@
1
1
  module Red5
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Red5::VERSION
9
9
  spec.authors = ['pikesley']
10
10
  spec.email = ['sam@pikesley.org']
11
- spec.summary = %q{SWAPI bindings}
11
+ spec.summary = %q{Ruby bindings for the Star Wars API}
12
12
  spec.description = %q{}
13
13
  spec.homepage = ''
14
14
  spec.license = 'MIT'
@@ -0,0 +1,131 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/films/?page=1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Tue, 23 Dec 2014 22:51:30 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d9a2ad9192ef9595ab62707278353454b1419375088; expires=Wed, 23-Dec-15
31
+ 22:51:28 GMT; path=/; domain=.swapi.co; HttpOnly
32
+ X-Frame-Options:
33
+ - SAMEORIGIN
34
+ Allow:
35
+ - GET, HEAD, OPTIONS
36
+ Vary:
37
+ - Accept, Cookie
38
+ Via:
39
+ - 1.1 vegur
40
+ Server:
41
+ - cloudflare-nginx
42
+ Cf-Ray:
43
+ - 19d81fbe11ec0a72-LHR
44
+ Content-Encoding:
45
+ - gzip
46
+ body:
47
+ encoding: ASCII-8BIT
48
+ string: !binary |-
49
+ H4sIAAAAAAAAAwAAAP//rFZNbxs3EP0rg730spG88kcV3dzaiI24RZAYPbQp
50
+ AoocaQlR5ILkSlGD/vc+cleSi2SzPVSwYUvzyJl5M6v3vhTStTYWi5uysPwZ
51
+ /9jWmLJoPO+0a8PxvefQmoi3f3wpoo6Gi0VxS7/ynh5cw0VZcKODU/xJq2Jx
52
+ VRb40Gq7/iS92BtgHyPpQIIa9topciuSeqcN7YWffPQf7XtesqHQCMmh1k0o
53
+ KUSvN7giRVfebXG41kqxpaUIXFItdkx7Z1M81qw9rbQPkXZaRucPJNZC2xD7
54
+ MHHK9kYYIaOWdL9ttOecOf3etR6ZKOGWIqK7knJBKRYazYG2woo1K4oOhbFA
55
+ qSw959sbI2xIgXS8u/iHkAIgTG9FRJUsGmfLDLi7v31+SNEPz7fvSxKWhN86
56
+ j6tz8zljFFE7S3sda2Lr2nVNjduzz704Ugxu3CGdZRuRjlIJHE/tvGt9aHHj
57
+ 8vBVTUFbjQY86MFZ0PwOnYPzHHxiLcinEVDttkxi6YRXVHeZUZZPsylJtiE6
58
+ pZEfc0SGLuoMZtOTUYtIEvGQhtSfb9g1BpdaRdgmzCifW3lmhen2/K0xoc+H
59
+ CV7YKYWy0zCxP2/Y+TXTUytFKNJ6OtVKzhGBYb9tffwLQ9NyQ7/In4Ux7RYw
60
+ WQu0g3bT4hZ1jM1iOg170eiJdFP8mXZFTasp0N+Jz0bilyPxq5H49Uj8ZiT+
61
+ 40h8PhJ/PRKvLsYAYwxVYxRVYxxVY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qn/Hu9lOdb937aPV8q3ZT07pmz7Leu+7gcAAP//
128
+ AwDyB6/ALUUAAA==
129
+ http_version:
130
+ recorded_at: Tue, 23 Dec 2014 22:51:30 GMT
131
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,613 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/people/?page=1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*; q=0.5, application/xml"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Tue, 23 Dec 2014 22:44:04 GMT
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=da2118cc60d50c7ec0ff77c70ca1496a71419374643; expires=Wed, 23-Dec-15
31
+ 22:44:03 GMT; path=/; domain=.swapi.co; HttpOnly
32
+ X-Frame-Options:
33
+ - SAMEORIGIN
34
+ Allow:
35
+ - GET, HEAD, OPTIONS
36
+ Vary:
37
+ - Accept, Cookie
38
+ Via:
39
+ - 1.1 vegur
40
+ Server:
41
+ - cloudflare-nginx
42
+ Cf-Ray:
43
+ - 19d814deff7d0a72-LHR
44
+ Content-Encoding:
45
+ - gzip
46
+ body:
47
+ encoding: ASCII-8BIT
48
+ string: !binary |-
49
+ H4sIAAAAAAAAAwAAAP//1JRfb5swFMW/SuVnEv8LUJCqSm0fK23a8rJNU+WS
50
+ 22DF2MhAWVTtu8+GlAYW0u5xT+Bzji/34p/8gjLT6BqllyxAGn65N5TXdZli
51
+ XLWilMvMYPfAJZhSAb4uxRauGApQaeFZmqZCqW6UCpCFqlG1W/54QVoU4Orc
52
+ Nzu4+Lrbt0LtwLo9Ocht7r9AY1+iEJXLozj2lpD2ITPKWKc8KqM3Tqx2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qTY6nIc60+qxbyCp79lEM19HrwTQkYcwaUNH1ppiSc
70
+ fm6/XImO7vHsQv3wviy07X4FZeW90SYpcZOkvDdY4bFxIw3XcBmvyRY/elaz
71
+ +OW2JmcBI2SFvqjcpZLijIAOf6kWzvnt/AMAAP//AwArq018WhUAAA==
72
+ http_version:
73
+ recorded_at: Tue, 23 Dec 2014 22:44:04 GMT
74
+ - request:
75
+ method: get
76
+ uri: http://swapi.co/api/people/?page=2
77
+ body:
78
+ encoding: US-ASCII
79
+ string: ''
80
+ headers:
81
+ Accept:
82
+ - "*/*; q=0.5, application/xml"
83
+ Accept-Encoding:
84
+ - gzip, deflate
85
+ User-Agent:
86
+ - Ruby
87
+ response:
88
+ status:
89
+ code: 200
90
+ message: OK
91
+ headers:
92
+ Date:
93
+ - Tue, 23 Dec 2014 22:44:05 GMT
94
+ Content-Type:
95
+ - application/json
96
+ Transfer-Encoding:
97
+ - chunked
98
+ Connection:
99
+ - keep-alive
100
+ Set-Cookie:
101
+ - __cfduid=dcf4e94eadfc6421b04e29f696b0c22961419374644; expires=Wed, 23-Dec-15
102
+ 22:44:04 GMT; path=/; domain=.swapi.co; HttpOnly
103
+ X-Frame-Options:
104
+ - SAMEORIGIN
105
+ Allow:
106
+ - GET, HEAD, OPTIONS
107
+ Vary:
108
+ - Accept, Cookie
109
+ Via:
110
+ - 1.1 vegur
111
+ Server:
112
+ - cloudflare-nginx
113
+ Cf-Ray:
114
+ - 19d814e6af5d0a72-LHR
115
+ Content-Encoding:
116
+ - gzip
117
+ body:
118
+ encoding: ASCII-8BIT
119
+ string: !binary |-
120
+ H4sIAAAAAAAAAwAAAP//vJbdjpswEIVfJeI6i7ExhCBVVbeVWvW2kap2Va0M
121
+ mQQ3jkEGNo1WfffabBIgCT/bVM1N8MzBBp/PMzxbcVrKwgoDMrUk/NJXVlIU
122
+ WYhQvmMZt+MU6T+UQZoJQG8ztoY3rjW1MgVPPC3zMXqs9QryUhRa/vBsSbYF
123
+ fd87yTZcTr5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99+7qFKpf
140
+ WY4Lhzcj6jQ+nc8eD+749vHE64Xg0dbm7eFhhsKAJAVwsxYyiJmg1TKRUAHh
141
+ zANkU6qmPO/rTsq7Dm8S38MktLw3VmoXkm+plL70KOHLIHlHRuYyIG7OnsR5
142
+ 2lr2CAPkKx1zBXLdXn8BAAD//wMA+5YolsUUAAA=
143
+ http_version:
144
+ recorded_at: Tue, 23 Dec 2014 22:44:05 GMT
145
+ - request:
146
+ method: get
147
+ uri: http://swapi.co/api/people/?page=3
148
+ body:
149
+ encoding: US-ASCII
150
+ string: ''
151
+ headers:
152
+ Accept:
153
+ - "*/*; q=0.5, application/xml"
154
+ Accept-Encoding:
155
+ - gzip, deflate
156
+ User-Agent:
157
+ - Ruby
158
+ response:
159
+ status:
160
+ code: 200
161
+ message: OK
162
+ headers:
163
+ Date:
164
+ - Tue, 23 Dec 2014 22:44:06 GMT
165
+ Content-Type:
166
+ - application/json
167
+ Transfer-Encoding:
168
+ - chunked
169
+ Connection:
170
+ - keep-alive
171
+ Set-Cookie:
172
+ - __cfduid=de45737df85f6acc4529a4eb05a27b4371419374645; expires=Wed, 23-Dec-15
173
+ 22:44:05 GMT; path=/; domain=.swapi.co; HttpOnly
174
+ X-Frame-Options:
175
+ - SAMEORIGIN
176
+ Allow:
177
+ - GET, HEAD, OPTIONS
178
+ Vary:
179
+ - Accept, Cookie
180
+ Via:
181
+ - 1.1 vegur
182
+ Server:
183
+ - cloudflare-nginx
184
+ Cf-Ray:
185
+ - 19d814efb8720a72-LHR
186
+ Content-Encoding:
187
+ - gzip
188
+ body:
189
+ encoding: ASCII-8BIT
190
+ string: !binary |-
191
+ H4sIAAAAAAAAAwAAAP//tJPLTuswEIZfBWXdxpfEJxcJIXUBYs8Gjo6Qmw6N
192
+ hWNHtktBiHdnzCktqQhEQqyS+ef32DOf5jlp7MaEpC75LDHwiH9JG0JfE+K3
193
+ sldpYwl+SA+210DOermG0zyZJb2DB2U3foqfo9+B3+iA9r/PiZEd4LmFXcqT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FarL7txS1/L2mMr+NqD8XTRxElAfRd1dalyTgK9ccmmfv87/
211
+ AAAA//8DAA4yxH15EQAA
212
+ http_version:
213
+ recorded_at: Tue, 23 Dec 2014 22:44:06 GMT
214
+ - request:
215
+ method: get
216
+ uri: http://swapi.co/api/people/?page=4
217
+ body:
218
+ encoding: US-ASCII
219
+ string: ''
220
+ headers:
221
+ Accept:
222
+ - "*/*; q=0.5, application/xml"
223
+ Accept-Encoding:
224
+ - gzip, deflate
225
+ User-Agent:
226
+ - Ruby
227
+ response:
228
+ status:
229
+ code: 200
230
+ message: OK
231
+ headers:
232
+ Date:
233
+ - Tue, 23 Dec 2014 22:44:07 GMT
234
+ Content-Type:
235
+ - application/json
236
+ Transfer-Encoding:
237
+ - chunked
238
+ Connection:
239
+ - keep-alive
240
+ Set-Cookie:
241
+ - __cfduid=d0f3065763883e8928b4bc9c9781205e91419374646; expires=Wed, 23-Dec-15
242
+ 22:44:06 GMT; path=/; domain=.swapi.co; HttpOnly
243
+ X-Frame-Options:
244
+ - SAMEORIGIN
245
+ Allow:
246
+ - GET, HEAD, OPTIONS
247
+ Vary:
248
+ - Accept, Cookie
249
+ Via:
250
+ - 1.1 vegur
251
+ Server:
252
+ - cloudflare-nginx
253
+ Cf-Ray:
254
+ - 19d814f693ee0a72-LHR
255
+ Content-Encoding:
256
+ - gzip
257
+ body:
258
+ encoding: ASCII-8BIT
259
+ string: !binary |-
260
+ H4sIAAAAAAAAAwAAAP//pJNbS+wwFEb/ypDnmaZpm+kFRPBBwQfxgAieg0hs
261
+ t9NgmpQ0cc4g/neTudphHKs+tf322m2S1f2KSmWlQUUWjZGE/+4O1ca0Bcbd
262
+ nLU8KBV2F9yCagXg05bN4ISiMWo1vHBluyF87HgNnRXG4f9ekWQNuL4/lk8u
263
+ lBxdcikdUQOf1f77JPcNDev8y7PclxjXD6USSrvkUau557tnLrfhkyNcBgvY
264
+ ccKCix65NvXDApjP8ujs7M6FM5AV+KBhwkO1amCutKg+245gEkyHoww7+omL
265
+ xu/kILos4gSje7fEFkoOHnUPL1DzUiyfDjZu6jjOVs2G6a7m7bq91MAM+AVG
266
+ IUkmJJqQ/IZMC5oUNA6mJAvD8K8/gor3sSi8iUhB0oKGQZzSNWa1+GyvK3Vx
267
+ hNHbeCvryhoYXVip2aLviuxc5eG+K6mkP96eqkYZI6AazTSA9/jRmXYr31Nm
268
+ 5bNcCf+pNPINaeMjZXq8PN1TfhBdlzEhS/rDPzHUeFqEtKBpENN0mPEN9rXx
269
+ uGf8nEvejW6ZM2ObnvPUe1473+npD6lQ0qv80ZCS3w1pPlz3kRkd7sOddUKD
270
+ nGxG6wsf+WAfSc/HNaveAQAA///k101OwkAUAOCr9ABkbOePme506UITNXHl
271
+ YkAkDSM1BWJccCDOwcXkAYWZSjuvQGDhgqRpHt187/dzuYhuP7N3Y40HoqAj
272
+ b0E4PIcbpl3/t4KxDfQ0uKxofAxaelyn/Bo1D35nF3DD1inUHMMRMXKTYrWJ
273
+ o1IqiaYSlTgqQSeO8BLn3hQR/O6y8Wji5Y2W+7yR8Bxs3nlhxkN46+bN7qWX
274
+ OOLEWXu+tGnRlunxbZnqlFHCVVnfAU2G1pSe5lOeT6IXU3wZ62FSyveYimIw
275
+ VxMYhnmY8vQZ3ALzMlqMpkKSLi+LKqCFX5u6vtZsmBfRA6i4VrFTeDUTtAbs
276
+ z8r0f8RYyhTRMbK+yn04LKZ8sawfPdpsuXDBEuWcJDVgB8cscuW5HlejxsHv
277
+ OCMwbhxvXKRxQgSlKDBdhoXBtAf2aqbT3MNi3TCWNf1RFQtkOnCXVLviz8Da
278
+ /Pv8aLDhYdXON+PY8TXI1ereJJLjTg+N7pqQSQ7p86A3sz1/x01gpJU7LurQ
279
+ BMhOtDkpL9ExYe3Carbg2kQfxSVYGlMiFG7B1OhLka+u1/nb/BcAAP//AwAk
280
+ qbBCPRIAAA==
281
+ http_version:
282
+ recorded_at: Tue, 23 Dec 2014 22:44:07 GMT
283
+ - request:
284
+ method: get
285
+ uri: http://swapi.co/api/people/?page=5
286
+ body:
287
+ encoding: US-ASCII
288
+ string: ''
289
+ headers:
290
+ Accept:
291
+ - "*/*; q=0.5, application/xml"
292
+ Accept-Encoding:
293
+ - gzip, deflate
294
+ User-Agent:
295
+ - Ruby
296
+ response:
297
+ status:
298
+ code: 200
299
+ message: OK
300
+ headers:
301
+ Date:
302
+ - Tue, 23 Dec 2014 22:44:08 GMT
303
+ Content-Type:
304
+ - application/json
305
+ Transfer-Encoding:
306
+ - chunked
307
+ Connection:
308
+ - keep-alive
309
+ Set-Cookie:
310
+ - __cfduid=d2b4e4a98ccf9fdde229fdcd6d57146451419374647; expires=Wed, 23-Dec-15
311
+ 22:44:07 GMT; path=/; domain=.swapi.co; HttpOnly
312
+ X-Frame-Options:
313
+ - SAMEORIGIN
314
+ Allow:
315
+ - GET, HEAD, OPTIONS
316
+ Vary:
317
+ - Accept, Cookie
318
+ Via:
319
+ - 1.1 vegur
320
+ Server:
321
+ - cloudflare-nginx
322
+ Cf-Ray:
323
+ - 19d814fadb040a72-LHR
324
+ Content-Encoding:
325
+ - gzip
326
+ body:
327
+ encoding: ASCII-8BIT
328
+ string: !binary |-
329
+ H4sIAAAAAAAAAwAAAP//rJNtb5swEID/SuTPafyCSQBpmlT1a6VN7Zdtmqor
330
+ uQQLYyMDZVG1/z47TdIQ0ZW9fALfPYd99+BnktvOtCRLxJwY/OHfSNG2dUZp
331
+ 00OtFrml/kFrtLVG+rGGLX5YkjmpHT4p2zVTeOl5h02nW49/eyYGKvR1nztw
332
+ TTH7BAZK8EiBaluEA/Ak8ssKmvD1zpTG9ibkQbmH3GrrfPhRQ176YFMqcwqu
333
+ wYUY7vCVcy/Fj8q1xcMOIQSX4vr6iw9u0awxBCrQGHawFfbW6fVbXWkw2DY0
334
+ oR7eKF2FfkbJfZJKSr77I9aYKwyoXzxhoXJ9XDVtGIGqD8vcIbQYdheMyysu
335
+ rnh6z1dZHGcyWkQyYYx9DQ2u1RAT7F7wLJBsEaXpAeucfquRFz1SUPJzfhJy
336
+ V1RqdlfuetClH8u5keVfGtl4YoqR1aWRDf6hEz7dyfw36fh/KVtlki94yqco
337
+ k+yIva8sGii7AT/E2S10eqBrFb/qStilKWNNmOxAlPOHG3raoda2vxQVy3+7
338
+ OtFyuqeBiFH0kKZC7OkzU6P4Mb//8S9cjhacACr5vmJcd5IxFnSn4nj13tEd
339
+ TdYtz3X/AgAA//+8171ugzAUBeBXsTojhA3Ghq0Z2qlLW6mzEyyCFJmIgKr0
340
+ 6WuXEjCl4fKTLFlIIqRP595zHzbZFj3lRVmp3sA0xtfjOYR+rO266sdMmRBb
341
+ 5u0/zlZnQHV/ijquwzoxn1rCi+KAxR5xKSYwMAYGoxbY4/kg0JvcVYUNxngL
342
+ Rk1YR622h6pvtRdf0uTewgr40kkKxhofpdceh3ej1vHUo5gBqeHbM7SoX0VZ
343
+ ntD7WRY/KBdrFrXUGESdFvLsoAHwNohr53Nuoxn86gWtJp6FRv0YU9fjIQjN
344
+ rE8gGrP3Z5WgTX4ou2CR6au/YAEIzFA5yLD1wIZ36Ape0U282AIvFvvY5RRU
345
+ UQMcgL245fUsTqlQeZcLE9J6TVh+n3v9hoMxa5rsymiBdxM0PhMNe3oDxpi4
346
+ hDR1ZAStyeI4WmS3FqmQPvaSTIkiP1l23bsiBGWtHo76UyoHXfLV5csLoVLz
347
+ u7X9JpwYE/yiBX489n2XsaadjPiBSwz1LL8XsZPoI1NJZdnxTofhZmaO2kHv
348
+ 8z/X4FQp8r/UNwAAAP//Qo8pfE0UElsw5EajoZGVsYGehQlxdR2oGUNkNAIT
349
+ bG1sLQAAAP//AwBIotPN5BEAAA==
350
+ http_version:
351
+ recorded_at: Tue, 23 Dec 2014 22:44:08 GMT
352
+ - request:
353
+ method: get
354
+ uri: http://swapi.co/api/people/?page=6
355
+ body:
356
+ encoding: US-ASCII
357
+ string: ''
358
+ headers:
359
+ Accept:
360
+ - "*/*; q=0.5, application/xml"
361
+ Accept-Encoding:
362
+ - gzip, deflate
363
+ User-Agent:
364
+ - Ruby
365
+ response:
366
+ status:
367
+ code: 200
368
+ message: OK
369
+ headers:
370
+ Date:
371
+ - Tue, 23 Dec 2014 22:44:09 GMT
372
+ Content-Type:
373
+ - application/json
374
+ Transfer-Encoding:
375
+ - chunked
376
+ Connection:
377
+ - keep-alive
378
+ Set-Cookie:
379
+ - __cfduid=d9302f4828a809d9cadb4c1c06c275f291419374648; expires=Wed, 23-Dec-15
380
+ 22:44:08 GMT; path=/; domain=.swapi.co; HttpOnly
381
+ X-Frame-Options:
382
+ - SAMEORIGIN
383
+ Allow:
384
+ - GET, HEAD, OPTIONS
385
+ Vary:
386
+ - Accept, Cookie
387
+ Via:
388
+ - 1.1 vegur
389
+ Server:
390
+ - cloudflare-nginx
391
+ Cf-Ray:
392
+ - 19d814ffd4980a72-LHR
393
+ Content-Encoding:
394
+ - gzip
395
+ body:
396
+ encoding: ASCII-8BIT
397
+ string: !binary |-
398
+ H4sIAAAAAAAAA8zSTU/CMBgH8K9iegb6wiawxBhJ9GK8eVFjTNkeaUPXNl3n
399
+ JMbvbjsQnIrvB0/b/s+/a7rfHlBuau1RNmY9pOE+3CHhvc0wrhpu5SA3OFyw
400
+ BWMV4EPL53AwQj1kHdxJU1df6aeh76CqlQ/1qwekeQlh3ansHxWyf1brQoaG
401
+ ADkXcX86GYfHklfx5WMWR1y6m9wo40LSCOkhhNVC6k1ouYoZLGETLUEp04Rw
402
+ Jp0XN0vgMZ2w6fQihHPQBcSgXK0UpoTGOFXsOpDiGnyFkyEO7VupyniWd6vt
403
+ ECext3ucfjzex+g6HNFCLmHnRusxZqRt34GQuWrrca3nrhLSrh9zB9xDPB0j
404
+ NOlT1mfknJKMptmQDdhkSAi5jF+wkG9qjGZ0lKVkkDC2rtVO7fpQK/mUYfTY
405
+ e2Ht905k5U0Xev8FdPyrOtDa6DfOcwegX0HPFM8Xr51rvdCmidUfS7eC/0ya
406
+ /kJ6nKWjASPPhJ9IJ1+WHnakj8GLvVPjRUd6RLfSW5oO9zNjx3vmVs2O9zr7
407
+ a+8W6vfe3wNln4E+AQAA///E1kEKwjAQBdCr5ATFpJOkyQXcCrpxOWAqgWKg
408
+ 4v1tFWkiKZ1YofvZPf7/Mw8qlAVdGSqoJoNCAjp0NNtj13lMRBuYROXuGzOX
409
+ 3Qv2o28a3cd4tiTZukJLswVlvYLSWM4rpTiJsqa3sEwoj+juzrGT96/0TZbR
410
+ 4M6kMweaGd3Q4+1KIS0EBb2FKPwuWou3qKGJ0ttWJaJn7NF17BBCG4sKFaWz
411
+ QPTzWy3/UX8gbeikBWZyhRlYaCotJM1svlCfAAAA//9CjzNzlDgLyMkHVpD5
412
+ uLOgBVHFKTyrEWwLGVHa5qVScUrVlhBENe54xq4bpgCc+vAkBRNggWypZ2FK
413
+ ZPaFKSOcFCxQkoJvYrGCY25qSgpq3YrcLiYh90JrUzIqWBIThKkB1RIECTFu
414
+ TiDG8USnqTGwtaRnYgrLsvij04T4+tUSJTrdi1LTE4sUQioLMlA7OhagLjAs
415
+ d4PYhFu+2FpLtGn4ElsOo8cW3sjAag4i+xlb4sl+wIgAdlcM9IwtiGsPmcAK
416
+ bILxZWaAEl/O+UUph1eixJQpqBuKP+vBogElunLABpAXXyQ3b2kSY/iiw9DK
417
+ 2FLPDDRGQEx0EF0amgG7s7WxtQAAAAD//wMANPO1O4USAAA=
418
+ http_version:
419
+ recorded_at: Tue, 23 Dec 2014 22:44:09 GMT
420
+ - request:
421
+ method: get
422
+ uri: http://swapi.co/api/people/?page=7
423
+ body:
424
+ encoding: US-ASCII
425
+ string: ''
426
+ headers:
427
+ Accept:
428
+ - "*/*; q=0.5, application/xml"
429
+ Accept-Encoding:
430
+ - gzip, deflate
431
+ User-Agent:
432
+ - Ruby
433
+ response:
434
+ status:
435
+ code: 200
436
+ message: OK
437
+ headers:
438
+ Date:
439
+ - Tue, 23 Dec 2014 22:44:11 GMT
440
+ Content-Type:
441
+ - application/json
442
+ Transfer-Encoding:
443
+ - chunked
444
+ Connection:
445
+ - keep-alive
446
+ Set-Cookie:
447
+ - __cfduid=d8258284aa20d53e0b55dd1ec8eb6dd5c1419374649; expires=Wed, 23-Dec-15
448
+ 22:44:09 GMT; path=/; domain=.swapi.co; HttpOnly
449
+ X-Frame-Options:
450
+ - SAMEORIGIN
451
+ Allow:
452
+ - GET, HEAD, OPTIONS
453
+ Vary:
454
+ - Accept, Cookie
455
+ Via:
456
+ - 1.1 vegur
457
+ Server:
458
+ - cloudflare-nginx
459
+ Cf-Ray:
460
+ - 19d8150504370a72-LHR
461
+ Content-Encoding:
462
+ - gzip
463
+ body:
464
+ encoding: ASCII-8BIT
465
+ string: !binary |-
466
+ H4sIAAAAAAAAAwAAAP//xNbRbpswFAbgV0Fcp2AcDARpmpTtMlJ7sV1s01Q5
467
+ 5ASsGBsZaBZVe6A9x15sdkqSQkhDmq27Sjj+A5gvx/jRTmQtKjuO8MgW8EN/
468
+ s7OqKmLXLde0YE4iXf3hFiALDu77gqbwLrJHdqHggcm6HJIPdF5BWfNKx789
469
+ 2oLmoH/3gTNIU2tGVakDGbA0M5f3orE+zGlpzl2LlZBrYcYpU/eJ5FLp8lw9
470
+ FcsVE/viUid0DTZwyPEadGnOVJXdb4CaWoSn0y+6mIJYgCnklJtQJnNYS8UX
471
+ p6bEqYCqdD1Xh5eM52YyvcntoEtc+7u+wwISBiaqDx4gYwnfHZWVnnnGiuYw
472
+ UUArMFfHyPNvPHyD0SePxGQSo7EzIRFC6KuZ34IdxbAXe2FMkOMTr4nVip+a
473
+ yJNNgF3752ivcSfTlINVZWDNoCzBPMp+kwh1OYQU5gm2NFIFYIiec2yAc7nu
474
+ ghyMX01ygcnoheGgQ9YbbYZdHG3TrzANYh/FvjYNw2Gm48Gm45bprM6ZoIpa
475
+ n8Wi5qwlGhrFRpQEDu6azjlNVl3UPeC5JiNRp8mWcKEp+S+mkytMdauOnSAY
476
+ 2KdksKnfMp1SpVhZWrfLJWyf5140MOvsTvSoR6/z9NFber4RmOlDx/fRMLBd
477
+ r54HIy2wj1Llv3+1pchB6pI3HN+eoKPVBM8tqReDRf/Cy7uCaxJ7vhMM5Ap2
478
+ sfNcQYdLruqW1uTFd98607fRherbivQ5eejKzQjBw5X+2ip5hNib3o27pPmH
479
+ DGMm2DCH2AAOYMaDmcPOMsq4dad3pZVU1q1KqaBtdO+AfqpF+1bUinY2PX8A
480
+ AAD//8zXTQrDIBAF4Kt4gBAsjk70AF3kAoXuspCu2kDjosevBqZUEfxJF927
481
+ 8mNm3svDKzzm/hfsDajC8GmUSEevgFqfd6YIdV4et5WdrQtLMh9eUf+UUR1j
482
+ lKLeMYLqhgADp3GfmhqI+pCiI4jrcmcXu/l0EUGo0BwpoYQbmECs/hdTibBK
483
+ B7a3iYFl80p1q2g+gRI6ebJPaY4ETwcp+/yzP6Ftf6IBGAGpBxaEKa0WhZHH
484
+ Z9K+nH2y2c/a5pKyqL+Y/YVLnXNtkaary7VJ9Q0AAP//gtRHNIhVsotHcysj
485
+ Cysjcz0jE+K6DqCGKJFxBnRTbWwtAAAA//8DAGJEkLvlEQAA
486
+ http_version:
487
+ recorded_at: Tue, 23 Dec 2014 22:44:11 GMT
488
+ - request:
489
+ method: get
490
+ uri: http://swapi.co/api/people/?page=8
491
+ body:
492
+ encoding: US-ASCII
493
+ string: ''
494
+ headers:
495
+ Accept:
496
+ - "*/*; q=0.5, application/xml"
497
+ Accept-Encoding:
498
+ - gzip, deflate
499
+ User-Agent:
500
+ - Ruby
501
+ response:
502
+ status:
503
+ code: 200
504
+ message: OK
505
+ headers:
506
+ Date:
507
+ - Tue, 23 Dec 2014 22:44:12 GMT
508
+ Content-Type:
509
+ - application/json
510
+ Transfer-Encoding:
511
+ - chunked
512
+ Connection:
513
+ - keep-alive
514
+ Set-Cookie:
515
+ - __cfduid=de652616cdabfa7d6644a52cf66c6e8671419374651; expires=Wed, 23-Dec-15
516
+ 22:44:11 GMT; path=/; domain=.swapi.co; HttpOnly
517
+ X-Frame-Options:
518
+ - SAMEORIGIN
519
+ Allow:
520
+ - GET, HEAD, OPTIONS
521
+ Vary:
522
+ - Accept, Cookie
523
+ Via:
524
+ - 1.1 vegur
525
+ Server:
526
+ - cloudflare-nginx
527
+ Cf-Ray:
528
+ - 19d8151307aa0a72-LHR
529
+ Content-Encoding:
530
+ - gzip
531
+ body:
532
+ encoding: ASCII-8BIT
533
+ string: !binary |-
534
+ H4sIAAAAAAAAAwAAAP//1JPRTsIwFIZfhewa1rUbjC0x3htjjJKYaIwp5bA1
535
+ dO3SbSAhvruniCMIKIly4dW2/3w9O+2XrjxhGl176ZB1PQ2v+ObldV2mhFQL
536
+ XkpfGIIPUoIpFZDLkmdwkXhdr7Qwl6apTuFj5C1UjaoRf1p5mheA6655wTv3
537
+ DRZzkFnufs2Y613wyvUdDl2JS/sijDIWE200YFbNpG6zzMISM1hCG40VFzPM
538
+ xtLW+csSuAsbPdNmoTHOQE/ARQVXrl1uClgYqybH9qK4hroiNCBIT6Uq3DYO
539
+ ousi6RPvGacsQUg4im7KJGRreg65FGqNu7U1t1Uuy82nsMBrcPOxgEY9ynos
540
+ GNE4DYO0H/gRHQRB8OgOYSL3MEZTJB0WhxusserYVj+0xTjTW7cVNeKN7jys
541
+ j6oVRcOtqO3RntPWFP6/L5oy6tOkf5qv6GRf4Y6vKyM4TtS52blbdODu4ffK
542
+ FjkO9NXZFIk9Z43D/lxZcg5j9BfCWNqnfpKceME+sZ+FRTvC7qLeLXV2WlnJ
543
+ 4JCrdwAAAP//vNfbToQwEAbgV+kDEGzpgcKdV3rvJl6zCavELiTswezb23Iu
544
+ Vjvg4i0MhOTjn5l643Uq1DWvA1Trj7TF9JUAbcUWSbhb8MttMWNdy8ZoSkXI
545
+ cAJjk2A2brG9Zme0y477ysRjzFkyaY0MOsPyMkCO5jjq+NAWknEBJ4NHjdL1
546
+ WeM05VEocAxCkwSMJiy0l6xEz4VSNhkZyRbEzQH2VikTvXtrxZtosT9oSS0R
547
+ YgaLmISPstjWes+yD7QrLK3YhKrT4k3b9EEN3S9A/Yj7lxWEb9QYnaUDa/sT
548
+ rGCVKWMp1hsK7ldFDyt84EmL9aku8qs5PUxYIzKZeYSbg4DXdV9rIbdp11Nv
549
+ uVLVJ8B2qSx0VVlG11ZP6Jzl/f0Hgdu3T3CdDwwFzebxo39iJienIWX9SPT4
550
+ wydnMjtR1IfDxerBEWUTfmr+BYu/oXb6z+CBS85Cb8I28Z5zQ5OqpURKWRgB
551
+ d5wEPC4ltlfT7Ha8nNBjedYzM7cCS5oDeicWf8urE0w1z87AusI7i0VAMGK1
552
+ 3i8AAAD//8KQRo9PsuPL0srYVM/UgriS1ZLovroF0P21sbUAAAAA//8DAAOh
553
+ lk7JEQAA
554
+ http_version:
555
+ recorded_at: Tue, 23 Dec 2014 22:44:12 GMT
556
+ - request:
557
+ method: get
558
+ uri: http://swapi.co/api/people/?page=9
559
+ body:
560
+ encoding: US-ASCII
561
+ string: ''
562
+ headers:
563
+ Accept:
564
+ - "*/*; q=0.5, application/xml"
565
+ Accept-Encoding:
566
+ - gzip, deflate
567
+ User-Agent:
568
+ - Ruby
569
+ response:
570
+ status:
571
+ code: 200
572
+ message: OK
573
+ headers:
574
+ Date:
575
+ - Tue, 23 Dec 2014 22:44:12 GMT
576
+ Content-Type:
577
+ - application/json
578
+ Transfer-Encoding:
579
+ - chunked
580
+ Connection:
581
+ - keep-alive
582
+ Set-Cookie:
583
+ - __cfduid=d13b9acc796717a899b7b58a2fa0293961419374652; expires=Wed, 23-Dec-15
584
+ 22:44:12 GMT; path=/; domain=.swapi.co; HttpOnly
585
+ X-Frame-Options:
586
+ - SAMEORIGIN
587
+ Allow:
588
+ - GET, HEAD, OPTIONS
589
+ Vary:
590
+ - Accept, Cookie
591
+ Via:
592
+ - 1.1 vegur
593
+ Server:
594
+ - cloudflare-nginx
595
+ Cf-Ray:
596
+ - 19d8151a07900a72-LHR
597
+ Content-Encoding:
598
+ - gzip
599
+ body:
600
+ encoding: ASCII-8BIT
601
+ string: !binary |-
602
+ H4sIAAAAAAAAA5yR0W7CIBSGX8VwrYWitrXJsifwal5tMQbboxApEErtGuO7
603
+ D9R1idOk21U5//k46eE7oUI3yqE8o2Ok4NOfVCPlGBkLR6GbGuWIO2dyjOuW
604
+ GREVGvsPNqCNBPxq2B5eMjRGFupGOo9/nJBiFfh7b7IbLbW24NscxJ774ShO
605
+ A12xOkyehTNnwm4KLbX1idIq4PVBqD4zTIYMOuijlgsXsq2wjm86YCFs1EHp
606
+ Vvl4D6qEEO2gul7muoJWW1k+20cyBa7GCcGe3glZhVUeopcmngfueTvBaO3X
607
+ MFAICJN8cQQuCvld1Y7ZmgtzKwsLzEH4O0ri2SSmE0pWlORxlk/TKIkXhJD3
608
+ 8Ail+I3FeZzmcxLNFskNa6x8tuhVXEYxOo97VSuh1WgJpQ6v17uiJPlxlZEh
609
+ rvYWujtXW8mKwwBXfzQV04Gm7lU8RG9tPE0v9L9cTec5mUU0OBjiKhvsaupd
610
+ rc9fAAAA//8DANAFNAGrAwAA
611
+ http_version:
612
+ recorded_at: Tue, 23 Dec 2014 22:44:12 GMT
613
+ recorded_with: VCR 2.9.3
@@ -11,5 +11,11 @@ module Red5
11
11
  expect(film['title']).to eq 'A New Hope'
12
12
  expect(film['episode_id']).to eq 4
13
13
  end
14
+
15
+ it 'finds ALL THE FILMS (even the shitty ones)', :vcr do
16
+ corpus = Films.all
17
+ expect(corpus.count).to eq 6
18
+ expect(corpus[0].class).to eq Films
19
+ end
14
20
  end
15
21
  end
@@ -21,5 +21,11 @@ module Red5
21
21
  person = People.find 15 # Greedo
22
22
  expect(person.fetch_species[0]['name']).to eq 'Rodian'
23
23
  end
24
+
25
+ it 'finds ALL THE PEOPLE', :vcr do
26
+ everybody = People.all
27
+ expect(everybody.count).to eq 82
28
+ expect(everybody[0].class).to eq People
29
+ end
24
30
  end
25
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red5
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - pikesley
@@ -195,10 +195,12 @@ files:
195
195
  - spec/cassettes/Failure/404s/raises_an_exception_on_a_ludicrous_request.yml
196
196
  - spec/cassettes/Failure/404s/raises_an_exception_on_a_non-existent_thing.yml
197
197
  - spec/cassettes/Failure/Non-existent_attributes/raises_an_exception_on_a_bogus_lookup.yml
198
+ - spec/cassettes/Red5_Films/finds_ALL_THE_FILMS_even_the_shitty_ones_.yml
198
199
  - spec/cassettes/Red5_Films/finds_a_particular_film.yml
199
200
  - spec/cassettes/Red5_Films/has_OpenStruct-type_lookups.yml
200
201
  - spec/cassettes/Red5_Films/returns_a_film.yml
201
202
  - spec/cassettes/Red5_People/fetches_the_species_for_a_person.yml
203
+ - spec/cassettes/Red5_People/finds_ALL_THE_PEOPLE.yml
202
204
  - spec/cassettes/Red5_People/finds_a_particular_person.yml
203
205
  - spec/cassettes/Red5_People/has_an_id.yml
204
206
  - spec/cassettes/Red5_People/returns_a_person.yml
@@ -260,15 +262,17 @@ rubyforge_project:
260
262
  rubygems_version: 2.4.3
261
263
  signing_key:
262
264
  specification_version: 4
263
- summary: SWAPI bindings
265
+ summary: Ruby bindings for the Star Wars API
264
266
  test_files:
265
267
  - spec/cassettes/Failure/404s/raises_an_exception_on_a_ludicrous_request.yml
266
268
  - spec/cassettes/Failure/404s/raises_an_exception_on_a_non-existent_thing.yml
267
269
  - spec/cassettes/Failure/Non-existent_attributes/raises_an_exception_on_a_bogus_lookup.yml
270
+ - spec/cassettes/Red5_Films/finds_ALL_THE_FILMS_even_the_shitty_ones_.yml
268
271
  - spec/cassettes/Red5_Films/finds_a_particular_film.yml
269
272
  - spec/cassettes/Red5_Films/has_OpenStruct-type_lookups.yml
270
273
  - spec/cassettes/Red5_Films/returns_a_film.yml
271
274
  - spec/cassettes/Red5_People/fetches_the_species_for_a_person.yml
275
+ - spec/cassettes/Red5_People/finds_ALL_THE_PEOPLE.yml
272
276
  - spec/cassettes/Red5_People/finds_a_particular_person.yml
273
277
  - spec/cassettes/Red5_People/has_an_id.yml
274
278
  - spec/cassettes/Red5_People/returns_a_person.yml