big_ml 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/README.md +2 -1
  2. data/big_ml.gemspec +1 -1
  3. data/lib/big_ml/util/client.rb +7 -2
  4. data/lib/big_ml/util/config.rb +7 -2
  5. data/lib/big_ml/version.rb +1 -1
  6. data/spec/spec_helper.rb +2 -2
  7. data/spec/units/client_spec.rb +37 -6
  8. data/spec/vcr_cassettes/BigML_Dataset/no_dataset/_all/must_be_empty.yml +16 -95
  9. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/can_be_converted_in_a_model.yml +69 -67
  10. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_deleted_using_the_destroy_method.yml +72 -71
  11. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_be_find_using_the_reference.yml +104 -103
  12. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_remove_the_dataset.yml +66 -65
  13. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name.yml +148 -147
  14. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_be_able_to_update_the_name_from_the_instance.yml +147 -146
  15. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_only_one_item.yml +83 -80
  16. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/must_have_the_same_file_name.yml +119 -74
  17. data/spec/vcr_cassettes/BigML_Dataset/one_dataset/was_created_successfully.yml +36 -36
  18. data/spec/vcr_cassettes/BigML_Model/no_model/_all/must_be_empty.yml +89 -87
  19. data/spec/vcr_cassettes/BigML_Model/one_model/can_be_converted_in_a_prediction.yml +101 -99
  20. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_deleted_using_the_destroy_method.yml +91 -89
  21. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_be_find_using_the_reference.yml +191 -200
  22. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_remove_the_model.yml +109 -231
  23. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name.yml +272 -252
  24. data/spec/vcr_cassettes/BigML_Model/one_model/must_be_able_to_update_the_name_from_the_instance.yml +126 -252
  25. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_only_one_item.yml +117 -113
  26. data/spec/vcr_cassettes/BigML_Model/one_model/must_have_the_same_size.yml +158 -120
  27. data/spec/vcr_cassettes/BigML_Model/one_model/was_created_successfully.yml +101 -56
  28. data/spec/vcr_cassettes/BigML_Prediction/no_prediction/_all/must_be_empty.yml +96 -94
  29. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_deleted_using_the_destroy_method.yml +126 -124
  30. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_be_find_using_the_reference.yml +147 -145
  31. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_remove_the_prediction.yml +141 -139
  32. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name.yml +159 -157
  33. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_be_able_to_update_the_name_from_the_instance.yml +161 -159
  34. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_only_one_item.yml +145 -143
  35. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/must_have_the_same_name.yml +148 -146
  36. data/spec/vcr_cassettes/BigML_Prediction/one_prediction/was_created_successfully.yml +75 -74
  37. data/spec/vcr_cassettes/BigML_Source/no_source/_all/must_be_empty.yml +25 -24
  38. data/spec/vcr_cassettes/BigML_Source/one_source/can_be_converted_in_a_dataset.yml +32 -32
  39. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_deleted_using_the_destroy_method.yml +21 -21
  40. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_be_find_using_the_reference.yml +48 -47
  41. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_remove_the_source.yml +43 -42
  42. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name.yml +77 -76
  43. data/spec/vcr_cassettes/BigML_Source/one_source/must_be_able_to_update_the_name_from_the_instance.yml +78 -77
  44. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_only_one_item.yml +53 -51
  45. data/spec/vcr_cassettes/BigML_Source/one_source/must_have_the_same_file_name.yml +52 -50
  46. data/spec/vcr_cassettes/BigML_Source/one_source/was_created_successfully.yml +14 -14
  47. metadata +5 -5
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://bigml.io/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
5
+ uri: https://bigml.io/dev/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -17,36 +17,37 @@ http_interactions:
17
17
  content-type:
18
18
  - application/json; charset=utf-8
19
19
  date:
20
- - Thu, 28 Jun 2012 22:29:35 GMT
20
+ - Sat, 14 Jul 2012 15:26:26 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
24
- - '1280'
24
+ - '1293'
25
25
  connection:
26
26
  - Close
27
27
  body:
28
28
  encoding: US-ASCII
