jekyll-contentful-data-import 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 462c56e5cdfd73612d643ab860e3390149fc360462ab6027d63b54106fb99894
4
- data.tar.gz: 1926f296f8fc998dceec8b221c1000b610a25c5167713a15e1764f719ee1d08d
3
+ metadata.gz: c8915e7a773efeebc9f5da0ef54dc06445ace09a5cfca7ef0969f79505bf9c9d
4
+ data.tar.gz: 64b64dd284d11c70503abb6e4baad506cd729c70c0897a54e0f4ce3d0f52b0cd
5
5
  SHA512:
6
- metadata.gz: 8b7a6998dc83466dc49f0058b3341901342d687c2c9abe6e5033425e11543f999cc6e60a769d1a471af08fb6bcf0094b552b8aa8bf9d1fe4b404c4d08f1fa7ce
7
- data.tar.gz: bbe933c2c443d34ab33efdcca9fb2d97b3a22ebd8aec23aa2503473a18c228919b719ce9e5a134ad3993477c85336a1f4d4bd0d083f8339b2165430b9b917d4c
6
+ metadata.gz: 05266bded29a68d8682240d10fc52660df033029058e32aa35e834898ebb6b7a1f1bfcc813e7d646dc83091ae523753a29f69f3dc3b2588771d97f56f0d82ae7
7
+ data.tar.gz: 64a6e7a646171df600c3f89e414ea1f7913bbe08de24b62f0e2f2d49ed307ad7a59f67b831f3adcf2cb68feb9066868fb40e8e5911640f79b348ba993448ff13
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## v1.8.1
6
+ ### Fixed
7
+ * Ensure configuration passed as `Jekyll.configuration['contentful']` from a `rake` task also works. [#68](https://github.com/contentful/jekyll-contentful-data-import/issues/68)
8
+ * Ensure localized assets that don't have a fallback locale don't fail upon import.
9
+
5
10
  ## v1.8.0
6
11
  ### Added
7
12
  * Added capability to autoload mappers [#22](https://github.com/contentful/jekyll-contentful-data-import/issues/22)
@@ -12,7 +12,7 @@ module Jekyll
12
12
 
13
13
  def initialize(jekyll_config)
14
14
  @jekyll_config = jekyll_config
15
- @config = jekyll_config['contentful']
15
+ @config = jekyll_config.key?('contentful') ? jekyll_config['contentful'] : jekyll_config
16
16
 
17
17
  autoload_mappers!
18
18
  end
@@ -116,13 +116,13 @@ module Jekyll
116
116
  }
117
117
  end
118
118
 
119
- file = asset.file
119
+ file = asset.fields[:file]
120
120
  file_url = file.nil? ? '' : file.url
121
121
 
122
122
  {
123
123
  'sys' => map_asset_metadata(asset),
124
- 'title' => asset.title,
125
- 'description' => asset.description,
124
+ 'title' => asset.fields[:title],
125
+ 'description' => asset.fields[:description],
126
126
  'url' => file_url
127
127
  }
128
128
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Contentful
3
- VERSION = '1.8.0'.freeze
3
+ VERSION = '1.8.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-contentful-data-import
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-15 00:00:00.000000000 Z
11
+ date: 2019-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -286,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  version: '0'
287
287
  requirements: []
288
288
  rubyforge_project:
289
- rubygems_version: 2.7.6
289
+ rubygems_version: 2.7.8
290
290
  signing_key:
291
291
  specification_version: 4
292
292
  summary: Include mangablable content from the Contentful CMS and API into your Jekyll