red5 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +1 -0
  3. data/README.md +55 -1
  4. data/Rakefile +3 -1
  5. data/lib/red_5.rb +19 -0
  6. data/lib/red_5/exceptions/red_5_exception.rb +9 -0
  7. data/lib/red_5/helpers.rb +8 -0
  8. data/lib/red_5/models/entities.rb +54 -0
  9. data/lib/{red5 → red_5/models}/films.rb +1 -1
  10. data/lib/{red5 → red_5/models}/people.rb +1 -1
  11. data/lib/{red5 → red_5/models}/planets.rb +1 -1
  12. data/lib/{red5 → red_5/models}/species.rb +1 -1
  13. data/lib/{red5 → red_5/models}/starships.rb +1 -1
  14. data/lib/{red5 → red_5/models}/vehicles.rb +1 -1
  15. data/lib/{red5 → red_5}/root.rb +1 -1
  16. data/lib/red_5/version.rb +3 -0
  17. data/red5.gemspec +4 -1
  18. data/spec/cassettes/Failure/404s/raises_an_exception_on_a_ludicrous_request.yml +96 -0
  19. data/spec/cassettes/Failure/404s/raises_an_exception_on_a_non-existent_thing.yml +96 -0
  20. data/spec/cassettes/Failure/Non-existent_attributes/raises_an_exception_on_a_bogus_lookup.yml +101 -0
  21. data/spec/cassettes/Red5_Films/finds_a_particular_film.yml +111 -0
  22. data/spec/cassettes/Red5_Films/has_OpenStruct-type_lookups.yml +111 -0
  23. data/spec/cassettes/Red5_Films/returns_a_film.yml +111 -0
  24. data/spec/cassettes/Red5_People/fetches_the_species_for_a_person.yml +155 -0
  25. data/spec/cassettes/{Red_5_People/should_find_a_person.yml → Red5_People/finds_a_particular_person.yml} +13 -13
  26. data/spec/cassettes/Red5_People/has_an_id.yml +101 -0
  27. data/spec/cassettes/Red5_People/returns_a_person.yml +101 -0
  28. data/spec/cassettes/{Red_5_Planets/should_find_a_planet.yml → Red5_Planets/finds_a_planet.yml} +18 -18
  29. data/spec/cassettes/Red5_Species/fetches_the_homeworld_for_a_species.yml +157 -0
  30. data/spec/cassettes/Red5_Species/finds_a_homeworld_for_a_species.yml +101 -0
  31. data/spec/cassettes/Red5_Species/finds_a_species.yml +101 -0
  32. data/spec/cassettes/Red5_Starships/Failure/raises_an_exception_on_a_ludicrous_request.yml +96 -0
  33. data/spec/cassettes/Red5_Starships/Failure/raises_an_exception_on_a_non-existent_thing.yml +96 -0
  34. data/spec/cassettes/Red5_Starships/finds_a_starship.yml +102 -0
  35. data/spec/cassettes/Red5_Vehicles/finds_a_vehicle.yml +102 -0
  36. data/spec/cassettes/Red_5_Films/finds_a_particular_film.yml +111 -0
  37. data/spec/cassettes/Red_5_Films/returns_a_film.yml +111 -0
  38. data/spec/cassettes/Red_5_People/fetches_the_species_for_a_person.yml +155 -0
  39. data/spec/cassettes/Red_5_People/finds_a_particular_person.yml +101 -0
  40. data/spec/cassettes/Red_5_People/gets_the_species_for_a_person.yml +252 -0
  41. data/spec/cassettes/Red_5_People/has_an_id.yml +101 -0
  42. data/spec/cassettes/Red_5_People/returns_a_person.yml +101 -0
  43. data/spec/cassettes/Red_5_Species/fetches_the_homeworld_for_a_species.yml +157 -0
  44. data/spec/cassettes/Red_5_Species/finds_a_homeworld_for_a_species.yml +101 -0
  45. data/spec/cassettes/Red_5_Species/gets_the_homeworld_for_a_species.yml +157 -0
  46. data/spec/cassettes/Red_5_Starships/Failure/raises_an_exception_on_a_non-existent_thing.yml +96 -0
  47. data/spec/failure_spec.rb +31 -0
  48. data/spec/models/films_spec.rb +15 -0
  49. data/spec/models/people_spec.rb +25 -0
  50. data/spec/models/planets_spec.rb +10 -0
  51. data/spec/models/species_spec.rb +20 -0
  52. data/spec/models/starships_spec.rb +10 -0
  53. data/spec/models/vehicles_spec.rb +10 -0
  54. data/spec/red5_spec.rb +2 -45
  55. data/spec/spec_helper.rb +1 -1
  56. metadata +129 -17
  57. data/lib/red5.rb +0 -14
  58. data/lib/red5/entities.rb +0 -9
  59. data/lib/red5/version.rb +0 -3
