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:00 GMT
20
+ - Sat, 14 Jul 2012 15:26:04 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:01.125000", "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/4fecdbd915526875f70033e8", "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": 65, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:34:01.213000"}]}'
31
+ "application/octet-stream", "created": "2012-07-14T15:26:37.779000", "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/50018fad035d07404e00003c", "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": 66, "message": "The source has been created"}, "tags":
45
+ [], "type": 0, "updated": "2012-07-14T15:26:37.878000"}]}'
45
46
  http_version: '1.1'
46
- recorded_at: Thu, 28 Jun 2012 22:33:47 GMT
47
+ recorded_at: Sat, 14 Jul 2012 15:27:07 GMT
47
48
  - request:
48
49
  method: delete
49
- uri: https://bigml.io/andromeda/source/4fecdbd915526875f70033e8?username=<USERNAME>&api_key=<API_KEY>
50
+ uri: https://bigml.io/dev/andromeda/source/50018fad035d07404e00003c?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:31:36 GMT
67
+ - Sat, 14 Jul 2012 15:21:06 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:33:49 GMT
76
+ recorded_at: Sat, 14 Jul 2012 15:27:09 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:05 GMT
98
+ - Sat, 14 Jul 2012 15:26:08 GMT
98
99
  location:
99
- - http://bigml.io/andromeda/source/4fecdbe015526875f70033ea
100
+ - http://bigml.io/andromeda/source/50018ff41552681ee4000023
100
101
  server:
101
102
  - nginx/1.0.12
102
- transfer-encoding:
103
- - chunked
103
+ content-length:
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:08.161782", "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/4fecdbe015526875f70033ea", "size":
110
+ "created": "2012-07-14T15:27:48.196487", "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/50018ff41552681ee4000023", "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:08.161816"}'
116
+ "2012-07-14T15:27:48.196512"}'
116
117
  http_version: '1.1'
117
- recorded_at: Thu, 28 Jun 2012 22:33:52 GMT
118
+ recorded_at: Sat, 14 Jul 2012 15:27:11 GMT
118
119
  - request:
119
120
  method: get
120
- uri: https://bigml.io/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
121
+ uri: https://bigml.io/dev/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
121
122
  body:
122
123
  encoding: US-ASCII
123
124
  string: ''
@@ -132,31 +133,32 @@ http_interactions:
132
133
  content-type:
133
134
  - application/json; charset=utf-8
134
135
  date:
135
- - Thu, 28 Jun 2012 22:31:40 GMT
136
+ - Sat, 14 Jul 2012 15:21:09 GMT
136
137
  server:
137
138
  - nginx/1.0.12
138
139
  content-length:
139
- - '1280'
140
+ - '1293'
140
141
  connection:
141
142
  - Close
142
143
  body:
143
144
  encoding: US-ASCII
144
145
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
145
146
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
146
- "application/octet-stream", "created": "2012-06-28T22:34:08.161000", "credits":
147
- 0.0, "description": "", "fields": {"000000": {"column_number": 0, "name":
148
- "sepal length", "optype": "numeric"}, "000001": {"column_number": 1, "name":
149
- "sepal width", "optype": "numeric"}, "000002": {"column_number": 2, "name":
150
- "petal length", "optype": "numeric"}, "000003": {"column_number": 3, "name":
151
- "petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
152
- "species", "optype": "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/4fecdbe015526875f70033ea", "size":
155
- 4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
156
- ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
157
- "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
158
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 61, "message": "The
159
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:34:08.198000"}]}'
147
+ "application/octet-stream", "created": "2012-07-14T15:27:48.196000", "credits":
148
+ 0.0, "description": "", "dev": true, "fields": {"000000": {"column_number":
149
+ 0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
150
+ 1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
151
+ 2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
152
+ 3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
153
+ 4, "name": "species", "optype": "categorical"}}, "file_name": "iris.csv",
154
+ "md5": "d1175c032e1042bec7f974c91e4a65ae", "name": "iris.csv", "number_of_datasets":
155
+ 0, "number_of_models": 0, "number_of_predictions": 0, "private": true, "resource":
156
+ "source/50018ff41552681ee4000023", "size": 4608, "source_parser": {"header":
157
+ true, "locale": "en_US", "missing_tokens": ["", "N/A", "n/a", "NULL", "null",
158
+ "-", "#DIV/0", "#REF!", "#NAME?", "NIL", "nil", "NA", "na", "#VALUE!", "#NULL!",
159
+ "NaN", "#N/A", "#NUM!", "?"], "quote": "\"", "separator": ","}, "status":
160
+ {"code": 5, "elapsed": 90, "message": "The source has been created"}, "tags":
161
+ [], "type": 0, "updated": "2012-07-14T15:26:44.637000"}]}'
160
162
  http_version: '1.1'
161
- recorded_at: Thu, 28 Jun 2012 22:33:53 GMT
163
+ recorded_at: Sat, 14 Jul 2012 15:27:12 GMT
162
164
  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:08 GMT