29
29
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
30
30
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
31
- "application/octet-stream", "created": "2012-06-28T22:34:34.142000", "credits":
32
- 0.0, "description": "", "fields": {"000000": {"column_number": 0, "name":
33
- "sepal length", "optype": "numeric"}, "000001": {"column_number": 1, "name":
34
- "sepal width", "optype": "numeric"}, "000002": {"column_number": 2, "name":
35
- "petal length", "optype": "numeric"}, "000003": {"column_number": 3, "name":
36
- "petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
37
- "species", "optype": "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
38
- "name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
39
- 0, "private": true, "resource": "source/4fecdbfa15526875f90032a5", "size":
40
- 4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
41
- ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
42
- "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
43
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 62, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:34:36.524000"}]}'
31
+ "application/octet-stream", "created": "2012-07-14T15:28:04.690000", "credits":
32
+ 0.0, "description": "", "dev": true, "fields": {"000000": {"column_number":
33
+ 0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
34
+ 1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
35
+ 2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
36
+ 3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
37
+ 4, "name": "species", "optype": "categorical"}}, "file_name": "iris.csv",
38
+ "md5": "d1175c032e1042bec7f974c91e4a65ae", "name": "iris.csv", "number_of_datasets":
39
+ 0, "number_of_models": 0, "number_of_predictions": 0, "private": true, "resource":
40
+ "source/50019004155268794e000031", "size": 4608, "source_parser": {"header":
41
+ true, "locale": "en_US", "missing_tokens": ["", "N/A", "n/a", "NULL", "null",
42
+ "-", "#DIV/0", "#REF!", "#NAME?", "NIL", "nil", "NA", "na", "#VALUE!", "#NULL!",
43
+ "NaN", "#N/A", "#NUM!", "?"], "quote": "\"", "separator": ","}, "status":
44
+ {"code": 5, "elapsed": 63, "message": "The source has been created"}, "tags":
45
+ [], "type": 0, "updated": "2012-07-14T15:27:01.739000"}]}'
45
46
  http_version: '1.1'
46
- recorded_at: Thu, 28 Jun 2012 22:34:21 GMT
47
+ recorded_at: Sat, 14 Jul 2012 15:27:29 GMT
47
48
  - request:
48
49
  method: delete
49
- uri: https://bigml.io/andromeda/source/4fecdbfa15526875f90032a5?username=<USERNAME>&api_key=<API_KEY>
50
+ uri: https://bigml.io/dev/andromeda/source/50019004155268794e000031?username=<USERNAME>&api_key=<API_KEY>
50
51
  body:
51
52
  encoding: US-ASCII
52
53
  string: ''
@@ -63,7 +64,7 @@ http_interactions:
63
64
  content-type:
64
65
  - text/html; charset=utf-8
65
66
  date:
66
- - Thu, 28 Jun 2012 22:32:11 GMT
67
+ - Sat, 14 Jul 2012 15:21:29 GMT
67
68
  server:
68
69
  - nginx/1.0.12
69
70
  connection:
@@ -72,10 +73,10 @@ http_interactions:
72
73
  encoding: US-ASCII
73
74
  string: ''
74
75
  http_version: '1.1'
75
- recorded_at: Thu, 28 Jun 2012 22:34:24 GMT
76
+ recorded_at: Sat, 14 Jul 2012 15:27:32 GMT
76
77
  - request:
77
78
  method: post
78
- uri: https://bigml.io/andromeda/source
79
+ uri: https://bigml.io/dev/andromeda/source
79
80
  body:
80
81
  encoding: US-ASCII
81
82
  string: ''
@@ -83,7 +84,7 @@ http_interactions:
83
84
  content-type:
84
85
  - multipart/form-data; boundary=-----------RubyMultipartPost
85
86
  content-length:
86
- - '5147'
87
+ - '5149'
87
88
  connection:
88
89
  - close
89
90
  response:
@@ -94,30 +95,30 @@ http_interactions:
94
95
  content-type:
95
96
  - application/json; charset=utf-8
96
97
  date:
97
- - Thu, 28 Jun 2012 22:29:39 GMT
98
+ - Sat, 14 Jul 2012 15:26:31 GMT
98
99
  location:
