parse_resource 1.7.3 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. data/.DS_Store +0 -0
  2. data/.travis.yml +1 -1
  3. data/Gemfile +4 -8
  4. data/Gemfile.lock +27 -23
  5. data/README.md +81 -2
  6. data/Rakefile +9 -8
  7. data/VERSION +1 -1
  8. data/fixtures/.DS_Store +0 -0
  9. data/fixtures/vcr_cassettes/.DS_Store +0 -0
  10. data/fixtures/vcr_cassettes/test_all.yml +319 -34
  11. data/fixtures/vcr_cassettes/test_attribute_getters.yml +256 -12
  12. data/fixtures/vcr_cassettes/test_attribute_setters.yml +256 -12
  13. data/fixtures/vcr_cassettes/test_authenticate.yml +260 -32
  14. data/fixtures/vcr_cassettes/test_chained_wheres.yml +320 -35
  15. data/fixtures/vcr_cassettes/test_chunk.yml +1359 -0
  16. data/fixtures/vcr_cassettes/test_count.yml +495 -84
  17. data/fixtures/vcr_cassettes/test_create.yml +154 -12
  18. data/fixtures/vcr_cassettes/test_created_at.yml +256 -12
  19. data/fixtures/vcr_cassettes/test_destroy.yml +364 -32
  20. data/fixtures/vcr_cassettes/test_destroy_all.yml +236 -48
  21. data/fixtures/vcr_cassettes/test_each.yml +488 -56
  22. data/fixtures/vcr_cassettes/test_fetching_closest_10.yml +1509 -0
  23. data/fixtures/vcr_cassettes/test_fetching_closest_by_kilometers.yml +1509 -0
  24. data/fixtures/vcr_cassettes/test_fetching_closest_by_miles.yml +1509 -0
  25. data/fixtures/vcr_cassettes/test_fetching_closest_by_radians.yml +1509 -0
  26. data/fixtures/vcr_cassettes/test_fetching_closest_within_box.yml +489 -0
  27. data/fixtures/vcr_cassettes/test_fetching_geopoint_field.yml +489 -0
  28. data/fixtures/vcr_cassettes/test_find.yml +312 -24
  29. data/fixtures/vcr_cassettes/test_find_all_by.yml +170 -34
  30. data/fixtures/vcr_cassettes/test_find_by.yml +174 -38
  31. data/fixtures/vcr_cassettes/test_first.yml +260 -23
  32. data/fixtures/vcr_cassettes/test_id.yml +256 -12
  33. data/fixtures/vcr_cassettes/test_installation_creation.yml +199 -0
  34. data/fixtures/vcr_cassettes/test_installation_creation_validation_check.yml +297 -0
  35. data/fixtures/vcr_cassettes/test_limit.yml +1138 -179
  36. data/fixtures/vcr_cassettes/test_map.yml +488 -56
  37. data/fixtures/vcr_cassettes/test_order_ascending.yml +395 -0
  38. data/fixtures/vcr_cassettes/test_order_descending.yml +446 -0
  39. data/fixtures/vcr_cassettes/test_save.yml +316 -24
  40. data/fixtures/vcr_cassettes/test_save_all_and_destroy_all.yml +869 -0
  41. data/fixtures/vcr_cassettes/test_saving_geo_point_with_quick_init.yml +395 -0
  42. data/fixtures/vcr_cassettes/test_saving_geopoint_with_coords.yml +395 -0
  43. data/fixtures/vcr_cassettes/test_skip.yml +120 -525
  44. data/fixtures/vcr_cassettes/test_update.yml +316 -24
  45. data/fixtures/vcr_cassettes/test_updated_at.yml +316 -24
  46. data/fixtures/vcr_cassettes/test_username_should_be_unique.yml +311 -21
  47. data/fixtures/vcr_cassettes/test_where.yml +117 -25
  48. data/lib/kaminari_extension.rb +60 -0
  49. data/lib/parse_resource.rb +4 -2
  50. data/lib/parse_resource/base.rb +262 -163
  51. data/lib/parse_resource/client.rb +8 -0
  52. data/lib/parse_resource/parse_error.rb +36 -22
  53. data/lib/parse_resource/query.rb +99 -7
  54. data/lib/parse_resource/query_methods.rb +64 -0
  55. data/lib/parse_resource/types/parse_geopoint.rb +19 -0
  56. data/parse_resource.gemspec +29 -9
  57. data/parse_resource.yml +2 -2
  58. data/test/active_model_lint_test.rb +0 -2
  59. data/test/helper.rb +13 -3
  60. data/test/test_parse_installation.rb +41 -0
  61. data/test/test_parse_resource.rb +108 -20
  62. data/test/test_parse_user.rb +4 -7
  63. data/test/test_query_options.rb +0 -38
  64. data/test/test_types.rb +186 -0
  65. metadata +38 -31
