contentful_bootstrap 1.3.2 → 1.4.0
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a270f22fca1571061fbd56d18bee90137b71079
|
|
4
|
+
data.tar.gz: f26fc82905faa27d613319546897dd86e43a8f05
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 289a527a728ffcd79d01d60b0cd79be7eef05a8689290258b1d781b9b491268b53fbcb2952a230418f2fedc6c88c19a2f93778486690a3bb67c872331a567ee7
|
|
7
|
+
data.tar.gz: 4a17f2594a97f701f841d48acf8d3804984f3668711c42da6f0cfd1f169f9945fa59851e2b063b59dfa0bd9244da0fe7f5e15861456c7254895bacd7655ef433
|
data/CHANGELOG.md
CHANGED
|
@@ -69,6 +69,7 @@ module Contentful
|
|
|
69
69
|
puts "Access Token: '#{token}'"
|
|
70
70
|
puts
|
|
71
71
|
puts "You can now insert those values into your configuration blocks"
|
|
72
|
+
puts "Manage your content at https://app.contentful.com/spaces/#{space.id}"
|
|
72
73
|
end
|
|
73
74
|
|
|
74
75
|
def generate_token(space, options = {})
|
|
@@ -48,15 +48,24 @@ module Contentful
|
|
|
48
48
|
unprocessed_entries.each do |content_type_id, entry_list|
|
|
49
49
|
entries_for_content_type = []
|
|
50
50
|
entry_list.each do |entry|
|
|
51
|
+
array_fields = []
|
|
51
52
|
link_fields = []
|
|
53
|
+
|
|
52
54
|
entry.each do |field, value|
|
|
53
55
|
link_fields << field if value.is_a? Hash
|
|
56
|
+
array_fields << field if value.is_a? Array
|
|
54
57
|
end
|
|
55
58
|
|
|
56
59
|
link_fields.each do |lf|
|
|
57
60
|
entry[lf] = create_link(entry[lf])
|
|
58
61
|
end
|
|
59
62
|
|
|
63
|
+
array_fields.each do |af|
|
|
64
|
+
entry[af].map! do |link|
|
|
65
|
+
create_link(link)
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
60
69
|
entries_for_content_type << entry
|
|
61
70
|
end
|
|
62
71
|
|