contentful_middleman 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/contentful_middleman/import_task.rb +3 -3
- data/lib/contentful_middleman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 696271c04cb1bd35a07944ca7cdef844a4a04db0
|
4
|
+
data.tar.gz: 0666f72f63064ae8103fd5a6b5493eb3a1a6a7e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c713f9374a71c4e66b9f02e8b15dc8ea537cd6f40e492916420c9e9471d7a4c9012ab4f39229d826f63ce860b952eb5002910e080d8d679410d9bf65d946bbe
|
7
|
+
data.tar.gz: b9cc6c52393aa54f1f490c154c690bf0587ebd8ce5708b6099567b91ee39f9c400827997f10ff3bfc45d502f2633dcb76d36fc331141e7187ac30add760dd1cf
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -54,7 +54,7 @@ Parameter | Description
|
|
54
54
|
space | Hash with an user choosen name for the space as key and the space id as value
|
55
55
|
access_token | Contentful Delivery API access token
|
56
56
|
cda_query | Hash describing query configuration. See [contentful.rb](https://github.com/contentful/contentful.rb) for more info (look for filter options there). Note that by default only 100 entries will be fetched, this can be configured to up to 1000 entries using the `limit` option. Example: `f.cda_query = { limit: 1000 }`
|
57
|
-
|
57
|
+
client_options | Hash describing client configuration. See [contentful.rb](https://github.com/contentful/contentful.rb#client-configuration-options) for more info. This option should commonly be used to change Rate Limit Management, Include Resolution, Logging and Proxies.
|
58
58
|
content_types | Hash describing the mapping applied to entries of the imported content types
|
59
59
|
default_locale | String with the value for the default locale for your space. Defaults to `'en-US'`.
|
60
60
|
use_preview_api | Boolean to toggle the used API. Set it to `false` to use `cdn.contentful.com` (default value). Set it to `true` to use `preview.contentful.com`. More info in [the documentation](https://www.contentful.com/developers/documentation/content-delivery-api/#preview-api)
|
@@ -34,12 +34,12 @@ module ContentfulMiddleman
|
|
34
34
|
private
|
35
35
|
def local_data_files
|
36
36
|
entries.map do |entry|
|
37
|
-
content_type_mapper_class = @content_type_mappers.fetch(entry.content_type.id, nil)
|
37
|
+
content_type_mapper_class = @content_type_mappers.fetch(entry.sys[:content_type].id, nil)
|
38
38
|
|
39
39
|
next unless content_type_mapper_class
|
40
40
|
|
41
|
-
content_type_name
|
42
|
-
context
|
41
|
+
content_type_name = @content_type_names.fetch(entry.sys[:content_type].id).to_s
|
42
|
+
context = ContentfulMiddleman::Context.new
|
43
43
|
|
44
44
|
content_type_mapper = content_type_mapper_class.new(entries, @contentful.options)
|
45
45
|
content_type_mapper.map(context, entry)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contentful_middleman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sascha Konietzke
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-05-
|
12
|
+
date: 2017-05-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman-core
|