20
+ - Sat, 14 Jul 2012 15:26:10 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:08.161000", "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/4fecdbe015526875f70033ea", "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": 61, "message": "The
44
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:34:09.469000"}]}'
31
+ "application/octet-stream", "created": "2012-07-14T15:27:48.196000", "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/50018ff41552681ee4000023", "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": 90, "message": "The source has been created"}, "tags":
45
+ [], "type": 0, "updated": "2012-07-14T15:26:44.637000"}]}'
45
46
  http_version: '1.1'
46
- recorded_at: Thu, 28 Jun 2012 22:33:54 GMT
47
+ recorded_at: Sat, 14 Jul 2012 15:27:13 GMT
47
48
  - request:
48
49
  method: delete
49
- uri: https://bigml.io/andromeda/source/4fecdbe015526875f70033ea?username=<USERNAME>&api_key=<API_KEY>
50
+ uri: https://bigml.io/dev/andromeda/source/50018ff41552681ee4000023?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:31:44 GMT
67
+ - Sat, 14 Jul 2012 15:21:14 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:33:57 GMT
76
+ recorded_at: Sat, 14 Jul 2012 15:27:17 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:13 GMT
98
+ - Sat, 14 Jul 2012 15:26:16 GMT
98
99
  location:
99
- - http://bigml.io/andromeda/source/4fecdbe715526875f300334e
100
+ - http://bigml.io/andromeda/source/50018ffb155268794e00002d
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:15.379681", "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/4fecdbe715526875f300334e", "size":
110
+ "created": "2012-07-14T15:27:55.967144", "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/50018ffb155268794e00002d", "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:15.379719"}'
116
+ "2012-07-14T15:27:55.967174"}'
116
117
  http_version: '1.1'
117
- recorded_at: Thu, 28 Jun 2012 22:33:59 GMT
118
+ recorded_at: Sat, 14 Jul 2012 15:27:19 GMT
118
119
  - request:
119
120
  method: get
120
- uri: https://bigml.io/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
121
+ uri: https://bigml.io/dev/andromeda/source?username=<USERNAME>&api_key=<API_KEY>
121
122
  body:
122
123
  encoding: US-ASCII
123
124
  string: ''
@@ -132,31 +133,32 @@ http_interactions:
132
133
  content-type:
133
134
  - application/json; charset=utf-8
134
135
  date:
135
- - Thu, 28 Jun 2012 22:31:47 GMT
136
+ - Sat, 14 Jul 2012 15:21:17 GMT
136
137
  server:
137
138
  - nginx/1.0.12
138
139
  content-length:
139
- - '1280'
140
+ - '1286'
140
141
  connection:
141
142
  - Close
142
143
  body:
143
144
  encoding: US-ASCII
144
145
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
145
146
  "total_count": 1}, "objects": [{"category": 0, "code": 200, "content_type":
146
- "application/octet-stream", "created": "2012-06-28T22:34:15.379000", "credits":
147
- 0.0, "description": "", "fields": {"000000": {"column_number": 0, "name":
148
- "sepal length", "optype": "numeric"}, "000001": {"column_number": 1, "name":
149
- "sepal width", "optype": "numeric"}, "000002": {"column_number": 2, "name":
150
- "petal length", "optype": "numeric"}, "000003": {"column_number": 3, "name":
151
- "petal width", "optype": "numeric"}, "000004": {"column_number": 4, "name":
152
- "species", "optype": "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/4fecdbe715526875f300334e", "size":
155
- 4608, "source_parser": {"header": true, "locale": "en_US", "missing_tokens":
156
- ["", "N/A", "n/a", "NULL", "null", "-", "#DIV/0", "#REF!", "#NAME?", "NIL",
157
- "nil", "NA", "na", "#VALUE!", "#NULL!", "NaN", "#N/A", "#NUM!", "?"], "quote":
158
- "\"", "separator": ","}, "status": {"code": 5, "elapsed": 63, "message": "The
159
- source has been created"}, "tags": [], "type": 0, "updated": "2012-06-28T22:34:15.511000"}]}'
147
+ "application/octet-stream", "created": "2012-07-14T15:27:55.967000", "credits":
148
+ 0.0, "description": "", "dev": true, "fields": {"000000": {"column_number":
149
+ 0, "name": "sepal length", "optype": "numeric"}, "000001": {"column_number":
150
+ 1, "name": "sepal width", "optype": "numeric"}, "000002": {"column_number":
151
+ 2, "name": "petal length", "optype": "numeric"}, "000003": {"column_number":
152
+ 3, "name": "petal width", "optype": "numeric"}, "000004": {"column_number":
153
+ 4, "name": "species", "optype": "categorical"}}, "file_name": "iris.csv",
154
+ "md5": "d1175c032e1042bec7f974c91e4a65ae", "name": "iris.csv", "number_of_datasets":
155
+ 0, "number_of_models": 0, "number_of_predictions": 0, "private": true, "resource":
156
+ "source/50018ffb155268794e00002d", "size": 4608, "source_parser": {"header":
157
+ true, "locale": "en_US", "missing_tokens": ["", "N/A", "n/a", "NULL", "null",
158
+ "-", "#DIV/0", "#REF!", "#NAME?", "NIL", "nil", "NA", "na", "#VALUE!", "#NULL!",
159
+ "NaN", "#N/A", "#NUM!", "?"], "quote": "\"", "separator": ","}, "status":
160
+ {"code": 5, "elapsed": 80, "message": "The source has been created"}, "tags":
161
+ [], "type": 0, "updated": "2012-07-14T15:27:56"}]}'
160
162
  http_version: '1.1'
161
- recorded_at: Thu, 28 Jun 2012 22:34:00 GMT
163
+ recorded_at: Sat, 14 Jul 2012 15:27:20 GMT
162
164
  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,7 +17,7 @@ http_interactions:
17
17
  content-type:
18
18
  - application/json; charset=utf-8
19
19
  date:
20
- - Thu, 28 Jun 2012 22:28:56 GMT
20
+ - Sat, 14 Jul 2012 15:26:00 GMT
21
21
  server:
22
22
  - nginx/1.0.12
23
23
  content-length:
@@ -29,10 +29,10 @@ http_interactions:
29
29
  string: ! '{"meta": {"limit": 20, "next": null, "offset": 0, "previous": null,
30
30
  "total_count": 0}, "objects": []}'
