rooftop 0.1.3 → 0.1.4

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: 18e9628d0d8e286862e6ac861b3b7a9f8d34952c
4
- data.tar.gz: 4b8ae8c01ca97a1a7a2e19338e81abe5f0433db7
3
+ metadata.gz: 63148eb03b8316fe5f758396ba96a9a267333932
4
+ data.tar.gz: d77f32a1d6505c0b31cecdd2de962fbdb3a99c70
5
5
  SHA512:
6
- metadata.gz: 8df9623412c9eb94feed118e6ef8e37a4e5ec7cf7364c30b4244bf521aefba7cd64b6def9819f52604384e8dbaaae56446394de9747918480605edfa30a5c1ac
7
- data.tar.gz: c79a8867347d755a2956309c6e2a53061c7690c7d9f6e2b4a25934b8248ccbd3dc8f1df868c393f2bc9ae90bbebeeda63d89605178106818a2b15f5b429d45e6
6
+ metadata.gz: a9b84cbf47c1847f5de7318a7c37cbe3f2d901d2fc03256d5121ce6fa22e2ad89f96b4dde78e9b4e246d9d7dcf03dd3e48921f47de3d5ebfd6ccf56a5690144c
7
+ data.tar.gz: f8066cad306e3ec587ea7d6a4ac566e1926c1c6a092b35032f8eb87bca2771bbd1b5ee6090479d0f45ef1aac630be3411eb70510e26d70ebdbe10e9d415c514c
@@ -26,11 +26,14 @@ module Rooftop
26
26
  advanced_fields = r.content[:advanced].collect do |fieldset|
27
27
  fieldset[:fields].each do |field|
28
28
  field.merge!(fieldset: fieldset[:title])
29
- field[:type] = field[:class]
29
+ if field[:class].present?
30
+ field[:type] = field[:class]
31
+ end
30
32
  field.delete(:class)
31
33
  end
32
34
  fieldset[:fields]
33
- end.flatten
35
+ end
36
+ advanced_fields.flatten!
34
37
  r.fields = Rooftop::Content::Collection.new((basic_fields + advanced_fields))
35
38
  end
36
39
  })
@@ -1,3 +1,3 @@
1
1
  module Rooftop
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rooftop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ed Jones
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-17 00:00:00.000000000 Z
11
+ date: 2017-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler