clever-ruby 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +13 -5
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/lib/clever-ruby.rb +1 -0
  5. data/lib/clever-ruby/api_operations/list.rb +24 -0
  6. data/lib/clever-ruby/api_operations/pagelist.rb +6 -2
  7. data/lib/clever-ruby/api_operations/results_list.rb +20 -0
  8. data/lib/clever-ruby/util.rb +4 -0
  9. data/lib/clever-ruby/version.rb +1 -1
  10. data/test/data/vcr_cassettes/district_count.yml +44 -0
  11. data/test/data/vcr_cassettes/district_find_by_page.yml +85 -0
  12. data/test/data/vcr_cassettes/district_find_multiple.yml +85 -0
  13. data/test/data/vcr_cassettes/district_find_one.yml +85 -0
  14. data/test/data/vcr_cassettes/districts.yml +46 -5
  15. data/test/data/vcr_cassettes/districts_event_pages.yml +134 -134
  16. data/test/data/vcr_cassettes/districts_events.yml +44 -44
  17. data/test/data/vcr_cassettes/districts_school_pages.yml +50 -50
  18. data/test/data/vcr_cassettes/districts_schools.yml +44 -44
  19. data/test/data/vcr_cassettes/districts_section_pages.yml +303 -303
  20. data/test/data/vcr_cassettes/districts_sections.yml +44 -44
  21. data/test/data/vcr_cassettes/districts_student_pages.yml +184 -184
  22. data/test/data/vcr_cassettes/districts_students.yml +44 -44
  23. data/test/data/vcr_cassettes/districts_students_filtered.yml +25 -25
  24. data/test/data/vcr_cassettes/districts_teacher_pages.yml +100 -100
  25. data/test/data/vcr_cassettes/districts_teachers.yml +44 -44
  26. data/test/data/vcr_cassettes/error_handling.yml +24 -24
  27. data/test/data/vcr_cassettes/event_count.yml +44 -0
  28. data/test/data/vcr_cassettes/event_find_by_page.yml +110 -0
  29. data/test/data/vcr_cassettes/event_find_multiple.yml +124 -0
  30. data/test/data/vcr_cassettes/event_find_one.yml +114 -0
  31. data/test/data/vcr_cassettes/events.yml +110 -0
  32. data/test/data/vcr_cassettes/school_count.yml +44 -0
  33. data/test/data/vcr_cassettes/school_find_by_page.yml +96 -0
  34. data/test/data/vcr_cassettes/school_find_multiple.yml +104 -0
  35. data/test/data/vcr_cassettes/school_find_one.yml +99 -0
  36. data/test/data/vcr_cassettes/schools.yml +48 -7
  37. data/test/data/vcr_cassettes/schools_optional_attributes.yml +7 -7
  38. data/test/data/vcr_cassettes/section_count.yml +44 -0
  39. data/test/data/vcr_cassettes/section_find_by_page.yml +1146 -0
  40. data/test/data/vcr_cassettes/section_find_multiple.yml +147 -0
  41. data/test/data/vcr_cassettes/section_find_one.yml +352 -0
  42. data/test/data/vcr_cassettes/sections.yml +69 -28
  43. data/test/data/vcr_cassettes/student_count.yml +44 -0
  44. data/test/data/vcr_cassettes/student_find_by_page.yml +1171 -0
  45. data/test/data/vcr_cassettes/student_find_multiple.yml +111 -0
  46. data/test/data/vcr_cassettes/student_find_one.yml +160 -0
  47. data/test/data/vcr_cassettes/students.yml +118 -77
  48. data/test/data/vcr_cassettes/teacher_count.yml +44 -0
  49. data/test/data/vcr_cassettes/teacher_find_by_page.yml +176 -0
  50. data/test/data/vcr_cassettes/teacher_find_multiple.yml +119 -0
  51. data/test/data/vcr_cassettes/teacher_find_one.yml +177 -0
  52. data/test/data/vcr_cassettes/teachers.yml +15 -3712
  53. data/test/integration/api_operations/list_test.rb +84 -28
  54. metadata +82 -30
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://DEMO_KEY:@api.clever.com/v1.1/schools?count=true
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
+ Access-Control-Allow-Headers:
22
+ - Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
23
+ Access-Control-Allow-Methods:
24
+ - GET,PATCH,POST,DELETE
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Date:
30
+ - Tue, 09 Sep 2014 21:48:50 GMT
31
+ Server:
32
+ - nginx/1.4.7
33
+ X-Powered-By:
34
+ - Express
35
+ Content-Length:
36
+ - '69'
37
+ Connection:
38
+ - keep-alive
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"count":3,"links":[{"rel":"self","uri":"/v1.1/schools?count=true"}]}'
42
+ http_version:
43
+ recorded_at: Tue, 09 Sep 2014 21:48:50 GMT
44
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,96 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://DEMO_KEY:@api.clever.com/v1.1/schools
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
+ Access-Control-Allow-Headers:
22
+ - Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
23
+ Access-Control-Allow-Methods:
24
+ - GET,PATCH,POST,DELETE
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Date:
30
+ - Tue, 09 Sep 2014 21:48:54 GMT
31
+ Etag:
32
+ - '"1408105812"'
33
+ Server:
34
+ - nginx/1.4.7
35
+ X-Powered-By:
36
+ - Express
37
+ Content-Length:
38
+ - '1764'
39
+ Connection:
40
+ - keep-alive
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"data":[{"data":{"created":"2014-02-26T21:14:56.662Z","district":"4fd43cc56d11340000000005","high_grade":"12","last_modified":"2014-02-26T21:14:56.665Z","location":{"address":"350
44
+ 5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
45
+ High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
46
+ Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"uri":"/v1.1/schools/530e595026403103360ff9fd"},{"data":{"created":"2014-02-26T21:14:56.668Z","district":"4fd43cc56d11340000000005","high_grade":"5","last_modified":"2014-02-26T21:14:56.670Z","location":{"address":"110
47
+ Pineapple Street","city":"Brooklyn","state":"NY","zip":"11201"},"low_grade":"Kindergarten","name":"Clever
48
+ Elementary School","nces_id":"360007000000","phone":"(718) 555-4567","principal":{"name":"Cecilia
49
+ Roderick","email":"ceciliar@mailinator.com"},"school_number":"13K123","sis_id":"13K123","state_id":"30890","id":"530e595026403103360ff9fe"},"uri":"/v1.1/schools/530e595026403103360ff9fe"},{"data":{"created":"2014-02-26T21:14:56.671Z","district":"4fd43cc56d11340000000005","high_grade":"8","last_modified":"2014-02-26T21:14:56.673Z","location":{"address":"322
50
+ Old Beach 88th Street","city":"Rockaway Beach","state":"NY","zip":"11693"},"low_grade":"6","name":"Clever
51
+ Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
52
+ Springsteen","email":"lspringsteen@mailinator.com"},"school_number":"27Q321","sis_id":"27Q321","state_id":"412","id":"530e595026403103360ff9ff"},"uri":"/v1.1/schools/530e595026403103360ff9ff"}],"paging":{"current":1,"total":1,"count":3},"links":[{"rel":"self","uri":"/v1.1/schools"}]}'
53
+ http_version:
54
+ recorded_at: Tue, 09 Sep 2014 21:48:54 GMT
55
+ - request:
56
+ method: get
57
+ uri: https://DEMO_KEY:@api.clever.com/v1.1/schools?count=true
58
+ body:
59
+ encoding: US-ASCII
60
+ string: ''
61
+ headers:
62
+ Accept:
63
+ - "*/*; q=0.5, application/xml"
64
+ Accept-Encoding:
65
+ - gzip, deflate
66
+ User-Agent:
67
+ - Ruby
68
+ response:
69
+ status:
70
+ code: 200
71
+ message: OK
72
+ headers:
73
+ Access-Control-Allow-Headers:
74
+ - Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
75
+ Access-Control-Allow-Methods:
76
+ - GET,PATCH,POST,DELETE
77
+ Access-Control-Allow-Origin:
78
+ - "*"
79
+ Content-Type:
80
+ - application/json; charset=utf-8
81
+ Date:
82
+ - Tue, 09 Sep 2014 21:48:54 GMT
83
+ Server:
84
+ - nginx/1.4.7
85
+ X-Powered-By:
86
+ - Express
87
+ Content-Length:
88
+ - '69'
89
+ Connection:
90
+ - keep-alive
91
+ body:
92
+ encoding: UTF-8
93
+ string: '{"count":3,"links":[{"rel":"self","uri":"/v1.1/schools?count=true"}]}'
94
+ http_version:
95
+ recorded_at: Tue, 09 Sep 2014 21:48:54 GMT
96
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,104 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://DEMO_KEY:@api.clever.com/v1.1/schools?limit=20
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
+ Access-Control-Allow-Headers:
22
+ - Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
23
+ Access-Control-Allow-Methods:
24
+ - GET,PATCH,POST,DELETE
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Date:
30
+ - Tue, 09 Sep 2014 21:48:54 GMT
31
+ Etag:
32
+ - '"275883657"'
33
+ Server:
34
+ - nginx/1.4.7
35
+ X-Powered-By:
36
+ - Express
37
+ Content-Length:
38
+ - '1773'
39
+ Connection:
40
+ - keep-alive
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"data":[{"data":{"created":"2014-02-26T21:14:56.662Z","district":"4fd43cc56d11340000000005","high_grade":"12","last_modified":"2014-02-26T21:14:56.665Z","location":{"address":"350
44
+ 5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
45
+ High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
46
+ Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"uri":"/v1.1/schools/530e595026403103360ff9fd"},{"data":{"created":"2014-02-26T21:14:56.668Z","district":"4fd43cc56d11340000000005","high_grade":"5","last_modified":"2014-02-26T21:14:56.670Z","location":{"address":"110
47
+ Pineapple Street","city":"Brooklyn","state":"NY","zip":"11201"},"low_grade":"Kindergarten","name":"Clever
48
+ Elementary School","nces_id":"360007000000","phone":"(718) 555-4567","principal":{"name":"Cecilia
49
+ Roderick","email":"ceciliar@mailinator.com"},"school_number":"13K123","sis_id":"13K123","state_id":"30890","id":"530e595026403103360ff9fe"},"uri":"/v1.1/schools/530e595026403103360ff9fe"},{"data":{"created":"2014-02-26T21:14:56.671Z","district":"4fd43cc56d11340000000005","high_grade":"8","last_modified":"2014-02-26T21:14:56.673Z","location":{"address":"322
50
+ Old Beach 88th Street","city":"Rockaway Beach","state":"NY","zip":"11693"},"low_grade":"6","name":"Clever
51
+ Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
52
+ Springsteen","email":"lspringsteen@mailinator.com"},"school_number":"27Q321","sis_id":"27Q321","state_id":"412","id":"530e595026403103360ff9ff"},"uri":"/v1.1/schools/530e595026403103360ff9ff"}],"paging":{"current":1,"total":1,"count":3},"links":[{"rel":"self","uri":"/v1.1/schools?limit=20"}]}'
53
+ http_version:
54
+ recorded_at: Tue, 09 Sep 2014 21:48:54 GMT
55
+ - request:
56
+ method: get
57
+ uri: https://DEMO_KEY:@api.clever.com/v1.1/schools?where=%7B%22_id%22:%7B%22$in%22:%5B%22530e595026403103360ff9fd%22,%22530e595026403103360ff9ff%22%5D%7D%7D
58
+ body:
59
+ encoding: US-ASCII
60
+ string: ''
61
+ headers:
62
+ Accept:
63
+ - "*/*; q=0.5, application/xml"
64
+ Accept-Encoding:
65
+ - gzip, deflate
66
+ User-Agent:
67
+ - Ruby
68
+ response:
69
+ status:
70
+ code: 200
71
+ message: OK
72
+ headers:
73
+ Access-Control-Allow-Headers:
74
+ - Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
75
+ Access-Control-Allow-Methods:
76
+ - GET,PATCH,POST,DELETE
77
+ Access-Control-Allow-Origin:
78
+ - "*"
79
+ Content-Type:
80
+ - application/json; charset=utf-8
81
+ Date:
82
+ - Tue, 09 Sep 2014 21:48:54 GMT
83
+ Etag:
84
+ - '"-1879088916"'
85
+ Server:
86
+ - nginx/1.4.7
87
+ X-Powered-By:
88
+ - Express
89
+ Content-Length:
90
+ - '1303'
91
+ Connection:
92
+ - keep-alive
93
+ body:
94
+ encoding: UTF-8
95
+ string: '{"data":[{"data":{"created":"2014-02-26T21:14:56.662Z","district":"4fd43cc56d11340000000005","high_grade":"12","last_modified":"2014-02-26T21:14:56.665Z","location":{"address":"350
96
+ 5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
97
+ High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
98
+ Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"uri":"/v1.1/schools/530e595026403103360ff9fd"},{"data":{"created":"2014-02-26T21:14:56.671Z","district":"4fd43cc56d11340000000005","high_grade":"8","last_modified":"2014-02-26T21:14:56.673Z","location":{"address":"322
99
+ Old Beach 88th Street","city":"Rockaway Beach","state":"NY","zip":"11693"},"low_grade":"6","name":"Clever
100
+ Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
101
+ Springsteen","email":"lspringsteen@mailinator.com"},"school_number":"27Q321","sis_id":"27Q321","state_id":"412","id":"530e595026403103360ff9ff"},"uri":"/v1.1/schools/530e595026403103360ff9ff"}],"paging":{"current":1,"total":1,"count":2},"links":[{"rel":"self","uri":"/v1.1/schools?where=%7B%22_id%22:%7B%22$in%22:[%22530e595026403103360ff9fd%22,%22530e595026403103360ff9ff%22]%7D%7D"}]}'
102
+ http_version:
103
+ recorded_at: Tue, 09 Sep 2014 21:48:54 GMT
104
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,99 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://DEMO_KEY:@api.clever.com/v1.1/schools
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
+ Access-Control-Allow-Headers:
22
+ - Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
23
+ Access-Control-Allow-Methods:
24
+ - GET,PATCH,POST,DELETE
25
+ Access-Control-Allow-Origin:
26
+ - "*"
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Date:
30
+ - Tue, 09 Sep 2014 21:48:51 GMT
31
+ Etag:
32
+ - '"1408105812"'
33
+ Server:
34
+ - nginx/1.4.7
35
+ X-Powered-By:
36
+ - Express
37
+ Content-Length:
38
+ - '1764'
39
+ Connection:
40
+ - keep-alive
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"data":[{"data":{"created":"2014-02-26T21:14:56.662Z","district":"4fd43cc56d11340000000005","high_grade":"12","last_modified":"2014-02-26T21:14:56.665Z","location":{"address":"350
44
+ 5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
45
+ High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
46
+ Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"uri":"/v1.1/schools/530e595026403103360ff9fd"},{"data":{"created":"2014-02-26T21:14:56.668Z","district":"4fd43cc56d11340000000005","high_grade":"5","last_modified":"2014-02-26T21:14:56.670Z","location":{"address":"110
47
+ Pineapple Street","city":"Brooklyn","state":"NY","zip":"11201"},"low_grade":"Kindergarten","name":"Clever
48
+ Elementary School","nces_id":"360007000000","phone":"(718) 555-4567","principal":{"name":"Cecilia
49
+ Roderick","email":"ceciliar@mailinator.com"},"school_number":"13K123","sis_id":"13K123","state_id":"30890","id":"530e595026403103360ff9fe"},"uri":"/v1.1/schools/530e595026403103360ff9fe"},{"data":{"created":"2014-02-26T21:14:56.671Z","district":"4fd43cc56d11340000000005","high_grade":"8","last_modified":"2014-02-26T21:14:56.673Z","location":{"address":"322
50
+ Old Beach 88th Street","city":"Rockaway Beach","state":"NY","zip":"11693"},"low_grade":"6","name":"Clever
51
+ Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
52
+ Springsteen","email":"lspringsteen@mailinator.com"},"school_number":"27Q321","sis_id":"27Q321","state_id":"412","id":"530e595026403103360ff9ff"},"uri":"/v1.1/schools/530e595026403103360ff9ff"}],"paging":{"current":1,"total":1,"count":3},"links":[{"rel":"self","uri":"/v1.1/schools"}]}'
53
+ http_version:
54
+ recorded_at: Tue, 09 Sep 2014 21:48:51 GMT
55
+ - request:
56
+ method: get
57
+ uri: https://DEMO_KEY:@api.clever.com/v1.1/schools/530e595026403103360ff9ff
58
+ body:
59
+ encoding: US-ASCII
60
+ string: ''
61
+ headers:
62
+ Accept:
63
+ - "*/*; q=0.5, application/xml"
64
+ Accept-Encoding:
65
+ - gzip, deflate
66
+ User-Agent:
67
+ - Ruby
68
+ response:
69
+ status:
70
+ code: 200
71
+ message: OK
72
+ headers:
73
+ Access-Control-Allow-Headers:
74
+ - Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
75
+ Access-Control-Allow-Methods:
76
+ - GET,PATCH,POST,DELETE
77
+ Access-Control-Allow-Origin:
78
+ - "*"
79
+ Content-Type:
80
+ - application/json; charset=utf-8
81
+ Date:
82
+ - Tue, 09 Sep 2014 21:48:51 GMT
83
+ Server:
84
+ - nginx/1.4.7
85
+ X-Powered-By:
86
+ - Express
87
+ Content-Length:
88
+ - '959'
89
+ Connection:
90
+ - keep-alive
91
+ body:
92
+ encoding: UTF-8
93
+ string: '{"data":{"created":"2014-02-26T21:14:56.671Z","district":"4fd43cc56d11340000000005","high_grade":"8","last_modified":"2014-02-26T21:14:56.673Z","location":{"address":"322
94
+ Old Beach 88th Street","city":"Rockaway Beach","state":"NY","zip":"11693"},"low_grade":"6","name":"Clever
95
+ Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
96
+ Springsteen","email":"lspringsteen@mailinator.com"},"school_number":"27Q321","sis_id":"27Q321","state_id":"412","id":"530e595026403103360ff9ff"},"links":[{"rel":"self","uri":"/v1.1/schools/530e595026403103360ff9ff"},{"rel":"district","uri":"/v1.1/schools/530e595026403103360ff9ff/district"},{"rel":"teachers","uri":"/v1.1/schools/530e595026403103360ff9ff/teachers"},{"rel":"students","uri":"/v1.1/schools/530e595026403103360ff9ff/students"},{"rel":"sections","uri":"/v1.1/schools/530e595026403103360ff9ff/sections"},{"rel":"events","uri":"/v1.1/schools/530e595026403103360ff9ff/events"}]}'
97
+ http_version:
98
+ recorded_at: Tue, 09 Sep 2014 21:48:51 GMT
99
+ recorded_with: VCR 2.4.0
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  Accept:
11
- - ! '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  User-Agent:
@@ -23,13 +23,13 @@ http_interactions:
23
23
  Access-Control-Allow-Methods:
24
24
  - GET,PATCH,POST,DELETE
25
25
  Access-Control-Allow-Origin:
26
- - ! '*'
26
+ - "*"
27
27
  Content-Type:
28
28
  - application/json; charset=utf-8
29
29
  Date:
30
- - Mon, 08 Sep 2014 21:31:31 GMT
30
+ - Tue, 09 Sep 2014 21:49:01 GMT
31
31
  Etag:
32
- - ! '"1408105812"'
32
+ - '"1408105812"'
33
33
  Server:
34
34
  - nginx/1.4.7
35
35
  X-Powered-By:
@@ -39,8 +39,8 @@ http_interactions:
39
39
  Connection:
40
40
  - keep-alive
41
41
  body:
42
- encoding: US-ASCII
43
- string: ! '{"data":[{"data":{"created":"2014-02-26T21:14:56.662Z","district":"4fd43cc56d11340000000005","high_grade":"12","last_modified":"2014-02-26T21:14:56.665Z","location":{"address":"350
42
+ encoding: UTF-8
43
+ string: '{"data":[{"data":{"created":"2014-02-26T21:14:56.662Z","district":"4fd43cc56d11340000000005","high_grade":"12","last_modified":"2014-02-26T21:14:56.665Z","location":{"address":"350
44
44
  5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
45
45
  High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
46
46
  Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"uri":"/v1.1/schools/530e595026403103360ff9fd"},{"data":{"created":"2014-02-26T21:14:56.668Z","district":"4fd43cc56d11340000000005","high_grade":"5","last_modified":"2014-02-26T21:14:56.670Z","location":{"address":"110
@@ -51,5 +51,46 @@ http_interactions:
51
51
  Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
52
52
  Springsteen","email":"lspringsteen@mailinator.com"},"school_number":"27Q321","sis_id":"27Q321","state_id":"412","id":"530e595026403103360ff9ff"},"uri":"/v1.1/schools/530e595026403103360ff9ff"}],"paging":{"current":1,"total":1,"count":3},"links":[{"rel":"self","uri":"/v1.1/schools"}]}'
53
53
  http_version:
54
- recorded_at: Mon, 08 Sep 2014 21:31:30 GMT
54
+ recorded_at: Tue, 09 Sep 2014 21:49:01 GMT
55
+ - request:
56
+ method: get
57
+ uri: https://DEMO_KEY:@api.clever.com/v1.1/schools?count=true
58
+ body:
59
+ encoding: US-ASCII
60
+ string: ''
61
+ headers:
62
+ Accept:
63
+ - "*/*; q=0.5, application/xml"
64
+ Accept-Encoding:
65
+ - gzip, deflate
66
+ User-Agent:
67
+ - Ruby
68
+ response:
69
+ status:
70
+ code: 200
71
+ message: OK
72
+ headers:
73
+ Access-Control-Allow-Headers:
74
+ - Content-Type,Authorization,X-Requested-With,Accept,Origin,Referer,User-Agent
75
+ Access-Control-Allow-Methods:
76
+ - GET,PATCH,POST,DELETE
77
+ Access-Control-Allow-Origin:
78
+ - "*"
79
+ Content-Type:
80
+ - application/json; charset=utf-8
81
+ Date:
82
+ - Tue, 09 Sep 2014 21:49:01 GMT
83
+ Server:
84
+ - nginx/1.4.7
85
+ X-Powered-By:
86
+ - Express
87
+ Content-Length:
88
+ - '69'
89
+ Connection:
90
+ - keep-alive
91
+ body:
92
+ encoding: UTF-8
93
+ string: '{"count":3,"links":[{"rel":"self","uri":"/v1.1/schools?count=true"}]}'
94
+ http_version:
95
+ recorded_at: Tue, 09 Sep 2014 21:49:01 GMT
55
96
  recorded_with: VCR 2.4.0
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  Accept:
11
- - ! '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  User-Agent:
@@ -23,13 +23,13 @@ http_interactions:
23
23
  Access-Control-Allow-Methods:
24
24
  - GET,PATCH,POST,DELETE
25
25
  Access-Control-Allow-Origin:
26
- - ! '*'
26
+ - "*"
27
27
  Content-Type:
28
28
  - application/json; charset=utf-8
29
29
  Date:
30
- - Mon, 08 Sep 2014 21:31:47 GMT
30
+ - Tue, 09 Sep 2014 21:49:06 GMT
31
31
  Etag:
32
- - ! '"1408105812"'
32
+ - '"1408105812"'
33
33
  Server:
34
34
  - nginx/1.4.7
35
35
  X-Powered-By:
@@ -39,8 +39,8 @@ http_interactions:
39
39
  Connection:
40
40
  - keep-alive
41
41
  body:
42
- encoding: US-ASCII
43
- string: ! '{"data":[{"data":{"created":"2014-02-26T21:14:56.662Z","district":"4fd43cc56d11340000000005","high_grade":"12","last_modified":"2014-02-26T21:14:56.665Z","location":{"address":"350
42
+ encoding: UTF-8
43
+ string: '{"data":[{"data":{"created":"2014-02-26T21:14:56.662Z","district":"4fd43cc56d11340000000005","high_grade":"12","last_modified":"2014-02-26T21:14:56.665Z","location":{"address":"350
44
44
  5th Avenue","city":"New York","state":"NY","zip":"10001"},"low_grade":"9","name":"Clever
45
45
  High School","nces_id":"360008000000","phone":"(212) 555-1212","principal":{"name":"Theodora
46
46
  Khan","email":"tdkhan@mailinator.com"},"school_number":"02M800","sis_id":"02M800","state_id":"712345","id":"530e595026403103360ff9fd"},"uri":"/v1.1/schools/530e595026403103360ff9fd"},{"data":{"created":"2014-02-26T21:14:56.668Z","district":"4fd43cc56d11340000000005","high_grade":"5","last_modified":"2014-02-26T21:14:56.670Z","location":{"address":"110
@@ -51,5 +51,5 @@ http_interactions:
51
51
  Middle School","nces_id":"360001000000","phone":"(718) 555-8989","principal":{"name":"Leonard
52
52
  Springsteen","email":"lspringsteen@mailinator.com"},"school_number":"27Q321","sis_id":"27Q321","state_id":"412","id":"530e595026403103360ff9ff"},"uri":"/v1.1/schools/530e595026403103360ff9ff"}],"paging":{"current":1,"total":1,"count":3},"links":[{"rel":"self","uri":"/v1.1/schools"}]}'
53
53
  http_version:
54
- recorded_at: Mon, 08 Sep 2014 21:31:46 GMT
54
+ recorded_at: Tue, 09 Sep 2014 21:49:06 GMT
55
55
  recorded_with: VCR 2.4.0