@@ -0,0 +1,101 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/people/19
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: 301
19
+ message: MOVED PERMANENTLY
20
+ headers:
21
+ Date:
22
+ - Tue, 23 Dec 2014 14:23:49 GMT
23
+ Content-Type:
24
+ - text/html; charset=utf-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d03c807d851e5b927c724ffe8594c7b751419344628; expires=Wed, 23-Dec-15
31
+ 14:23:48 GMT; path=/; domain=.swapi.co; HttpOnly
32
+ Location:
33
+ - http://swapi.co/api/people/19/
34
+ X-Frame-Options:
35
+ - SAMEORIGIN
36
+ Via:
37
+ - 1.1 vegur
38
+ Server:
39
+ - cloudflare-nginx
40
+ Cf-Ray:
41
+ - 19d5381a7b620a78-LHR
42
+ body:
43
+ encoding: UTF-8
44
+ string: ''
45
+ http_version:
46
+ recorded_at: Tue, 23 Dec 2014 14:23:49 GMT
47
+ - request:
48
+ method: get
49
+ uri: http://swapi.co/api/people/19/
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ Accept:
55
+ - "*/*; q=0.5, application/xml"
56
+ Accept-Encoding:
57
+ - gzip, deflate
58
+ Cookie:
59
+ - __cfduid=d03c807d851e5b927c724ffe8594c7b751419344628; domain=.swapi.co
60
+ User-Agent:
61
+ - Ruby
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Date:
68
+ - Tue, 23 Dec 2014 14:23:49 GMT
69
+ Content-Type:
70
+ - application/json
71
+ Transfer-Encoding:
72
+ - chunked
73
+ Connection:
74
+ - keep-alive
75
+ X-Frame-Options:
76
+ - SAMEORIGIN
77
+ Allow:
78
+ - GET, HEAD, OPTIONS
79
+ Vary:
80
+ - Accept, Cookie
81
+ Via:
82
+ - 1.1 vegur
83
+ Server:
84
+ - cloudflare-nginx
85
+ Cf-Ray:
86
+ - 19d5381c9e8d0a78-LHR
87
+ Content-Encoding:
88
+ - gzip
89
+ body:
90
+ encoding: ASCII-8BIT
91
+ string: !binary |-
92
+ H4sIAAAAAAAAA3SQUU/DIBDHv8rCs/aArdX1I+zJhz5pzMLa2yClQIDaLMbv
93
+ 7jF1xsQlJOT/u99dDt6ZUxOylu1wXHXe+dWTj6Nxid0xjeakM9XEI6c4qZRK
94
+ ECVoZeK+99ZHQofoF0cwUeMVHskghmf89eyMhA4mZr0/oypsdqP76j6hG7Cg
95
+ SdmiaT/h4qMdCOmcQwuQFhVM1XugC4JVDnMC2QDZR2MnWu/lX/VSBAHslZYM
96
+ 2BssKoU31Ka3PyllFZM24eacqwBCXob1EVXGsqHkYnMvJJ1OiFY0bd1UdbPl
97
+ nD+XXxjMX03yTpL20Na8Wm/W39oc7a3Hog8WQWyBfXwCAAD//wMACtAQerQB
98
+ AAA=
99
+ http_version:
100
+ recorded_at: Tue, 23 Dec 2014 14:23:49 GMT
101
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,111 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/films/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: 301
19
+ message: MOVED PERMANENTLY
20
+ headers:
21
+ Date:
22
+ - Tue, 23 Dec 2014 13:53:57 GMT
23
+ Content-Type:
24
+ - text/html; charset=utf-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d5c05063b38e6303f826ba163d63e99f91419342836; expires=Wed, 23-Dec-15
31
+ 13:53:56 GMT; path=/; domain=.swapi.co; HttpOnly
32
+ Location:
33
+ - http://swapi.co/api/films/1/
34
+ X-Frame-Options:
35
+ - SAMEORIGIN
36
+ Via:
37
+ - 1.1 vegur
38
+ Server:
39
+ - cloudflare-nginx
40
+ Cf-Ray:
41
+ - 19d50c5af59e0a78-LHR
42
+ body:
43
+ encoding: UTF-8
44
+ string: ''
45
+ http_version:
46
+ recorded_at: Tue, 23 Dec 2014 13:53:57 GMT
47
+ - request:
48
+ method: get
49
+ uri: http://swapi.co/api/films/1/
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ Accept:
55
+ - "*/*; q=0.5, application/xml"
56
+ Accept-Encoding:
57
+ - gzip, deflate
58
+ Cookie:
59
+ - __cfduid=d5c05063b38e6303f826ba163d63e99f91419342836; domain=.swapi.co
60
+ User-Agent:
61
+ - Ruby
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Date:
68
+ - Tue, 23 Dec 2014 13:53:58 GMT
69
+ Content-Type:
70
+ - application/json
71
+ Transfer-Encoding:
72
+ - chunked
73
+ Connection:
74
+ - keep-alive
75
+ X-Frame-Options:
76
+ - SAMEORIGIN
77
+ Allow:
78
+ - GET, HEAD, OPTIONS
79
+ Vary:
80
+ - Accept, Cookie
81
+ Via:
82
+ - 1.1 vegur
83
+ Server:
84
+ - cloudflare-nginx
85
+ Cf-Ray:
86
+ - 19d50c5c4b100a78-LHR
87
+ Content-Encoding:
88
+ - gzip
89
+ body:
90
+ encoding: ASCII-8BIT
91
+ string: !binary |-
92
+ H4sIAAAAAAAAAwAAAP//hJNRb9NADMe/ipUXXqKWwIDRt4lNG2KgaextQ5N7
93
+ 5zbWkruT79JQ+PL4krKXqbtKUaX8bP/tv52/VeLUUbWqzuAHjXDlA1V1RYGj
94
+ t/TItlqd1JW+dOy2j0Zw7DT2awKOgBBI2FvwGzC84w5GlMWDPLhbWlMHMaCh
95
+ 2HKINcQk/KQlMt2I7zW5ZWvJwRoj1dDijmD0LvPUEgtsWGKCHZvkZQ+4RXYx
96
+ HTBQVrvEDk1iAxd9YKFJOT/ng6gS5Lg1Jp2uhqmhzGJgitCjwy1ZSF4bI9RW
97
+ yQhN1UOHLmaQ0+fCb2IGQ5e4x6RdEgbv6ing/OLs7irTn3dntzWgA5Tei5ae
98
+ hp8UEyb2DkZOLZDzw7aF4EeSaRYPltQbv8+55JLKQW6B0vM4N4PEQSuu9y96
99
+ iuxYBxC1R3PV5hudXD2f4DUxguQVQOt7Alx7FAvtrKxtSd5NDWaIyVtWfd2j
100
+ KszUd7qbgxktJjDKY17SIT+QD50WdRZEJ9CZ89uNEFnd7sG/rW7o936hP70p
101
+ q23nZer9XJKXLcH1YDAqCeLtYGgiqMv+Nkj6o0tj8wTfzRfsuqHXMNOijqPj
102
+ xmp1X7UphdVyGUcMvDB+qX/Lualls9ToV/i7An9f4CcF/qHAPxb4pwI/LfDP
103
+ Bd68LQWUHGpKFjUlj5qSSU3JpaZkQ1Py4VQP5Zee3/S9HT+qGb9yNYeA454c
104
+ Ama5/1/eUcHngJeS/wAAAP//jJbPCoMwDMbfZXelie3o+hw77aoVCw5E2G57
105
+ 90XtH2X7wNJbfrTJl6TpLwIvLQhUuiBQqYLgotkxsPN2zImglvISpd5+CO3o
106
+ oVDJjhsyE7CYMgGbLhN2S9/k24B9imb8BiUAyxABnNkIwKgTYFaHZbLJ2JJB
107
+ fmFFuiKuSN1JO25cQ7W1StZDTvJdOGIs2M1p2aZmc43Ya15+AP+u7cP4XAP/
108
+ fAEAAP//AwAhKm2rVggAAA==
109
+ http_version:
110
+ recorded_at: Tue, 23 Dec 2014 13:53:58 GMT
111
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,111 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/films/2
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: 301
19
+ message: MOVED PERMANENTLY
20
+ headers:
21
+ Date:
22
+ - Tue, 23 Dec 2014 14:36:57 GMT
23
+ Content-Type:
24
+ - text/html; charset=utf-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d2fe2dfbf4c2c57a775fbe311bec700ab1419345416; expires=Wed, 23-Dec-15
31
+ 14:36:56 GMT; path=/; domain=.swapi.co; HttpOnly
32
+ Location:
33
+ - http://swapi.co/api/films/2/
34
+ X-Frame-Options:
35
+ - SAMEORIGIN
36
+ Via:
37
+ - 1.1 vegur
38
+ Server:
39
+ - cloudflare-nginx
40
+ Cf-Ray:
41
+ - 19d54b5782210a72-LHR
42
+ body:
43
+ encoding: UTF-8
44
+ string: ''
45
+ http_version:
46
+ recorded_at: Tue, 23 Dec 2014 14:36:57 GMT
47
+ - request:
48
+ method: get
49
+ uri: http://swapi.co/api/films/2/
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ Accept:
55
+ - "*/*; q=0.5, application/xml"
56
+ Accept-Encoding:
57
+ - gzip, deflate
58
+ Cookie:
59
+ - __cfduid=d2fe2dfbf4c2c57a775fbe311bec700ab1419345416; domain=.swapi.co
60
+ User-Agent:
61
+ - Ruby
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Date:
68
+ - Tue, 23 Dec 2014 14:36:57 GMT
69
+ Content-Type:
70
+ - application/json
71
+ Transfer-Encoding:
72
+ - chunked
73
+ Connection:
74
+ - keep-alive
75
+ X-Frame-Options:
76
+ - SAMEORIGIN
77
+ Allow:
78
+ - GET, HEAD, OPTIONS
79
+ Vary:
80
+ - Accept, Cookie
81
+ Via:
82
+ - 1.1 vegur
83
+ Server:
84
+ - cloudflare-nginx
85
+ Cf-Ray:
86
+ - 19d54b58d7fa0a72-LHR
87
+ Content-Encoding:
88
+ - gzip
89
+ body:
90
+ encoding: ASCII-8BIT
91
+ string: !binary |-
92
+ H4sIAAAAAAAAA3xSwY7UMAz9Favn0VQgcZkbsCtYLVx2ERdWWrmJ21hN48hJ
93
+ Zyj8PE5hVnChUlU179l+7zk/u8o1UnfqvgSC2yWzEjxW5ZkKvEM3d4eOMhfx
94
+ 9My+O705dJIpcZqeneIlWuFdBS6A4FFnqLwQjKJQAz3pU3qggWJkSUd4G2uQ
95
+ dQoNghvCGhrhsaJCwAIDUQJPpaps5A8Nu1syKWMEO5NcjHYm8MpnY/7dvw10
96
+ pndUWRrA1pG9p9QYAxYCTB7yqmUl3wgLoFMppeFNzYQRv2/H9tve2zN6c7gL
97
+ 9Uroreqq5ap5jET1YLYnlTWDjDadyMvSCCNPoZIWiFY5bPBpnS3VebtgnEkb
98
+ ozk2rzhELsFICIkuUMgp1RfVstsEpUUqATuCi2j0Dbd5H6WGF8lte3TmCFHU
99
+ ww1qDfDVhOsepAyFSrExF7bzkdNub5M1Tbufq7LDvgnPJWN1Jut3PrIWy680
100
+ j3+kZJXB8uZU5RrhaGu0qKxqJ1oHR0d77P54u1Ouira7omdOcG/RhERqmHXy
101
+ q6OGfUDd4H6tPw7wwG6Gz+49xrguxnIBFV1LtDt960Kt+dT35YKZj056+/SZ
102
+ JEfqX/XG/g/++h/8FwAAAP//jJZNDoIwEIXvwl7sDFCQc7AycUGwxiZoiFF3
103
+ 3t0KhRL1MSTs3pfOz5sp/dUTQU8FPRN0UhIgZUBSClQIAEs5sNhFqY0sVcFS
104
+ FSx1kvU2Orj5aeurueOxGOQF3zyAw3lASwDnfUJup91w2w6mNAELwzBjoBcz
105
+ BtoxY2CBgcG+z5gVsbD7gVmB0NDQpznbpjWwn6O+sBkTgkc/nAKNDgjcsIDs
106
+ RKQYxqUzjcXFeRnfayOAbfEAbrgHYN0jMNjhflD13biXQMSK0g2x+yqiknXJ
107
+ aawzrZTau5PM0X5hWUVJqfIyS+KkGLHH7fOE+Bf2ZNtLX9frDQAA//8DAO9M
108
+ e/ykCAAA
109
+ http_version:
110
+ recorded_at: Tue, 23 Dec 2014 14:36:57 GMT
111
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,111 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/films/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: 301
19
+ message: MOVED PERMANENTLY
20
+ headers:
21
+ Date:
22
+ - Tue, 23 Dec 2014 13:53:58 GMT
23
+ Content-Type:
24
+ - text/html; charset=utf-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d68d6ec494a84d8b8b5d6b02d767c3ab71419342838; expires=Wed, 23-Dec-15
31
+ 13:53:58 GMT; path=/; domain=.swapi.co; HttpOnly
32
+ Location:
33
+ - http://swapi.co/api/films/1/
34
+ X-Frame-Options:
35
+ - SAMEORIGIN
36
+ Via:
37
+ - 1.1 vegur
38
+ Server:
39
+ - cloudflare-nginx
40
+ Cf-Ray:
41
+ - 19d50c6458350a72-LHR
42
+ body:
43
+ encoding: UTF-8
44
+ string: ''
45
+ http_version:
46
+ recorded_at: Tue, 23 Dec 2014 13:53:58 GMT
47
+ - request:
48
+ method: get
49
+ uri: http://swapi.co/api/films/1/
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ Accept:
55
+ - "*/*; q=0.5, application/xml"
56
+ Accept-Encoding:
57
+ - gzip, deflate
58
+ Cookie:
59
+ - __cfduid=d68d6ec494a84d8b8b5d6b02d767c3ab71419342838; domain=.swapi.co
60
+ User-Agent:
61
+ - Ruby
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Date:
68
+ - Tue, 23 Dec 2014 13:53:59 GMT
69
+ Content-Type:
70
+ - application/json
71
+ Transfer-Encoding:
72
+ - chunked
73
+ Connection:
74
+ - keep-alive
75
+ X-Frame-Options:
76
+ - SAMEORIGIN
77
+ Allow:
78
+ - GET, HEAD, OPTIONS
79
+ Vary:
80
+ - Accept, Cookie
81
+ Via:
82
+ - 1.1 vegur
83
+ Server:
84
+ - cloudflare-nginx
85
+ Cf-Ray:
86
+ - 19d50c6667230a72-LHR
87
+ Content-Encoding:
88
+ - gzip
89
+ body:
90
+ encoding: ASCII-8BIT
91
+ string: !binary |-
92
+ H4sIAAAAAAAAAwAAAP//hJNRb9NADMe/ipUXXqKWwIDRt4lNG2KgaextQ5N7
93
+ 5zbWkruT79JQ+PL4krKXqbtKUaX8bP/tv52/VeLUUbWqzuAHjXDlA1V1RYGj
94
+ t/TItlqd1JW+dOy2j0Zw7DT2awKOgBBI2FvwGzC84w5GlMWDPLhbWlMHMaCh
95
+ 2HKINcQk/KQlMt2I7zW5ZWvJwRoj1dDijmD0LvPUEgtsWGKCHZvkZQ+4RXYx
96
+ HTBQVrvEDk1iAxd9YKFJOT/ng6gS5Lg1Jp2uhqmhzGJgitCjwy1ZSF4bI9RW
97
+ yQhN1UOHLmaQ0+fCb2IGQ5e4x6RdEgbv6ing/OLs7irTn3dntzWgA5Tei5ae
98
+ hp8UEyb2DkZOLZDzw7aF4EeSaRYPltQbv8+55JLKQW6B0vM4N4PEQSuu9y96
99
+ iuxYBxC1R3PV5hudXD2f4DUxguQVQOt7Alx7FAvtrKxtSd5NDWaIyVtWfd2j
100
+ KszUd7qbgxktJjDKY17SIT+QD50WdRZEJ9CZ89uNEFnd7sG/rW7o936hP70p
101
+ q23nZer9XJKXLcH1YDAqCeLtYGgiqMv+Nkj6o0tj8wTfzRfsuqHXMNOijqPj
102
+ xmp1X7UphdVyGUcMvDB+qX/Lualls9ToV/i7An9f4CcF/qHAPxb4pwI/LfDP
103
+ Bd68LQWUHGpKFjUlj5qSSU3JpaZkQ1Py4VQP5Zee3/S9HT+qGb9yNYeA454c
104
+ Ama5/1/eUcHngJeS/wAAAP//jJbPCoMwDMbfZXelie3o+hw77aoVCw5E2G57
105
+ 90XtH2X7wNJbfrTJl6TpLwIvLQhUuiBQqYLgotkxsPN2zImglvISpd5+CO3o
106
+ oVDJjhsyE7CYMgGbLhN2S9/k24B9imb8BiUAyxABnNkIwKgTYFaHZbLJ2JJB
107
+ fmFFuiKuSN1JO25cQ7W1StZDTvJdOGIs2M1p2aZmc43Ya15+AP+u7cP4XAP/
108
+ fAEAAP//AwAhKm2rVggAAA==
109
+ http_version:
110
+ recorded_at: Tue, 23 Dec 2014 13:53:59 GMT
111
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,155 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://swapi.co/api/people/15
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: 301
19
+ message: MOVED PERMANENTLY
20
+ headers:
21
+ Date:
22
+ - Tue, 23 Dec 2014 13:54:04 GMT
23
+ Content-Type:
24
+ - text/html; charset=utf-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Set-Cookie:
30
+ - __cfduid=d7afcd21ee5027456eba2d5c8f27f97a81419342843; expires=Wed, 23-Dec-15
31
+ 13:54:03 GMT; path=/; domain=.swapi.co; HttpOnly
32
+ Location:
33
+ - http://swapi.co/api/people/15/
34
+ X-Frame-Options:
35
+ - SAMEORIGIN
36
+ Via:
37
+ - 1.1 vegur
38
+ Server:
39
+ - cloudflare-nginx
40
+ Cf-Ray:
41
+ - 19d50c868cf30a78-LHR
42
+ body:
43
+ encoding: UTF-8
44
+ string: ''
45
+ http_version:
46
+ recorded_at: Tue, 23 Dec 2014 13:54:04 GMT
47
+ - request:
48
+ method: get
49
+ uri: http://swapi.co/api/people/15/
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ Accept:
55
+ - "*/*; q=0.5, application/xml"
56
+ Accept-Encoding:
57
+ - gzip, deflate
58
+ Cookie:
59
+ - __cfduid=d7afcd21ee5027456eba2d5c8f27f97a81419342843; domain=.swapi.co
60
+ User-Agent:
61
+ - Ruby
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Date:
68
+ - Tue, 23 Dec 2014 13:54:04 GMT
69
+ Content-Type:
70
+ - application/json
71
+ Transfer-Encoding:
72
+ - chunked
73
+ Connection:
74
+ - keep-alive
75
+ X-Frame-Options:
76
+ - SAMEORIGIN
77
+ Allow:
78
+ - GET, HEAD, OPTIONS
79
+ Vary:
80
+ - Accept, Cookie
81
+ Via:
82
+ - 1.1 vegur
83
+ Server:
84
+ - cloudflare-nginx
85
+ Cf-Ray:
86
+ - 19d50c873c6f0a78-LHR
87
+ Content-Encoding:
88
+ - gzip
89
+ body:
90
+ encoding: ASCII-8BIT
91
+ string: !binary |-
92
+ H4sIAAAAAAAAA3SQwWoDIRRF/8V1k6ej6cAss8kPZNOWEozzOkocFbUNofTf
93
+ +xyGQKFZyT3vqFe/WdAzsoEdMuIY2ROz6CZbiYheUpx1KRR61Uba5ZOJPmYi
94
+ ATShcnHhjiY6IxDEG97Z2WtzIXZ2udrTDXWDSu33LwQnDCM2MGuP7YI44zVm
95
+ PxKytaYBoFx1clsTgRZIXgesBToJZH84P1O3t3/VZQgC2DuVTGgcPlTXMahF
96
+ /kLrjF/strXqXKxLazQZdcVWr+NCbUS3Efwo+oHLQfKtlIpz/tp+YHR/tY4f
97
+ OzGQuWva86p9Zv/opRiTRxA7YD+/AAAA//8DAARbVvykAQAA
98
+ http_version:
99
+ recorded_at: Tue, 23 Dec 2014 13:54:04 GMT
100
+ - request:
101
+ method: get
102
+ uri: http://swapi.co/api/species/4/
103
+ body:
104
+ encoding: US-ASCII
105
+ string: ''
106
+ headers:
107
+ Accept:
108
+ - "*/*; q=0.5, application/xml"
109
+ Accept-Encoding:
110
+ - gzip, deflate
111
+ User-Agent:
112
+ - Ruby
113
+ response:
114
+ status:
115
+ code: 200
116
+ message: OK
117
+ headers:
118
+ Date:
119
+ - Tue, 23 Dec 2014 13:54:05 GMT
120
+ Content-Type:
121
+ - application/json
122
+ Transfer-Encoding:
123
+ - chunked
124
+ Connection:
125
+ - keep-alive
126
+ Set-Cookie:
127
+ - __cfduid=d48c121b2a779bcdea2158a82e38ba8f01419342844; expires=Wed, 23-Dec-15
128
+ 13:54:04 GMT; path=/; domain=.swapi.co; HttpOnly
129
+ X-Frame-Options:
130
+ - SAMEORIGIN
131
+ Allow:
132
+ - GET, HEAD, OPTIONS
133
+ Vary:
134
+ - Accept, Cookie
135
+ Via:
136
+ - 1.1 vegur
137
+ Server:
138
+ - cloudflare-nginx
139
+ Cf-Ray:
140
+ - 19d50c8a6f880a78-LHR
141
+ Content-Encoding:
142
+ - gzip
143
+ body:
144
+ encoding: ASCII-8BIT
145
+ string: !binary |-
146
+ H4sIAAAAAAAAAwAAAP//dI9PSwMxEMW/iuTcNn+6bWGPXrxLT4qUaXa6OzRN
147
+ QiZrEfG7O1uVKthDCHm/lzfz3lWEE6pWPaaOIKqZ8gGY6UAeKqUohDFWkiOs
148
+ Q6Y+/oCCuVL4+gWvWKDH3YDUD1Wg3RiR+Uhx51NIhUXrC2Kc3e3DiMIGoHJl
149
+ UYNo+IZXaR/AH39lBzogZ5hGj/EY03kaPKQTnlMJnahDrbnVms+QaeGTlkvn
150
+ ABEra7fU4pZHP0qWmB8gSBF/dw9MXlDGlIOA5/9jLlTblVYvM3WgcOJb1gvU
151
+ 9mL0BaHitJsztplbN7dmazetWbVuvWg21hjzNPXu6K/Nma2z7XLdNm5hm+bb
152
+ NpZwoyZn9ISsG60+PgEAAP//AwBq5k+u1AEAAA==
153
+ http_version:
154
+ recorded_at: Tue, 23 Dec 2014 13:54:04 GMT
155
+ recorded_with: VCR 2.9.3