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 +4 -4
- data/lib/rooftop/content/content_fields.rb +5 -2
- data/lib/rooftop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63148eb03b8316fe5f758396ba96a9a267333932
|
4
|
+
data.tar.gz: d77f32a1d6505c0b31cecdd2de962fbdb3a99c70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
35
|
+
end
|
36
|
+
advanced_fields.flatten!
|
34
37
|
r.fields = Rooftop::Content::Collection.new((basic_fields + advanced_fields))
|
35
38
|
end
|
36
39
|
})
|
data/lib/rooftop/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|