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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7204295d8cde9e391d33b7bc656a09779c00f77
4
- data.tar.gz: 6cd99474e752542dd354c12600dbe0589a8109aa
3
+ metadata.gz: 696271c04cb1bd35a07944ca7cdef844a4a04db0
4
+ data.tar.gz: 0666f72f63064ae8103fd5a6b5493eb3a1a6a7e6
5
5
  SHA512:
6
- metadata.gz: f1df4c1735ccafbff1ac1364244fd32b2ebb0e024404d5c8cf379dc0d9ca52b342bef4dd6601bac76978299f35ffde77852d7f76a70175e9d4fd4519d35a874c
7
- data.tar.gz: b51f7dc9c107f3be63332fa42c8acfc95b5fe3f9de0d167e54d65998055575cc193b6d5ac1ce9c1a2c81bcb857ba9df1a8cc330167cc92757777bd82ad6a62f3
6
+ metadata.gz: 6c713f9374a71c4e66b9f02e8b15dc8ea537cd6f40e492916420c9e9471d7a4c9012ab4f39229d826f63ce860b952eb5002910e080d8d679410d9bf65d946bbe
7
+ data.tar.gz: b9cc6c52393aa54f1f490c154c690bf0587ebd8ce5708b6099567b91ee39f9c400827997f10ff3bfc45d502f2633dcb76d36fc331141e7187ac30add760dd1cf
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Change Log
2
2
  ## Unreleased
3
3
 
4
+ ## 2.0.1
5
+ ### Fixed
6
+ * Fixed issue when generating file on entries with a field called `Content Type`
7
+
4
8
  ## 2.0.0
5
9
 
6
10
  ## 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
- cda_query | 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.
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 = @content_type_names.fetch(entry.content_type.id).to_s
42
- context = ContentfulMiddleman::Context.new
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)
@@ -1,3 +1,3 @@
1
1
  module ContentfulMiddleman
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
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.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-03 00:00:00.000000000 Z
12
+ date: 2017-05-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: middleman-core