@@ -1,5 +1,150 @@
1
1
  ---
2
2
  http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Spoon?where=%7B%7D
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
+ Cache-Control:
22
+ - max-age=0, private, must-revalidate
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Date:
26
+ - Wed, 17 Apr 2013 06:26:18 GMT
27
+ Etag:
28
+ - ! '"e2412c1ffbfb6b53a82a9daf665b2c1a"'
29
+ Server:
30
+ - nginx/1.2.2
31
+ Set-Cookie:
32
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNjIxNTc2MTdkOWM4ODFlNjI5OTIxMjg5ZDVhMmY1NGE%3D--15fb0db5f83b4a8712bebb5debe23622bd013083;
33
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:18 GMT; secure;
34
+ HttpOnly
35
+ Status:
36
+ - 200 OK
37
+ X-Runtime:
38
+ - '0.047071'
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Content-Length:
42
+ - '14'
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"results":[]}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Apr 2013 06:26:18 GMT
50
+ - request:
51
+ method: post
52
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Spoon
53
+ body:
54
+ encoding: UTF-8
55
+ string: ! '{"length":"1234567890created!"}'
56
+ headers:
57
+ Accept:
58
+ - ! '*/*; q=0.5, application/xml'
59
+ Accept-Encoding:
60
+ - gzip, deflate
61
+ Content-Type:
62
+ - application/json
63
+ Content-Length:
64
+ - '31'
65
+ User-Agent:
66
+ - Ruby
67
+ response:
68
+ status:
69
+ code: 201
70
+ message: Created
71
+ headers:
72
+ Cache-Control:
73
+ - no-cache
74
+ Content-Type:
75
+ - application/json; charset=utf-8
76
+ Date:
77
+ - Wed, 17 Apr 2013 06:26:18 GMT
78
+ Location:
79
+ - https://api.parse.com/1/classes/Spoon/I6O7g4hhX3
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNmVmNGZlMjRhMWYyMTBjYmJiOWRhNjIzNGNlYjZlYWU%3D--d54cd20260445a8f21379f98b2e58401ee6c7b73;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:18 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 201 Created
88
+ X-Runtime:
89
+ - '0.030824'
90
+ X-Ua-Compatible:
91
+ - IE=Edge,chrome=1
92
+ Content-Length:
93
+ - '64'
94
+ Connection:
95
+ - keep-alive
96
+ body:
97
+ encoding: US-ASCII
98
+ string: ! '{"createdAt":"2013-04-17T06:26:18.789Z","objectId":"I6O7g4hhX3"}'
99
+ http_version:
100
+ recorded_at: Wed, 17 Apr 2013 06:26:18 GMT
101
+ - request:
102
+ method: get
103
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Spoon?where=%7B%7D
104
+ body:
105
+ encoding: US-ASCII
106
+ string: ''
107
+ headers:
108
+ Accept:
109
+ - ! '*/*; q=0.5, application/xml'
110
+ Accept-Encoding:
111
+ - gzip, deflate
112
+ User-Agent:
113
+ - Ruby
114
+ response:
115
+ status:
116
+ code: 200
117
+ message: OK
118
+ headers:
119
+ Cache-Control:
120
+ - max-age=0, private, must-revalidate
121
+ Content-Type:
122
+ - application/json; charset=utf-8
123
+ Date:
124
+ - Wed, 17 Apr 2013 20:08:30 GMT
125
+ Etag:
126
+ - ! '"e2412c1ffbfb6b53a82a9daf665b2c1a"'
127
+ Server:
128
+ - nginx/1.2.2
129
+ Set-Cookie:
130
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlZjdlZTJmMzYyZmY1ZTQ3ZTc5YjBmZTg5MGRjNGI3ODU%3D--542fd23784bd814dc53f297d66a096fd4aa4886d;
131
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:30 GMT; secure;
132
+ HttpOnly
133
+ Status:
134
+ - 200 OK
135
+ X-Runtime:
136
+ - '0.028747'
137
+ X-Ua-Compatible:
138
+ - IE=Edge,chrome=1
139
+ Content-Length:
140
+ - '14'
141
+ Connection:
142
+ - keep-alive
143
+ body:
144
+ encoding: US-ASCII
145
+ string: ! '{"results":[]}'
146
+ http_version:
147
+ recorded_at: Wed, 17 Apr 2013 20:08:30 GMT
3
148
  - request:
4
149
  method: post
5
150
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Spoon
@@ -22,27 +167,24 @@ http_interactions:
22
167
  code: 201
23
168
  message: Created
24
169
  headers:
25
- Access-Control-Allow-Origin:
26
- - https://parse.com, https://www.parse.com
27
- Access-Control-Request-Method:
28
- - ! '*'
29
170
  Cache-Control:
30
171
  - no-cache
31
172
  Content-Type:
32
173
  - application/json; charset=utf-8
33
174
  Date:
34
- - Thu, 20 Sep 2012 04:31:41 GMT
175
+ - Wed, 17 Apr 2013 20:08:30 GMT
35
176
  Location:
36
- - https://api.parse.com/1/classes/Spoon/qTvSODGDAF
177
+ - https://api.parse.com/1/classes/Spoon/CEjxvhwC5R
37
178
  Server:
38
179
  - nginx/1.2.2
39
180
  Set-Cookie:
40
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlM2ZmZWQwZWYwMjY2ZTg2YWRmYTc4NjMwOGUxMzA2YzA%3D--dfd395ae98106c61f5972f9386895345f198a169;
41
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:41 GMT; HttpOnly
181
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMDVjYjllZTIyODEzMTAyYzI0NDAwZjkwZmVhMjRmNmY%3D--62c9758dcab0ae7135f29482d7c4ce380b66e239;
182
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:30 GMT; secure;
183
+ HttpOnly
42
184
  Status:
43
185
  - 201 Created
44
186
  X-Runtime:
45
- - '0.028833'
187
+ - '0.029494'
46
188
  X-Ua-Compatible:
47
189
  - IE=Edge,chrome=1
48
190
  Content-Length:
@@ -51,7 +193,7 @@ http_interactions:
51
193
  - keep-alive
52
194
  body:
53
195
  encoding: US-ASCII
54
- string: ! '{"createdAt":"2012-09-20T04:31:41.056Z","objectId":"qTvSODGDAF"}'
196
+ string: ! '{"createdAt":"2013-04-17T20:08:30.560Z","objectId":"CEjxvhwC5R"}'
55
197
  http_version:
56
- recorded_at: Thu, 20 Sep 2012 04:31:41 GMT
57
- recorded_with: VCR 2.2.4
198
+ recorded_at: Wed, 17 Apr 2013 20:08:30 GMT
199
+ recorded_with: VCR 2.4.0
@@ -1,5 +1,252 @@
1
1
  ---