99
- - http://bigml.io/andromeda/source/4fecdc0215526875f70033ec
100
+ - http://bigml.io/andromeda/source/5001900a1552681edf000033
100
101
  server:
101
102
  - nginx/1.0.12
102
103
  content-length:
103
- - '567'
104
+ - '580'
104
105
  connection:
105
106
  - Close
106
107
  body:
107
108
  encoding: US-ASCII
108
109
  string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
109
- "created": "2012-06-28T22:34:42.105055", "credits": 0.0, "description": "",
110
- "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
111
- "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
112
- 0, "private": true, "resource": "source/4fecdc0215526875f70033ec", "size":
110
+ "created": "2012-07-14T15:28:10.974857", "credits": 0.0, "description": "",
111
+ "dev": true, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
112
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
113
+ 0, "private": true, "resource": "source/5001900a1552681edf000033", "size":
113
114
  4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
114
115
  been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
115
- "2012-06-28T22:34:42.105075"}'
116
+ "2012-07-14T15:28:10.974888"}'
116
117
  http_version: '1.1'
117
- recorded_at: Thu, 28 Jun 2012 22:34:25 GMT
118
+ recorded_at: Sat, 14 Jul 2012 15:27:34 GMT
118
119
  - request:
119
120
  method: get
120
- uri: https://bigml.io/andromeda/source/4fecdc0215526875f70033ec?username=<USERNAME>&api_key=<API_KEY>
121
+ uri: https://bigml.io/dev/andromeda/source/5001900a1552681edf000033?username=<USERNAME>&api_key=<API_KEY>
121
122
  body:
122
123
  encoding: US-ASCII
123
124
  string: ''
@@ -132,35 +133,35 @@ http_interactions:
132
133
  content-type:
133
134
  - application/json; charset=utf-8
134
135
  date:
135
- - Thu, 28 Jun 2012 22:32:14 GMT
136
+ - Sat, 14 Jul 2012 15:21:32 GMT
136
137
  server:
137
138
  - nginx/1.0.12
138
139
  content-length:
139
- - '1179'
140
+ - '1192'
140
141
  connection:
141
142
  - Close
142
143
  body:
143
144
  encoding: US-ASCII
144
145
  string: ! '{"category": 0, "code": 200, "content_type": "application/octet-stream",
