contentful_bootstrap 1.3.2 → 1.4.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: 00487575f09a6dfe3af3a99f3cf513a25b92367e
4
- data.tar.gz: 8e11cbdf36b3ff2c209320599af1a286950c29d9
3
+ metadata.gz: 2a270f22fca1571061fbd56d18bee90137b71079
4
+ data.tar.gz: f26fc82905faa27d613319546897dd86e43a8f05
5
5
  SHA512:
6
- metadata.gz: 57236d509671acce081efd40072314f18ec027c0c325f051c854693fa853d7bd0652541dabae3ce2fd0a92dba9ff6b0b84b0c12ec230f494bf475f167167f65b
7
- data.tar.gz: 689805aad50d61560c9eb51d9e78678ec058d461e433cbc7397c2c9872efdadc628f5a22835f2397694c39a13721b7a6d7ab8a83578c9052ec19f0affe96f071
6
+ metadata.gz: 289a527a728ffcd79d01d60b0cd79be7eef05a8689290258b1d781b9b491268b53fbcb2952a230418f2fedc6c88c19a2f93778486690a3bb67c872331a567ee7
7
+ data.tar.gz: 4a17f2594a97f701f841d48acf8d3804984f3668711c42da6f0cfd1f169f9945fa59851e2b063b59dfa0bd9244da0fe7f5e15861456c7254895bacd7655ef433
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Change Log
2
2
  ## Unreleased
3
3
 
4
+ ## v1.4.0
5
+ ### Added
6
+ * Contentful Space URL after creation
7
+ * Support for Array fields in JSON Templates
8
+
4
9
  ## v1.3.2
5
10
  ### Added
6
11
  * Error out when no STDIN is detected
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Bootstrap
3
- VERSION = "1.3.2"
3
+ VERSION = "1.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Litvak Bruno