jekyll-contentful-data-import 1.0.1 → 1.1.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 117c6b44c14c191f720ab4aeaf2f35d02db27d73
|
4
|
+
data.tar.gz: 9fe2e0d728401af419da7757ffbc315683e98665
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f89f6ec31a0c43da8db98d3a8f6b935137131f6ebc7487d7d1369af142cf34a3ebbc036bb1a2bfe21566eb788ed1ec5b89362fd293c41f494f9f824ab1395ce
|
7
|
+
data.tar.gz: 49c16f616c0a11a9b6a23a4f0284a5ba1067e42f2b8115c6418a5ce90a9dccb6c2a44f69fcf3ccba461a43ffe92eb3157eefd9620b6636ec28d028f7f55ac6f2
|
data/CHANGELOG.md
CHANGED
@@ -34,6 +34,19 @@ describe Jekyll::Contentful::Serializer do
|
|
34
34
|
expect(subject.serialize).to eq(expected)
|
35
35
|
end
|
36
36
|
|
37
|
+
it 'serializes a nested entry like an entry' do
|
38
|
+
subject.instance_variable_set(:@entries, [
|
39
|
+
EntryDouble.new('foo', ContentTypeDouble.new, {
|
40
|
+
'foobar' => EntryDouble.new('foobar', ContentTypeDouble.new, {
|
41
|
+
'baz' => 1
|
42
|
+
})
|
43
|
+
})
|
44
|
+
])
|
45
|
+
|
46
|
+
expected = {'content_type' => [{'sys' => {'id' => 'foo'}, 'foobar' => {'sys' => {'id' => 'foobar'}, 'baz' => 1}}]}
|
47
|
+
expect(subject.serialize).to eq(expected)
|
48
|
+
end
|
49
|
+
|
37
50
|
it 'serializes multiple entries' do
|
38
51
|
subject.instance_variable_set(:@entries, [
|
39
52
|
EntryDouble.new('foo', ContentTypeDouble.new, {'foobar' => 'bar'}),
|