145
- "created": "2012-06-28T22:34:42.105000", "credits": 0.0, "description": "",
146
- "fields": {"000000": {"column_number": 0, "name": "sepal length", "optype":
147
- "numeric"}, "000001": {"column_number": 1, "name": "sepal width", "optype":
148
- "numeric"}, "000002": {"column_number": 2, "name": "petal length", "optype":
149
- "numeric"}, "000003": {"column_number": 3, "name": "petal width", "optype":
150
- "numeric"}, "000004": {"column_number": 4, "name": "species", "optype": "categorical"}},
151
- "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
152
- "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
153
- 0, "private": true, "resource": "source/4fecdc0215526875f70033ec", "size":
146
+ "created": "2012-07-14T15:28:10.974000", "credits": 0.0, "description": "",
147
+ "dev": true, "fields": {"000000": {"column_number": 0, "name": "sepal length",
148
+ "optype": "numeric"}, "000001": {"column_number": 1, "name": "sepal width",
149
+ "optype": "numeric"}, "000002": {"column_number": 2, "name": "petal length",
150
+ "optype": "numeric"}, "000003": {"column_number": 3, "name": "petal width",
151
+ "optype": "numeric"}, "000004": {"column_number": 4, "name": "species", "optype":
152
+ "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
153
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
154
+ 0, "private": true, "resource": "source/5001900a1552681edf000033", "size":
154
155
  4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
155
156
  ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
156
157
  "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
157
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 94, "message": "The
158
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:34:42.180000"}'
158
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 93, "message": "The
159
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-07-14T15:28:11.011000"}'
159
160
  http_version: '1.1'
160
- recorded_at: Thu, 28 Jun 2012 22:34:27 GMT
161
+ recorded_at: Sat, 14 Jul 2012 15:27:35 GMT
161
162
  - request:
162
163
  method: put
163
- uri: https://bigml.io/andromeda/source/4fecdc0215526875f70033ec?username=<USERNAME>&api_key=<API_KEY>
164
+ uri: https://bigml.io/dev/andromeda/source/5001900a1552681edf000033?username=<USERNAME>&api_key=<API_KEY>
164
165
  body:
165
166
  encoding: UTF-8
166
167
  string: ! '{"name":"new name"}'
@@ -177,7 +178,7 @@ http_interactions:
177
178
  content-type:
178
179
  - application/json; charset=utf-8
179
180
  date:
180
- - Thu, 28 Jun 2012 22:29:42 GMT
181
+ - Sat, 14 Jul 2012 15:26:33 GMT
181
182
  server:
182
183
  - nginx/1.0.12
183
184
  transfer-encoding:
@@ -187,25 +188,25 @@ http_interactions:
187
188
  body:
188
189
  encoding: US-ASCII
189
190
  string: ! '{"category": 0, "code": 202, "content_type": "application/octet-stream",
190
- "created": "2012-06-28T22:34:42.105000", "credits": 0.0, "description": "",
191
- "fields": {"000000": {"column_number": 0, "name": "sepal length", "optype":
192
- "numeric"}, "000001": {"column_number": 1, "name": "sepal width", "optype":
193
- "numeric"}, "000002": {"column_number": 2, "name": "petal length", "optype":
194
- "numeric"}, "000003": {"column_number": 3, "name": "petal width", "optype":
195
- "numeric"}, "000004": {"column_number": 4, "name": "species", "optype": "categorical"}},
196
- "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
197
- "new name", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
198
- 0, "private": true, "resource": "source/4fecdc0215526875f70033ec", "size":
191
+ "created": "2012-07-14T15:28:10.974000", "credits": 0.0, "description": "",
192
+ "dev": true, "fields": {"000000": {"column_number": 0, "name": "sepal length",
193
+ "optype": "numeric"}, "000001": {"column_number": 1, "name": "sepal width",
194
+ "optype": "numeric"}, "000002": {"column_number": 2, "name": "petal length",
195
+ "optype": "numeric"}, "000003": {"column_number": 3, "name": "petal width",
196
+ "optype": "numeric"}, "000004": {"column_number": 4, "name": "species", "optype":
197
+ "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
198
+ "name": "new name", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
199
+ 0, "private": true, "resource": "source/5001900a1552681edf000033", "size":
199
200
  4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
200
201
  ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
201
202
  "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
202
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 94, "message": "The
203
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:33:55.977148"}'
203
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 93, "message": "The
204
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-07-14T15:27:09.584195"}'
204
205
  http_version: '1.1'
205
- recorded_at: Thu, 28 Jun 2012 22:34:28 GMT
206
+ recorded_at: Sat, 14 Jul 2012 15:27:36 GMT
206
207
  - request:
207
208
  method: get
208
- uri: https://bigml.io/andromeda/source/4fecdc0215526875f70033ec?username=<USERNAME>&api_key=<API_KEY>
209
+ uri: https://bigml.io/dev/andromeda/source/5001900a1552681edf000033?username=<USERNAME>&api_key=<API_KEY>
209
210
  body:
210
211
  encoding: US-ASCII
211
212
  string: ''
@@ -220,30 +221,30 @@ http_interactions:
220
221
  content-type:
221
222
  - application/json; charset=utf-8
222
223
  date:
223
- - Thu, 28 Jun 2012 22:32:16 GMT
224
+ - Sat, 14 Jul 2012 15:21:34 GMT
224
225
  server:
225
226
  - nginx/1.0.12
226
227
  content-length:
227
- - '1179'
228
+ - '1192'
228
229
  connection:
229
230
  - Close
230
231
  body:
231
232
  encoding: US-ASCII
232
233
  string: ! '{"category": 0, "code": 200, "content_type": "application/octet-stream",
233
- "created": "2012-06-28T22:34:42.105000", "credits": 0.0, "description": "",
234
- "fields": {"000000": {"column_number": 0, "name": "sepal length", "optype":
235
- "numeric"}, "000001": {"column_number": 1, "name": "sepal width", "optype":
236
- "numeric"}, "000002": {"column_number": 2, "name": "petal length", "optype":
237
- "numeric"}, "000003": {"column_number": 3, "name": "petal width", "optype":
238
- "numeric"}, "000004": {"column_number": 4, "name": "species", "optype": "categorical"}},
239
- "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
240
- "new name", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
241
- 0, "private": true, "resource": "source/4fecdc0215526875f70033ec", "size":
234
+ "created": "2012-07-14T15:28:10.974000", "credits": 0.0, "description": "",
235
+ "dev": true, "fields": {"000000": {"column_number": 0, "name": "sepal length",
236
+ "optype": "numeric"}, "000001": {"column_number": 1, "name": "sepal width",
237
+ "optype": "numeric"}, "000002": {"column_number": 2, "name": "petal length",
238
+ "optype": "numeric"}, "000003": {"column_number": 3, "name": "petal width",
239
+ "optype": "numeric"}, "000004": {"column_number": 4, "name": "species", "optype":
240
+ "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
241
+ "name": "new name", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
242
+ 0, "private": true, "resource": "source/5001900a1552681edf000033", "size":
242
243
  4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
243
244
  ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
244
245
  "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
245
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 94, "message": "The
246
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:33:55.977000"}'
246
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 93, "message": "The
247
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-07-14T15:27:09.584000"}'
247
248
  http_version: '1.1'
248
- recorded_at: Thu, 28 Jun 2012 22:34:29 GMT
249
+ recorded_at: Sat, 14 Jul 2012 15:27:37 GMT
249
250
  recorded_with: VCR 2.2.2
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://bigml.io/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
5
+ uri: https://bigml.io/dev/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -17,36 +17,37 @@ http_interactions:
17
17
  content-type:
18
18
  - application/json; charset=utf-8
19
19
  date:
20
- - Thu, 28 Jun 2012 22:29:44 GMT
20
+ - Sat, 14 Jul 2012 15:26:35 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
24
- - '1280'
24
+ - '1293'
25
25
  connection:
26
26
  - Close
27
27
  body:
28
28
  encoding: US-ASCII
29
29
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
30
30
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
31
- "application/octet-stream", "created": "2012-06-28T22:34:42.105000", "credits":
32
- 0.0, "description": "", "fields": {"000000": {"column_number": 0, "name":
33
- "sepal length", "optype": "numeric"}, "000001": {"column_number": 1, "name":
34
- "sepal width", "optype": "numeric"}, "000002": {"column_number": 2, "name":
35
- "petal length", "optype": "numeric"}, "000003": {"column_number": 3, "name":
36
- "petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
37
- "species", "optype": "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
38
- "name": "new name", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
39
- 0, "private": true, "resource": "source/4fecdc0215526875f70033ec", "size":
40
- 4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
41
- ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
42
- "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
43
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 94, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:33:55.977000"}]}'
31
+ "application/octet-stream", "created": "2012-07-14T15:28:10.974000", "credits":
32
+ 0.0, "description": "", "dev": true, "fields": {"000000": {"column_number":
33
+ 0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
34
+ 1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
35
+ 2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
36
+ 3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
37
+ 4, "name": "species", "optype": "categorical"}}, "file_name": "iris.csv",
38
+ "md5": "d1175c032e1042bec7f974c91e4a65ae", "name": "new name", "number_of_datasets":
39
+ 0, "number_of_models": 0, "number_of_predictions": 0, "private": true, "resource":
40
+ "source/5001900a1552681edf000033", "size": 4608, "source_parser": {"header":
41
+ true, "locale": "en_US", "missing_tokens": ["", "N/A", "n/a", "NULL", "null",
42
+ "-", "#DIV/0", "#REF!", "#NAME?", "NIL", "nil", "NA", "na", "#VALUE!", "#NULL!",
43
+ "NaN", "#N/A", "#NUM!", "?"], "quote": "\"", "separator": ","}, "status":
44
+ {"code": 5, "elapsed": 93, "message": "The source has been created"}, "tags":
45
+ [], "type": 0, "updated": "2012-07-14T15:27:09.584000"}]}'
45
46
  http_version: '1.1'
46
- recorded_at: Thu, 28 Jun 2012 22:34:30 GMT
47
+ recorded_at: Sat, 14 Jul 2012 15:27:38 GMT
47
48
  - request:
48
49
  method: delete
49
- uri: https://bigml.io/andromeda/source/4fecdc0215526875f70033ec?username=<USERNAME>&api_key=<API_KEY>
50
+ uri: https://bigml.io/dev/andromeda/source/5001900a1552681edf000033?username=<USERNAME>&api_key=<API_KEY>
50
51
  body:
51
52
  encoding: US-ASCII
52
53
  string: ''
@@ -63,7 +64,7 @@ http_interactions:
63
64
  content-type:
64
65
  - text/html; charset=utf-8
65
66
  date:
66
- - Thu, 28 Jun 2012 22:32:21 GMT
67
+ - Sat, 14 Jul 2012 15:21:38 GMT
67
68
  server:
68
69
  - nginx/1.0.12
69
70
  connection:
@@ -72,10 +73,10 @@ http_interactions:
72
73
  encoding: US-ASCII
73
74
  string: ''
74
75
  http_version: '1.1'
75
- recorded_at: Thu, 28 Jun 2012 22:34:34 GMT
76
+ recorded_at: Sat, 14 Jul 2012 15:27:41 GMT
76
77
  - request:
77
78
  method: post
78
- uri: https://bigml.io/andromeda/source
79
+ uri: https://bigml.io/dev/andromeda/source
79
80
  body:
80
81
  encoding: US-ASCII
81
82
  string: ''
@@ -83,7 +84,7 @@ http_interactions:
83
84
  content-type:
84
85
  - multipart/form-data; boundary=-----------RubyMultipartPost
85
86
  content-length:
86
- - '5147'
87
+ - '5149'
87
88
  connection:
88
89
  - close
89
90
  response:
@@ -94,30 +95,30 @@ http_interactions:
94
95
  content-type:
95
96
  - application/json; charset=utf-8
96
97
  date:
97
- - Thu, 28 Jun 2012 22:29:49 GMT
98
+ - Sat, 14 Jul 2012 15:26:40 GMT
98
99
  location:
99
- - http://bigml.io/andromeda/source/4fecdbdb035d0741ef0032af
100
+ - http://bigml.io/andromeda/source/50018fd3035d074059000044
100
101
  server:
101
102
  - nginx/1.0.12
102
103
  content-length:
103
- - '567'
104
+ - '580'
104
105
  connection:
105
106
  - Close
106
107
  body:
107
108
  encoding: US-ASCII
108
109
  string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
109
- "created": "2012-06-28T22:34:03.361936", "credits": 0.0, "description": "",
110
- "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
111
- "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
112
- 0, "private": true, "resource": "source/4fecdbdb035d0741ef0032af", "size":
110
+ "created": "2012-07-14T15:27:15.768563", "credits": 0.0, "description": "",
111
+ "dev": true, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
112
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
113
+ 0, "private": true, "resource": "source/50018fd3035d074059000044", "size":
113
114
  4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
114
115
  been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
115
- "2012-06-28T22:34:03.361959"}'
116
+ "2012-07-14T15:27:15.768586"}'
116
117
  http_version: '1.1'
117
- recorded_at: Thu, 28 Jun 2012 22:34:36 GMT
118
+ recorded_at: Sat, 14 Jul 2012 15:27:43 GMT
118
119
  - request:
119
120
  method: get
120
- uri: https://bigml.io/andromeda/source/4fecdbdb035d0741ef0032af?username=<USERNAME>&api_key=<API_KEY>
121
+ uri: https://bigml.io/dev/andromeda/source/50018fd3035d074059000044?username=<USERNAME>&api_key=<API_KEY>
121
122
  body:
122
123
  encoding: US-ASCII
123
124
  string: ''
@@ -132,35 +133,35 @@ http_interactions:
132
133
  content-type:
133
134
  - application/json; charset=utf-8
134
135
  date:
135
- - Thu, 28 Jun 2012 22:32:24 GMT
136
+ - Sat, 14 Jul 2012 15:21:41 GMT
136
137
  server:
137
138
  - nginx/1.0.12
138
139
  content-length:
139
- - '1179'
140
+ - '1192'
140
141
  connection:
141
142
  - Close
142
143
  body:
143
144
  encoding: US-ASCII
144
145
  string: ! '{"category": 0, "code": 200, "content_type": "application/octet-stream",
145
- "created": "2012-06-28T22:34:03.361000", "credits": 0.0, "description": "",
146
- "fields": {"000000": {"column_number": 0, "name": "sepal length", "optype":
147
- "numeric"}, "000001": {"column_number": 1, "name": "sepal width", "optype":
148
- "numeric"}, "000002": {"column_number": 2, "name": "petal length", "optype":
149
- "numeric"}, "000003": {"column_number": 3, "name": "petal width", "optype":
150
- "numeric"}, "000004": {"column_number": 4, "name": "species", "optype": "categorical"}},
151
- "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
152
- "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
153
- 0, "private": true, "resource": "source/4fecdbdb035d0741ef0032af", "size":
146
+ "created": "2012-07-14T15:27:15.768000", "credits": 0.0, "description": "",
147
+ "dev": true, "fields": {"000000": {"column_number": 0, "name": "sepal length",
148
+ "optype": "numeric"}, "000001": {"column_number": 1, "name": "sepal width",
149
+ "optype": "numeric"}, "000002": {"column_number": 2, "name": "petal length",
150
+ "optype": "numeric"}, "000003": {"column_number": 3, "name": "petal width",
151
+ "optype": "numeric"}, "000004": {"column_number": 4, "name": "species", "optype":
152
+ "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
153
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
154
+ 0, "private": true, "resource": "source/50018fd3035d074059000044", "size":
154
155
  4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
155
156
  ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
156
157
  "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
157
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 76, "message": "The
158
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:34:03.412000"}'
158
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 98, "message": "The
159
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-07-14T15:27:15.792000"}'
159
160
  http_version: '1.1'
160
- recorded_at: Thu, 28 Jun 2012 22:34:37 GMT
161
+ recorded_at: Sat, 14 Jul 2012 15:27:44 GMT
161
162
  - request:
162
163
  method: put
163
- uri: https://bigml.io/andromeda/source/4fecdbdb035d0741ef0032af?username=<USERNAME>&api_key=<API_KEY>
164
+ uri: https://bigml.io/dev/andromeda/source/50018fd3035d074059000044?username=<USERNAME>&api_key=<API_KEY>
164
165
  body:
165
166
  encoding: UTF-8
166
167
  string: ! '{"name":"new name"}'
@@ -177,35 +178,35 @@ http_interactions:
177
178
  content-type:
178
179
  - application/json; charset=utf-8
179
180
  date:
180
- - Thu, 28 Jun 2012 22:29:52 GMT
181
+ - Sat, 14 Jul 2012 15:26:42 GMT
181
182
  server:
182
183
  - nginx/1.0.12
183
184
  content-length:
184
- - '1179'
185
+ - '1192'
185
186
  connection:
186
187
  - Close
187
188
  body:
188
189
  encoding: US-ASCII
189
190
  string: ! '{"category": 0, "code": 202, "content_type": "application/octet-stream",
190
- "created": "2012-06-28T22:34:03.361000", "credits": 0.0, "description": "",
191
- "fields": {"000000": {"column_number": 0, "name": "sepal length", "optype":
192
- "numeric"}, "000001": {"column_number": 1, "name": "sepal width", "optype":
193
- "numeric"}, "000002": {"column_number": 2, "name": "petal length", "optype":
194
- "numeric"}, "000003": {"column_number": 3, "name": "petal width", "optype":
195
- "numeric"}, "000004": {"column_number": 4, "name": "species", "optype": "categorical"}},
196
- "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
197
- "new name", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
198
- 0, "private": true, "resource": "source/4fecdbdb035d0741ef0032af", "size":
191
+ "created": "2012-07-14T15:27:15.768000", "credits": 0.0, "description": "",
192
+ "dev": true, "fields": {"000000": {"column_number": 0, "name": "sepal length",
193
+ "optype": "numeric"}, "000001": {"column_number": 1, "name": "sepal width",
194
+ "optype": "numeric"}, "000002": {"column_number": 2, "name": "petal length",
195
+ "optype": "numeric"}, "000003": {"column_number": 3, "name": "petal width",
196
+ "optype": "numeric"}, "000004": {"column_number": 4, "name": "species", "optype":
197
+ "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
198
+ "name": "new name", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
199
+ 0, "private": true, "resource": "source/50018fd3035d074059000044", "size":
199
200
  4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
200
201
  ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
201
202
  "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
202
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 76, "message": "The
203
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:34:54.872612"}'
203
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 98, "message": "The
204
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-07-14T15:28:22.898575"}'
204
205
  http_version: '1.1'
205
- recorded_at: Thu, 28 Jun 2012 22:34:38 GMT
206
+ recorded_at: Sat, 14 Jul 2012 15:27:45 GMT
206
207
  - request:
207
208
  method: get
208
- uri: https://bigml.io/andromeda/source/4fecdbdb035d0741ef0032af?username=<USERNAME>&api_key=<API_KEY>
209
+ uri: https://bigml.io/dev/andromeda/source/50018fd3035d074059000044?username=<USERNAME>&api_key=<API_KEY>
209
210
  body:
210
211
  encoding: US-ASCII
211
212
  string: ''
@@ -220,30 +221,30 @@ http_interactions:
220
221
  content-type:
221
222
  - application/json; charset=utf-8
222
223
  date:
223
- - Thu, 28 Jun 2012 22:32:26 GMT
224
+ - Sat, 14 Jul 2012 15:21:43 GMT
224
225
  server:
225
226
  - nginx/1.0.12
226
227
  content-length:
227
- - '1179'
228
+ - '1192'
228
229
  connection:
229
230
  - Close
230
231
  body:
231
232
  encoding: US-ASCII
232
233
  string: ! '{"category": 0, "code": 200, "content_type": "application/octet-stream",
233
- "created": "2012-06-28T22:34:03.361000", "credits": 0.0, "description": "",
234
- "fields": {"000000": {"column_number": 0, "name": "sepal length", "optype":
235
- "numeric"}, "000001": {"column_number": 1, "name": "sepal width", "optype":
236
- "numeric"}, "000002": {"column_number": 2, "name": "petal length", "optype":
237
- "numeric"}, "000003": {"column_number": 3, "name": "petal width", "optype":
238
- "numeric"}, "000004": {"column_number": 4, "name": "species", "optype": "categorical"}},
239
- "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
240
- "new name", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
241
- 0, "private": true, "resource": "source/4fecdbdb035d0741ef0032af", "size":
234
+ "created": "2012-07-14T15:27:15.768000", "credits": 0.0, "description": "",
235
+ "dev": true, "fields": {"000000": {"column_number": 0, "name": "sepal length",
236
+ "optype": "numeric"}, "000001": {"column_number": 1, "name": "sepal width",
237
+ "optype": "numeric"}, "000002": {"column_number": 2, "name": "petal length",
238
+ "optype": "numeric"}, "000003": {"column_number": 3, "name": "petal width",
239
+ "optype": "numeric"}, "000004": {"column_number": 4, "name": "species", "optype":
240
+ "categorical"}}, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
241
+ "name": "new name", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
242
+ 0, "private": true, "resource": "source/50018fd3035d074059000044", "size":
242
243
  4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
243
244
  ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
244
245
  "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
245
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 76, "message": "The
246
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:34:54.872000"}'
246
+ "\"", "separator": ","}, "status": {"code": 5, "elapsed": 98, "message": "The
247
+ source has been created"}, "tags": [], "type": 0, "updated": "2012-07-14T15:28:22.898000"}'
247
248
  http_version: '1.1'
248
- recorded_at: Thu, 28 Jun 2012 22:34:39 GMT
249
+ recorded_at: Sat, 14 Jul 2012 15:27:46 GMT
249
250
  recorded_with: VCR 2.2.2