storageroom-to-contentful 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -1
- data/CHANGELOG.md +7 -0
- data/Gemfile +0 -1
- data/Gemfile.lock +1 -8
- data/README.md +1 -5
- data/contenftul_fields_types.yml +2 -0
- data/lib/version.rb +1 -1
- data/spec/support/data/collections/codequest.json +165 -0
- data/spec/support/data/convert/collections/symbol_test.json +60 -0
- data/spec/support/data/convert/entries/symbol_test/symbol_entry.json +6 -0
- data/spec/support/data/convert/mapping/collection_mapping.json +165 -0
- data/spec/support/data/entries/codequest/540d6d961e29fa3559000d0d.json +51 -0
- data/spec/support/data/save_to_file.json +51 -0
- metadata +16 -3
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
storageroom-to-contentful (0.0.
|
4
|
+
storageroom-to-contentful (0.0.3)
|
5
5
|
contentful-management (~> 0.2)
|
6
6
|
http (~> 0.6)
|
7
7
|
i18n (~> 0.6)
|
@@ -20,7 +20,6 @@ GEM
|
|
20
20
|
crack (0.4.2)
|
21
21
|
safe_yaml (~> 1.0.0)
|
22
22
|
diff-lcs (1.2.5)
|
23
|
-
docile (1.1.5)
|
24
23
|
http (0.6.2)
|
25
24
|
http_parser.rb (~> 0.6.0)
|
26
25
|
http_parser.rb (0.6.0)
|
@@ -52,11 +51,6 @@ GEM
|
|
52
51
|
ruby-progressbar (~> 1.4)
|
53
52
|
ruby-progressbar (1.6.0)
|
54
53
|
safe_yaml (1.0.3)
|
55
|
-
simplecov (0.9.1)
|
56
|
-
docile (~> 1.1.0)
|
57
|
-
multi_json (~> 1.0)
|
58
|
-
simplecov-html (~> 0.8.0)
|
59
|
-
simplecov-html (0.8.0)
|
60
54
|
slop (3.6.0)
|
61
55
|
vcr (2.9.3)
|
62
56
|
webmock (1.18.0)
|
@@ -71,7 +65,6 @@ DEPENDENCIES
|
|
71
65
|
rake
|
72
66
|
rspec
|
73
67
|
rubocop
|
74
|
-
simplecov
|
75
68
|
storageroom-to-contentful!
|
76
69
|
vcr
|
77
70
|
webmock
|
data/README.md
CHANGED
@@ -31,6 +31,7 @@ APPLICATION_API_KEY: application_key_id%
|
|
31
31
|
```
|
32
32
|
|
33
33
|
Your Contentful access token can be easiest created using the [Contentful Management API - documentation](https://www.contentful.com/developers/documentation/content-management-api/#getting-started)
|
34
|
+
The Contentful organization id can be found in your account settings.
|
34
35
|
|
35
36
|
Once you installed the Gem and created the YAML file with the credentials you can invoke the tool using:
|
36
37
|
|
@@ -152,11 +153,6 @@ Once the exported StorageRoom data is transformed to be compatible with Contentf
|
|
152
153
|
Run script again and select action '3' from the menu.
|
153
154
|
Enter the name of the new space on Contentful and import the collections as content types.
|
154
155
|
|
155
|
-
Once the exported StorageRoom data is transformed to be compatible with Contentful you can start the import.
|
156
|
-
|
157
|
-
Run script again and select action '3' from the menu.
|
158
|
-
Enter the name of the new space on Contentful and import the collections as content types.
|
159
|
-
|
160
156
|
## Convert symbol values to String:
|
161
157
|
If the collection has a field of type ```Symbol```, the value of the entry must be strings.
|
162
158
|
|
data/contenftul_fields_types.yml
CHANGED
data/lib/version.rb
CHANGED
@@ -0,0 +1,165 @@
|
|
1
|
+
{
|
2
|
+
"@type": "Collection",
|
3
|
+
"@url": "http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d",
|
4
|
+
"@account_url": "http://api.storageroomapp.com/accounts/account_id",
|
5
|
+
"@entries_url": "http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries",
|
6
|
+
"@deleted_entries_url": "http://api.storageroomapp.com/accounts/account_id/deleted_entries?collection_url=http%3A%2F%2Fapi.storageroomapp.com%2Faccounts%2Faccount_id%2Fcollections%2F540d6d001e29fa3541000d2d",
|
7
|
+
"@version": 5,
|
8
|
+
"@created_at": "2014-09-08T08:46:56Z",
|
9
|
+
"@updated_at": "2014-09-15T06:54:19Z",
|
10
|
+
"name": "Codequest",
|
11
|
+
"note": "Testing",
|
12
|
+
"entry_type": "Codequest",
|
13
|
+
"primary_field_identifier": "name",
|
14
|
+
"fields": [
|
15
|
+
{
|
16
|
+
"@type": "StringField",
|
17
|
+
"name": "Name",
|
18
|
+
"identifier": "name",
|
19
|
+
"show_in_interface": true,
|
20
|
+
"edit_in_interface": true,
|
21
|
+
"input_type": "Text",
|
22
|
+
"include_blank_choice": false
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"@type": "IntegerField",
|
26
|
+
"name": "Number",
|
27
|
+
"identifier": "number",
|
28
|
+
"show_in_interface": true,
|
29
|
+
"edit_in_interface": true,
|
30
|
+
"input_type": "Integer",
|
31
|
+
"include_blank_choice": false
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"@type": "FloatField",
|
35
|
+
"name": "Float",
|
36
|
+
"identifier": "float1",
|
37
|
+
"show_in_interface": true,
|
38
|
+
"edit_in_interface": true,
|
39
|
+
"input_type": "Number",
|
40
|
+
"include_blank_choice": false
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"@type": "BooleanField",
|
44
|
+
"name": "Boolean",
|
45
|
+
"identifier": "boolean",
|
46
|
+
"show_in_interface": true,
|
47
|
+
"edit_in_interface": true,
|
48
|
+
"input_type": "Boolean",
|
49
|
+
"include_blank_choice": false,
|
50
|
+
"choices": [
|
51
|
+
[
|
52
|
+
"Yes",
|
53
|
+
true
|
54
|
+
],
|
55
|
+
[
|
56
|
+
"No",
|
57
|
+
false
|
58
|
+
]
|
59
|
+
]
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"@type": "DateField",
|
63
|
+
"name": "Date",
|
64
|
+
"identifier": "date",
|
65
|
+
"show_in_interface": true,
|
66
|
+
"edit_in_interface": true,
|
67
|
+
"input_type": "Date",
|
68
|
+
"include_blank_choice": false
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"@type": "TimeField",
|
72
|
+
"name": "Time",
|
73
|
+
"identifier": "time",
|
74
|
+
"show_in_interface": true,
|
75
|
+
"edit_in_interface": true,
|
76
|
+
"input_type": "Date",
|
77
|
+
"include_blank_choice": false
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"@type": "LocationField",
|
81
|
+
"name": "Location",
|
82
|
+
"identifier": "location",
|
83
|
+
"show_in_interface": true,
|
84
|
+
"edit_in_interface": true,
|
85
|
+
"input_type": "Location"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"@type": "FileField",
|
89
|
+
"name": "File",
|
90
|
+
"identifier": "file",
|
91
|
+
"show_in_interface": true,
|
92
|
+
"edit_in_interface": true,
|
93
|
+
"input_type": "Asset"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"@type": "ImageField",
|
97
|
+
"name": "Image",
|
98
|
+
"identifier": "image",
|
99
|
+
"show_in_interface": true,
|
100
|
+
"edit_in_interface": true,
|
101
|
+
"input_type": "Asset",
|
102
|
+
"versions": [
|
103
|
+
|
104
|
+
]
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"@type": "ArrayField",
|
108
|
+
"name": "Array",
|
109
|
+
"identifier": "array",
|
110
|
+
"show_in_interface": true,
|
111
|
+
"edit_in_interface": true,
|
112
|
+
"input_type": "Array",
|
113
|
+
"link": "Symbol"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"@type": "OneAssociationField",
|
117
|
+
"name": "Entry",
|
118
|
+
"identifier": "entry",
|
119
|
+
"show_in_interface": true,
|
120
|
+
"edit_in_interface": true,
|
121
|
+
"input_type": "Entry",
|
122
|
+
"collection_url": "http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005"
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"@type": "ManyAssociationField",
|
126
|
+
"name": "Entries",
|
127
|
+
"identifier": "entries",
|
128
|
+
"show_in_interface": true,
|
129
|
+
"edit_in_interface": true,
|
130
|
+
"input_type": "Array",
|
131
|
+
"link_type": "Entry",
|
132
|
+
"collection_url": "http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"@type": "JsonField",
|
136
|
+
"name": "Object",
|
137
|
+
"identifier": "object_json",
|
138
|
+
"show_in_interface": true,
|
139
|
+
"edit_in_interface": true,
|
140
|
+
"input_type": "Object"
|
141
|
+
}
|
142
|
+
],
|
143
|
+
"webhook_definitions": [
|
144
|
+
{
|
145
|
+
"@type": "WebhookDefinition",
|
146
|
+
"url": "https://www.example.com",
|
147
|
+
"on_create": true,
|
148
|
+
"on_update": true,
|
149
|
+
"on_delete": true,
|
150
|
+
"api": true,
|
151
|
+
"web_interface": true
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"@type": "WebhookDefinition",
|
155
|
+
"url": "https://www.example2.com",
|
156
|
+
"on_create": true,
|
157
|
+
"on_update": true,
|
158
|
+
"on_delete": true,
|
159
|
+
"api": true,
|
160
|
+
"web_interface": true
|
161
|
+
}
|
162
|
+
],
|
163
|
+
"content_type_id": "24jJwCT1bWskqEOOASgUCG",
|
164
|
+
"space_id": "ksbb7zto17p9"
|
165
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
{
|
2
|
+
"@type": "Collection",
|
3
|
+
"@url": "http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005",
|
4
|
+
"@account_url": "http://api.storageroomapp.com/accounts/account_id",
|
5
|
+
"@entries_url": "http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries",
|
6
|
+
"@deleted_entries_url": "http://api.storageroomapp.com/accounts/account_id/deleted_entries?collection_url=http%3A%2F%2Fapi.storageroomapp.com%2Faccounts%2Faccount_id%2Fcollections%2F4d960916ba05617333000005",
|
7
|
+
"@version": 12,
|
8
|
+
"@created_at": "2011-04-01T17:19:18Z",
|
9
|
+
"@updated_at": "2013-03-01T07:58:20Z",
|
10
|
+
"name": "Restaurants",
|
11
|
+
"note": "",
|
12
|
+
"entry_type": "Symbol_test",
|
13
|
+
"primary_field_identifier": "name",
|
14
|
+
"fields": [
|
15
|
+
{
|
16
|
+
"@type": "StringField",
|
17
|
+
"name": "Website",
|
18
|
+
"identifier": "website",
|
19
|
+
"show_in_interface": true,
|
20
|
+
"edit_in_interface": true,
|
21
|
+
"input_type": "Text",
|
22
|
+
"required": true,
|
23
|
+
"regexp": "/\\A(http|https)://[a-z0-9]+([-.]{1}[a-z0-9]+)*.[a-z]{2,5}(([0-9]{1,5})?/.*)?\\Z/ix",
|
24
|
+
"include_blank_choice": false
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"@type": "IntegerField",
|
28
|
+
"name": "Price Range",
|
29
|
+
"identifier": "price_range",
|
30
|
+
"show_in_interface": true,
|
31
|
+
"edit_in_interface": true,
|
32
|
+
"input_type": "Symbol",
|
33
|
+
"required": true,
|
34
|
+
"include_blank_choice": false,
|
35
|
+
"choices": [
|
36
|
+
1,
|
37
|
+
2,
|
38
|
+
3
|
39
|
+
]
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"@type": "IntegerField",
|
43
|
+
"name": "Stars",
|
44
|
+
"identifier": "stars",
|
45
|
+
"show_in_interface": true,
|
46
|
+
"edit_in_interface": true,
|
47
|
+
"input_type": "Symbol",
|
48
|
+
"required": true,
|
49
|
+
"include_blank_choice": false,
|
50
|
+
"choices": [
|
51
|
+
1,
|
52
|
+
2,
|
53
|
+
3,
|
54
|
+
4,
|
55
|
+
5
|
56
|
+
]
|
57
|
+
}
|
58
|
+
],
|
59
|
+
"webhook_definitions": []
|
60
|
+
}
|
@@ -0,0 +1,165 @@
|
|
1
|
+
{
|
2
|
+
"@type": "Collection",
|
3
|
+
"@url": "http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d",
|
4
|
+
"@account_url": "http://api.storageroomapp.com/accounts/account_id",
|
5
|
+
"@entries_url": "http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries",
|
6
|
+
"@deleted_entries_url": "http://api.storageroomapp.com/accounts/account_id/deleted_entries?collection_url=http%3A%2F%2Fapi.storageroomapp.com%2Faccounts%2Faccount_id%2Fcollections%2F540d6d001e29fa3541000d2d",
|
7
|
+
"@version": 5,
|
8
|
+
"@created_at": "2014-09-08T08:46:56Z",
|
9
|
+
"@updated_at": "2014-09-15T06:54:19Z",
|
10
|
+
"name": "Codequest",
|
11
|
+
"note": "Testing",
|
12
|
+
"entry_type": "Codequest",
|
13
|
+
"primary_field_identifier": "name",
|
14
|
+
"fields": [
|
15
|
+
{
|
16
|
+
"@type": "StringField",
|
17
|
+
"name": "Name",
|
18
|
+
"identifier": "name",
|
19
|
+
"show_in_interface": true,
|
20
|
+
"edit_in_interface": true,
|
21
|
+
"input_type": "Text",
|
22
|
+
"include_blank_choice": false
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"@type": "IntegerField",
|
26
|
+
"name": "Number",
|
27
|
+
"identifier": "number",
|
28
|
+
"show_in_interface": true,
|
29
|
+
"edit_in_interface": true,
|
30
|
+
"input_type": "Integer",
|
31
|
+
"include_blank_choice": false
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"@type": "FloatField",
|
35
|
+
"name": "Float",
|
36
|
+
"identifier": "float1",
|
37
|
+
"show_in_interface": true,
|
38
|
+
"edit_in_interface": true,
|
39
|
+
"input_type": "Number",
|
40
|
+
"include_blank_choice": false
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"@type": "BooleanField",
|
44
|
+
"name": "Boolean",
|
45
|
+
"identifier": "boolean",
|
46
|
+
"show_in_interface": true,
|
47
|
+
"edit_in_interface": true,
|
48
|
+
"input_type": "Boolean",
|
49
|
+
"include_blank_choice": false,
|
50
|
+
"choices": [
|
51
|
+
[
|
52
|
+
"Yes",
|
53
|
+
true
|
54
|
+
],
|
55
|
+
[
|
56
|
+
"No",
|
57
|
+
false
|
58
|
+
]
|
59
|
+
]
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"@type": "DateField",
|
63
|
+
"name": "Date",
|
64
|
+
"identifier": "date",
|
65
|
+
"show_in_interface": true,
|
66
|
+
"edit_in_interface": true,
|
67
|
+
"input_type": "Date",
|
68
|
+
"include_blank_choice": false
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"@type": "TimeField",
|
72
|
+
"name": "Time",
|
73
|
+
"identifier": "time",
|
74
|
+
"show_in_interface": true,
|
75
|
+
"edit_in_interface": true,
|
76
|
+
"input_type": "Date",
|
77
|
+
"include_blank_choice": false
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"@type": "LocationField",
|
81
|
+
"name": "Location",
|
82
|
+
"identifier": "location",
|
83
|
+
"show_in_interface": true,
|
84
|
+
"edit_in_interface": true,
|
85
|
+
"input_type": "Location"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"@type": "FileField",
|
89
|
+
"name": "File",
|
90
|
+
"identifier": "file",
|
91
|
+
"show_in_interface": true,
|
92
|
+
"edit_in_interface": true,
|
93
|
+
"input_type": "Asset"
|
94
|
+
},
|
95
|
+
{
|
96
|
+
"@type": "ImageField",
|
97
|
+
"name": "Image",
|
98
|
+
"identifier": "image",
|
99
|
+
"show_in_interface": true,
|
100
|
+
"edit_in_interface": true,
|
101
|
+
"input_type": "Asset",
|
102
|
+
"versions": [
|
103
|
+
|
104
|
+
]
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"@type": "ArrayField",
|
108
|
+
"name": "Array",
|
109
|
+
"identifier": "array",
|
110
|
+
"show_in_interface": true,
|
111
|
+
"edit_in_interface": true,
|
112
|
+
"input_type": "Array",
|
113
|
+
"link": "Symbol"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"@type": "OneAssociationField",
|
117
|
+
"name": "Entry",
|
118
|
+
"identifier": "entry",
|
119
|
+
"show_in_interface": true,
|
120
|
+
"edit_in_interface": true,
|
121
|
+
"input_type": "Entry",
|
122
|
+
"collection_url": "http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005"
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"@type": "ManyAssociationField",
|
126
|
+
"name": "Entries",
|
127
|
+
"identifier": "entries",
|
128
|
+
"show_in_interface": true,
|
129
|
+
"edit_in_interface": true,
|
130
|
+
"input_type": "Array",
|
131
|
+
"link_type": "Entry",
|
132
|
+
"collection_url": "http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"@type": "JsonField",
|
136
|
+
"name": "Object",
|
137
|
+
"identifier": "object_json",
|
138
|
+
"show_in_interface": true,
|
139
|
+
"edit_in_interface": true,
|
140
|
+
"input_type": "Object"
|
141
|
+
}
|
142
|
+
],
|
143
|
+
"webhook_definitions": [
|
144
|
+
{
|
145
|
+
"@type": "WebhookDefinition",
|
146
|
+
"url": "https://www.example.com",
|
147
|
+
"on_create": true,
|
148
|
+
"on_update": true,
|
149
|
+
"on_delete": true,
|
150
|
+
"api": true,
|
151
|
+
"web_interface": true
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"@type": "WebhookDefinition",
|
155
|
+
"url": "https://www.example2.com",
|
156
|
+
"on_create": true,
|
157
|
+
"on_update": true,
|
158
|
+
"on_delete": true,
|
159
|
+
"api": true,
|
160
|
+
"web_interface": true
|
161
|
+
}
|
162
|
+
],
|
163
|
+
"content_type_id": "24jJwCT1bWskqEOOASgUCG",
|
164
|
+
"space_id": "ksbb7zto17p9"
|
165
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
{
|
2
|
+
"@type": "Codequest",
|
3
|
+
"@url": "http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d",
|
4
|
+
"@collection_url": "http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d",
|
5
|
+
"@version": 2,
|
6
|
+
"@trash": false,
|
7
|
+
"@created_at": "2014-09-08T08:49:26Z",
|
8
|
+
"@updated_at": "2014-09-12T08:49:46Z",
|
9
|
+
"name": "Test",
|
10
|
+
"number": 11,
|
11
|
+
"float1": 1.1,
|
12
|
+
"boolean": true,
|
13
|
+
"date": "2014-09-03",
|
14
|
+
"time": "2014-09-09T06:13:00Z",
|
15
|
+
"location": {
|
16
|
+
"@type": "Location",
|
17
|
+
"lat": 53.13248859999999,
|
18
|
+
"lng": 23.168840300000056
|
19
|
+
},
|
20
|
+
"file": {
|
21
|
+
"@type": "File",
|
22
|
+
"@url": "http://files.storageroomapp.com/accounts/account_id/collection/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d/fields/k540d6d001e29fa3541000d34/file.png"
|
23
|
+
},
|
24
|
+
"image": {
|
25
|
+
"@type": "Image",
|
26
|
+
"@url": "http://files.storageroomapp.com/accounts/account_id/collection/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d/fields/k540d6d001e29fa3541000d35/file.png",
|
27
|
+
"@processing": false,
|
28
|
+
"@versions": {
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"array": [
|
32
|
+
"some value",
|
33
|
+
"second value",
|
34
|
+
"third value"
|
35
|
+
],
|
36
|
+
"entry": {
|
37
|
+
"@type": "Restaurant",
|
38
|
+
"url": "http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries/4d960919ba05617333000012"
|
39
|
+
},
|
40
|
+
"entries": [
|
41
|
+
{
|
42
|
+
"@type": "Category",
|
43
|
+
"url": "http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1674d085d46a7000021"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"@type": "Category",
|
47
|
+
"url": "http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1644d085d46e0000019"
|
48
|
+
}
|
49
|
+
],
|
50
|
+
"object_json": null
|
51
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
{
|
2
|
+
"@type": "Codequest",
|
3
|
+
"@url": "http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d",
|
4
|
+
"@collection_url": "http://api.storageroomapp.com/accounts/account_id/collections/540d6d001e29fa3541000d2d",
|
5
|
+
"@version": 2,
|
6
|
+
"@trash": false,
|
7
|
+
"@created_at": "2014-09-08T08:49:26Z",
|
8
|
+
"@updated_at": "2014-09-12T08:49:46Z",
|
9
|
+
"name": "Test",
|
10
|
+
"number": 11,
|
11
|
+
"float1": 1.1,
|
12
|
+
"boolean": true,
|
13
|
+
"date": "2014-09-03",
|
14
|
+
"time": "2014-09-09T06:13:00Z",
|
15
|
+
"location": {
|
16
|
+
"@type": "Location",
|
17
|
+
"lat": 53.13248859999999,
|
18
|
+
"lng": 23.168840300000056
|
19
|
+
},
|
20
|
+
"file": {
|
21
|
+
"@type": "File",
|
22
|
+
"@url": "http://files.storageroomapp.com/accounts/account_id/collection/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d/fields/k540d6d001e29fa3541000d34/file.png"
|
23
|
+
},
|
24
|
+
"image": {
|
25
|
+
"@type": "Image",
|
26
|
+
"@url": "http://files.storageroomapp.com/accounts/account_id/collection/540d6d001e29fa3541000d2d/entries/540d6d961e29fa3559000d0d/fields/k540d6d001e29fa3541000d35/file.png",
|
27
|
+
"@processing": false,
|
28
|
+
"@versions": {
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"array": [
|
32
|
+
"some value",
|
33
|
+
"second value",
|
34
|
+
"third value"
|
35
|
+
],
|
36
|
+
"entry": {
|
37
|
+
"@type": "Restaurant",
|
38
|
+
"url": "http://api.storageroomapp.com/accounts/account_id/collections/4d960916ba05617333000005/entries/4d960919ba05617333000012"
|
39
|
+
},
|
40
|
+
"entries": [
|
41
|
+
{
|
42
|
+
"@type": "Category",
|
43
|
+
"url": "http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1674d085d46a7000021"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"@type": "Category",
|
47
|
+
"url": "http://api.storageroomapp.com/accounts/account_id/collections/4dff88d74d085d6010000033/entries/4e2ea1644d085d46e0000019"
|
48
|
+
}
|
49
|
+
],
|
50
|
+
"object_json": null
|
51
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: storageroom-to-contentful
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-09-
|
12
|
+
date: 2014-09-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: http
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- .gitignore
|
119
119
|
- .rubocop.yml
|
120
120
|
- .travis.yml
|
121
|
+
- CHANGELOG.md
|
121
122
|
- Gemfile
|
122
123
|
- Gemfile.lock
|
123
124
|
- LICENSE.txt
|
@@ -144,6 +145,12 @@ files:
|
|
144
145
|
- spec/lib/storage_room_exporter_spec.rb
|
145
146
|
- spec/spec_helper.rb
|
146
147
|
- spec/support/credentials_spec.yaml
|
148
|
+
- spec/support/data/collections/codequest.json
|
149
|
+
- spec/support/data/convert/collections/symbol_test.json
|
150
|
+
- spec/support/data/convert/entries/symbol_test/symbol_entry.json
|
151
|
+
- spec/support/data/convert/mapping/collection_mapping.json
|
152
|
+
- spec/support/data/entries/codequest/540d6d961e29fa3559000d0d.json
|
153
|
+
- spec/support/data/save_to_file.json
|
147
154
|
- spec/support/vcr.rb
|
148
155
|
- storageroom-to-contentful.gemspec
|
149
156
|
homepage: ''
|
@@ -167,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
174
|
version: '0'
|
168
175
|
requirements: []
|
169
176
|
rubyforge_project:
|
170
|
-
rubygems_version: 1.8.23
|
177
|
+
rubygems_version: 1.8.23
|
171
178
|
signing_key:
|
172
179
|
specification_version: 3
|
173
180
|
summary: Import data from StorageRoom to Contentful
|
@@ -185,5 +192,11 @@ test_files:
|
|
185
192
|
- spec/lib/storage_room_exporter_spec.rb
|
186
193
|
- spec/spec_helper.rb
|
187
194
|
- spec/support/credentials_spec.yaml
|
195
|
+
- spec/support/data/collections/codequest.json
|
196
|
+
- spec/support/data/convert/collections/symbol_test.json
|
197
|
+
- spec/support/data/convert/entries/symbol_test/symbol_entry.json
|
198
|
+
- spec/support/data/convert/mapping/collection_mapping.json
|
199
|
+
- spec/support/data/entries/codequest/540d6d961e29fa3559000d0d.json
|
200
|
+
- spec/support/data/save_to_file.json
|
188
201
|
- spec/support/vcr.rb
|
189
202
|
has_rdoc:
|