31
31
  http_version: '1.1'
32
- recorded_at: Thu, 28 Jun 2012 22:33:43 GMT
32
+ recorded_at: Sat, 14 Jul 2012 15:27:03 GMT
33
33
  - request:
34
34
  method: post
35
- uri: https://bigml.io/andromeda/source
35
+ uri: https://bigml.io/dev/andromeda/source
36
36
  body:
37
37
  encoding: US-ASCII
38
38
  string: ''
@@ -40,7 +40,7 @@ http_interactions:
40
40
  content-type:
41
41
  - multipart/form-data; boundary=-----------RubyMultipartPost
42
42
  content-length:
43
- - '5147'
43
+ - '5149'
44
44
  connection:
45
45
  - close
46
46
  response:
@@ -51,25 +51,25 @@ http_interactions:
51
51
  content-type:
52
52
  - application/json; charset=utf-8
53
53
  date:
54
- - Thu, 28 Jun 2012 22:31:31 GMT
54
+ - Sat, 14 Jul 2012 15:21:02 GMT
55
55
  location:
56
- - http://bigml.io/andromeda/source/4fecdbd915526875f70033e8
56
+ - http://bigml.io/andromeda/source/50018fad035d07404e00003c
57
57
  server:
58
58
  - nginx/1.0.12
59
59
  content-length:
60
- - '567'
60
+ - '580'
61
61
  connection:
62
62
  - Close
63
63
  body:
64
64
  encoding: US-ASCII
65
65
  string: ! '{"category": 0, "code": 201, "content_type": "application/octet-stream",
66
- "created": "2012-06-28T22:34:01.125975", "credits": 0.0, "description": "",
67
- "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae", "name":
68
- "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
69
- 0, "private": true, "resource": "source/4fecdbd915526875f70033e8", "size":
66
+ "created": "2012-07-14T15:26:37.779325", "credits": 0.0, "description": "",
67
+ "dev": true, "file_name": "iris.csv", "md5": "d1175c032e1042bec7f974c91e4a65ae",
68
+ "name": "iris.csv", "number_of_datasets": 0, "number_of_models": 0, "number_of_predictions":
69
+ 0, "private": true, "resource": "source/50018fad035d07404e00003c", "size":
70
70
  4608, "source_parser": {}, "status": {"code": 1, "message": "The request has
71
71
  been queued and will be processed soon"}, "tags": [], "type": 0, "updated":
72
- "2012-06-28T22:34:01.125996"}'
72
+ "2012-07-14T15:26:37.779349"}'
73
73
  http_version: '1.1'
74
- recorded_at: Thu, 28 Jun 2012 22:33:45 GMT
74
+ recorded_at: Sat, 14 Jul 2012 15:27:05 GMT
75
75
  recorded_with: VCR 2.2.2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: big_ml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-06-28 00:00:00.000000000 Z
13
+ date: 2012-10-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httmultiparty
@@ -185,7 +185,7 @@ files:
185
185
  - spec/vcr_cassettes/BigML_Source/one_source/must_have_only_one_item.yml
186
186
  - spec/vcr_cassettes/BigML_Source/one_source/must_have_the_same_file_name.yml
187
187
  - spec/vcr_cassettes/BigML_Source/one_source/was_created_successfully.yml
188
- homepage: https://bigml.com
188
+ homepage: http://vigosan.github.com/big_ml
189
189
  licenses: []
190
190
  post_install_message:
191
191
  rdoc_options: []
@@ -199,7 +199,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
199
199
  version: '0'
200
200
  segments:
201
201
  - 0
202
- hash: 1923158400773446893
202
+ hash: -1251087903395477845
203
203
  required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  none: false
205
205
  requirements:
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  version: '0'
209
209
  segments:
210
210
  - 0
211
- hash: 1923158400773446893
211
+ hash: -1251087903395477845
212
212
  requirements: []
213
213
  rubyforge_project:
214
214
  rubygems_version: 1.8.23