2
2
  http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Post?where=%7B%7D
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
+ Cache-Control:
22
+ - max-age=0, private, must-revalidate
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Date:
26
+ - Wed, 17 Apr 2013 06:26:19 GMT
27
+ Etag:
28
+ - ! '"1cad3535b5cac4c1130e9b96d3b52e60"'
29
+ Server:
30
+ - nginx/1.2.2
31
+ Set-Cookie:
32
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlMjE0YzViMWFkM2ZiN2RhYjdlOTc3YjA0NTM4ZmNiMDE%3D--53c21c4de7df322d8118e9291848375aecfb8de6;
33
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:19 GMT; secure;
34
+ HttpOnly
35
+ Status:
36
+ - 200 OK
37
+ X-Runtime:
38
+ - '0.035076'
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Content-Length:
42
+ - '2988'
43
+ Connection:
44
+ - keep-alive
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ! '{"results":[{"title":"post","createdAt":"2013-04-17T06:26:12.824Z","updatedAt":"2013-04-17T06:26:12.824Z","objectId":"LiK4CZps9M"},{"title":"post","createdAt":"2013-04-17T06:26:12.837Z","updatedAt":"2013-04-17T06:26:12.837Z","objectId":"A911KMTix5"},{"title":"post","createdAt":"2013-04-17T06:26:12.849Z","updatedAt":"2013-04-17T06:26:12.849Z","objectId":"uWTcAQ7vSw"},{"title":"post","createdAt":"2013-04-17T06:26:12.862Z","updatedAt":"2013-04-17T06:26:12.862Z","objectId":"unNOsYNsVM"},{"title":"post","createdAt":"2013-04-17T06:26:12.874Z","updatedAt":"2013-04-17T06:26:12.874Z","objectId":"XhTMU8W8XH"},{"title":"post","createdAt":"2013-04-17T06:26:12.886Z","updatedAt":"2013-04-17T06:26:12.886Z","objectId":"PHFh3rpsVK"},{"title":"post","createdAt":"2013-04-17T06:26:12.898Z","updatedAt":"2013-04-17T06:26:12.898Z","objectId":"hVkgMoZ7aG"},{"title":"post","createdAt":"2013-04-17T06:26:12.910Z","updatedAt":"2013-04-17T06:26:12.910Z","objectId":"TdnCfh8KDW"},{"title":"post","createdAt":"2013-04-17T06:26:12.922Z","updatedAt":"2013-04-17T06:26:12.922Z","objectId":"Jo2dQCepkY"},{"title":"post","createdAt":"2013-04-17T06:26:12.935Z","updatedAt":"2013-04-17T06:26:12.935Z","objectId":"puWlDprgPp"},{"title":"post","createdAt":"2013-04-17T06:26:13.004Z","updatedAt":"2013-04-17T06:26:13.004Z","objectId":"0v9HF6FYtj"},{"title":"post","createdAt":"2013-04-17T06:26:13.017Z","updatedAt":"2013-04-17T06:26:13.017Z","objectId":"nsE1AEmCJr"},{"title":"post","createdAt":"2013-04-17T06:26:13.029Z","updatedAt":"2013-04-17T06:26:13.029Z","objectId":"DvFp1ASJ4J"},{"title":"post","createdAt":"2013-04-17T06:26:13.041Z","updatedAt":"2013-04-17T06:26:13.041Z","objectId":"T9CCHwi4Vp"},{"title":"post","createdAt":"2013-04-17T06:26:13.054Z","updatedAt":"2013-04-17T06:26:13.054Z","objectId":"PcdJdL1kkP"},{"title":"post","createdAt":"2013-04-17T06:26:13.066Z","updatedAt":"2013-04-17T06:26:13.066Z","objectId":"h7jpiRCTtF"},{"title":"post","createdAt":"2013-04-17T06:26:13.079Z","updatedAt":"2013-04-17T06:26:13.079Z","objectId":"kTk47RdVG2"},{"title":"post","createdAt":"2013-04-17T06:26:13.092Z","updatedAt":"2013-04-17T06:26:13.092Z","objectId":"MVXKs6qmgj"},{"title":"post","createdAt":"2013-04-17T06:26:13.104Z","updatedAt":"2013-04-17T06:26:13.104Z","objectId":"LZhpDt2Vzn"},{"title":"post","createdAt":"2013-04-17T06:26:13.118Z","updatedAt":"2013-04-17T06:26:13.118Z","objectId":"A8JdbTK0ob"},{"title":"post","createdAt":"2013-04-17T06:26:13.664Z","updatedAt":"2013-04-17T06:26:13.664Z","objectId":"TVf0t9yzGo"},{"title":"post","createdAt":"2013-04-17T06:26:13.676Z","updatedAt":"2013-04-17T06:26:13.676Z","objectId":"gwIz6FQa3r"},{"title":"post","createdAt":"2013-04-17T06:26:13.694Z","updatedAt":"2013-04-17T06:26:13.694Z","objectId":"y2UijqaOby"},{"title":"post","createdAt":"2013-04-17T06:26:13.706Z","updatedAt":"2013-04-17T06:26:13.706Z","objectId":"vZ4Xbv8X7P"},{"title":"post","createdAt":"2013-04-17T06:26:13.718Z","updatedAt":"2013-04-17T06:26:13.718Z","objectId":"sMFdpZHKah"}]}'
48
+ http_version:
49
+ recorded_at: Wed, 17 Apr 2013 06:26:19 GMT
50
+ - request:
51
+ method: post
52
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/batch
53
+ body:
54
+ encoding: UTF-8
55
+ string: ! '{"requests":[{"method":"DELETE","path":"/1/classes/Post/LiK4CZps9M"},{"method":"DELETE","path":"/1/classes/Post/A911KMTix5"},{"method":"DELETE","path":"/1/classes/Post/uWTcAQ7vSw"},{"method":"DELETE","path":"/1/classes/Post/unNOsYNsVM"},{"method":"DELETE","path":"/1/classes/Post/XhTMU8W8XH"},{"method":"DELETE","path":"/1/classes/Post/PHFh3rpsVK"},{"method":"DELETE","path":"/1/classes/Post/hVkgMoZ7aG"},{"method":"DELETE","path":"/1/classes/Post/TdnCfh8KDW"},{"method":"DELETE","path":"/1/classes/Post/Jo2dQCepkY"},{"method":"DELETE","path":"/1/classes/Post/puWlDprgPp"},{"method":"DELETE","path":"/1/classes/Post/0v9HF6FYtj"},{"method":"DELETE","path":"/1/classes/Post/nsE1AEmCJr"},{"method":"DELETE","path":"/1/classes/Post/DvFp1ASJ4J"},{"method":"DELETE","path":"/1/classes/Post/T9CCHwi4Vp"},{"method":"DELETE","path":"/1/classes/Post/PcdJdL1kkP"},{"method":"DELETE","path":"/1/classes/Post/h7jpiRCTtF"},{"method":"DELETE","path":"/1/classes/Post/kTk47RdVG2"},{"method":"DELETE","path":"/1/classes/Post/MVXKs6qmgj"},{"method":"DELETE","path":"/1/classes/Post/LZhpDt2Vzn"},{"method":"DELETE","path":"/1/classes/Post/A8JdbTK0ob"}]}'
56
+ headers:
57
+ Accept:
58
+ - ! '*/*; q=0.5, application/xml'
59
+ Accept-Encoding:
60
+ - gzip, deflate
61
+ Content-Type:
62
+ - application/json
63
+ Content-Length:
64
+ - '1134'
65
+ User-Agent:
66
+ - Ruby
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Cache-Control:
73
+ - max-age=0, private, must-revalidate
74
+ Content-Type:
75
+ - application/json; charset=utf-8
76
+ Date:
77
+ - Wed, 17 Apr 2013 06:26:20 GMT
78
+ Etag:
79
+ - ! '"73aba4ccb55fd6e8329ceadbad2bbc4a"'
80
+ Server:
81
+ - nginx/1.2.2
82
+ Set-Cookie:
83
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOWQ3MThmZmRmODZjNzk3MGE4YzE3NjRhYmUzMTMzY2E%3D--1f93a96ba3fa8ebf6549e521617010d5cb799f12;
84
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:20 GMT; secure;
85
+ HttpOnly
86
+ Status:
87
+ - 200 OK
88
+ X-Runtime:
89
+ - '0.324105'
90
+ X-Ua-Compatible:
91
+ - IE=Edge,chrome=1
92
+ Content-Length:
93
+ - '341'
94
+ Connection:
95
+ - keep-alive
96
+ body:
97
+ encoding: US-ASCII
98
+ string: ! '[{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true},{"success":true}]'
99
+ http_version:
100
+ recorded_at: Wed, 17 Apr 2013 06:26:20 GMT
101
+ - request:
102
+ method: post
103
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/batch
104
+ body:
105
+ encoding: UTF-8
106
+ string: ! '{"requests":[{"method":"DELETE","path":"/1/classes/Post/TVf0t9yzGo"},{"method":"DELETE","path":"/1/classes/Post/gwIz6FQa3r"},{"method":"DELETE","path":"/1/classes/Post/y2UijqaOby"},{"method":"DELETE","path":"/1/classes/Post/vZ4Xbv8X7P"},{"method":"DELETE","path":"/1/classes/Post/sMFdpZHKah"}]}'
107
+ headers:
108
+ Accept:
109
+ - ! '*/*; q=0.5, application/xml'
110
+ Accept-Encoding:
111
+ - gzip, deflate
112
+ Content-Type:
113
+ - application/json
114
+ Content-Length:
115
+ - '294'
116
+ User-Agent:
117
+ - Ruby
118
+ response:
119
+ status:
120
+ code: 200
121
+ message: OK
122
+ headers:
123
+ Cache-Control:
124
+ - max-age=0, private, must-revalidate
125
+ Content-Type:
126
+ - application/json; charset=utf-8
127
+ Date:
128
+ - Wed, 17 Apr 2013 06:26:20 GMT
129
+ Etag:
130
+ - ! '"ce743ce78185012845d9156c3362f264"'
131
+ Server:
132
+ - nginx/1.2.2
133
+ Set-Cookie:
134
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlYWFiNDhlYzhkNDE5YzYwYzQwNTJiNTliZWQxOTFhYTg%3D--ef693430db3514359f79893b90710ac532886a16;
135
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:20 GMT; secure;
136
+ HttpOnly
137
+ Status:
138
+ - 200 OK
139
+ X-Runtime:
140
+ - '0.083025'
141
+ X-Ua-Compatible:
142
+ - IE=Edge,chrome=1
143
+ Content-Length:
144
+ - '86'
145
+ Connection:
146
+ - keep-alive
147
+ body:
148
+ encoding: US-ASCII
149
+ string: ! '[{"success":true},{"success":true},{"success":true},{"success":true},{"success":true}]'
150
+ http_version:
151
+ recorded_at: Wed, 17 Apr 2013 06:26:20 GMT
152
+ - request:
153
+ method: post
154
+ uri: https://tIcrV2dwbkT7AqjU8Cn8FZFU60hk5qCnMXlJnJQq:H6xYlZzvwBZHUBjoyrFKXkWZoCVfqrmC3ARXMZjq@api.parse.com/1/classes/Post
155
+ body:
156
+ encoding: UTF-8
157
+ string: ! '{"title":"testing created_at"}'
158
+ headers:
159
+ Accept:
160
+ - ! '*/*; q=0.5, application/xml'
161
+ Accept-Encoding:
162
+ - gzip, deflate
163
+ Content-Type:
164
+ - application/json
165
+ Content-Length:
166
+ - '30'
167
+ User-Agent:
168
+ - Ruby
169
+ response:
170
+ status:
171
+ code: 201
172
+ message: Created
173
+ headers:
174
+ Cache-Control:
175
+ - no-cache
176
+ Content-Type:
177
+ - application/json; charset=utf-8
178
+ Date:
179
+ - Wed, 17 Apr 2013 06:26:21 GMT
180
+ Location:
181
+ - https://api.parse.com/1/classes/Post/RTXtLTST3l
182
+ Server:
183
+ - nginx/1.2.2
184
+ Set-Cookie:
185
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlM2MwODg2MWQ0M2JiOTQ3OTY1M2RiMThjN2M5MTBmZWY%3D--068f232f9791c692ec9b31866e69b41572754c71;
186
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 06:26:21 GMT; secure;
187
+ HttpOnly
188
+ Status:
189
+ - 201 Created
190
+ X-Runtime:
191
+ - '0.037285'
192
+ X-Ua-Compatible:
193
+ - IE=Edge,chrome=1
194
+ Content-Length:
195
+ - '64'
196
+ Connection:
197
+ - keep-alive
198
+ body:
199
+ encoding: US-ASCII
200
+ string: ! '{"createdAt":"2013-04-17T06:26:21.158Z","objectId":"RTXtLTST3l"}'
201
+ http_version:
202
+ recorded_at: Wed, 17 Apr 2013 06:26:21 GMT
203
+ - request:
204
+ method: get
205
+ uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post?where=%7B%7D
206
+ body:
207
+ encoding: US-ASCII
208
+ string: ''
209
+ headers:
210
+ Accept:
211
+ - ! '*/*; q=0.5, application/xml'
212
+ Accept-Encoding:
213
+ - gzip, deflate
214
+ User-Agent:
215
+ - Ruby
216
+ response:
217
+ status:
218
+ code: 200
219
+ message: OK
220
+ headers:
221
+ Cache-Control:
222
+ - max-age=0, private, must-revalidate
223
+ Content-Type:
224
+ - application/json; charset=utf-8
225
+ Date:
226
+ - Wed, 17 Apr 2013 20:08:30 GMT
227
+ Etag:
228
+ - ! '"e2412c1ffbfb6b53a82a9daf665b2c1a"'
229
+ Server:
230
+ - nginx/1.2.2
231
+ Set-Cookie:
232
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGRhNjRkOTM4NWI4YjE2NGI2NmUwZDk5ZjcxZjFmODg%3D--df76534e307ffdabea7ef9205cb3b6d0544da138;
233
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:30 GMT; secure;
234
+ HttpOnly
235
+ Status:
236
+ - 200 OK
237
+ X-Runtime:
238
+ - '0.028545'
239
+ X-Ua-Compatible:
240
+ - IE=Edge,chrome=1
241
+ Content-Length:
242
+ - '14'
243
+ Connection:
244
+ - keep-alive
245
+ body:
246
+ encoding: US-ASCII
247
+ string: ! '{"results":[]}'
248
+ http_version:
249
+ recorded_at: Wed, 17 Apr 2013 20:08:30 GMT
3
250
  - request:
4
251
  method: post
5
252
  uri: https://FKEzdzDgEyghLDFgIVHYJehVlWpfVtUmEv4MUEkJ:bOYO7usWbrcIbL5L5bPzlYrSonQRvwJecC1XLsuN@api.parse.com/1/classes/Post
@@ -22,27 +269,24 @@ http_interactions:
22
269
  code: 201
23
270
  message: Created
24
271
  headers:
25
- Access-Control-Allow-Origin:
26
- - https://parse.com, https://www.parse.com
27
- Access-Control-Request-Method:
28
- - ! '*'
29
272
  Cache-Control:
30
273
  - no-cache
31
274
  Content-Type:
32
275
  - application/json; charset=utf-8
33
276
  Date:
34
- - Thu, 20 Sep 2012 04:31:41 GMT
277
+ - Wed, 17 Apr 2013 20:08:30 GMT
35
278
  Location:
36
- - https://api.parse.com/1/classes/Post/0oivuHzQvJ
279
+ - https://api.parse.com/1/classes/Post/alSSSVuW4W
37
280
  Server:
38
281
  - nginx/1.2.2
39
282
  Set-Cookie:
40
- - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlOTA1MGEwMTQ3YTcwZTA4OGYxNWQzZGExMGY1YzJjZjY%3D--6fb8e314f4a8e8f43ef88e4da3c31c26b4a4004d;
41
- domain=.parse.com; path=/; expires=Tue, 20-Sep-2022 04:31:41 GMT; HttpOnly
283
+ - _parse_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRiIlNGJmNThmYjJjMTlmZTBkNmFlZDUxZTY5YmQwZDJlMjg%3D--797f53585a7a904eaca524efce951b80cc778b0b;
284
+ domain=.parse.com; path=/; expires=Mon, 17-Apr-2023 20:08:30 GMT; secure;
285
+ HttpOnly
42
286
  Status:
43
287
  - 201 Created
44
288
  X-Runtime:
45
- - '0.026637'
289
+ - '0.030023'
46
290
  X-Ua-Compatible:
47
291
  - IE=Edge,chrome=1
48
292
  Content-Length:
@@ -51,7 +295,7 @@ http_interactions:
51
295
  - keep-alive
52
296
  body:
53
297
  encoding: US-ASCII
54
- string: ! '{"createdAt":"2012-09-20T04:31:41.315Z","objectId":"0oivuHzQvJ"}'
298
+ string: ! '{"createdAt":"2013-04-17T20:08:30.820Z","objectId":"alSSSVuW4W"}'
55
299
  http_version:
56
- recorded_at: Thu, 20 Sep 2012 04:31:41 GMT
57
- recorded_with: VCR 2.2.4
300
+ recorded_at: Wed, 17 Apr 2013 20:08:30 GMT
301
+ recorded_with: VCR 2.4.0