scrivito_accordion_widget 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/accordion_widget.rb +2 -2
- data/lib/scrivito_accordion_widget/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: e132babac1c0915918ccbafd329c526499e3e886
|
4
|
+
data.tar.gz: 7d5933b1563884cc6684f92c44d421b9a83d404c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3af00588a91e4d1b9eab42f6d009882dac6dcc8296017b0bbc89efe9685ed49186ca47db32481b38721c2cb2654e77e1a4a4fe4b3c47575390c0688f91199477
|
7
|
+
data.tar.gz: fd5bcc9a89f7b6b7795745d0d3429e7f268cfe2b488e87f6bfda9dc37ac5051edc772ef304381776a111a1847e1ec13bb2fec39fee47de11dfcec22b4f3684c7
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class AccordionWidget < Widget
|
2
2
|
attribute :panels, :widgetlist
|
3
|
-
attribute :expanded, :enum, values: ['Yes','No']
|
3
|
+
attribute :expanded, :enum, values: ['Yes','No'], default: 'Yes'
|
4
4
|
|
5
5
|
default_for :panels do |attributes|
|
6
6
|
[
|
@@ -18,6 +18,6 @@ class AccordionWidget < Widget
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def expanded?
|
21
|
-
self.expanded
|
21
|
+
self.expanded != "No"
|
22
22
|
end
|
23
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_accordion_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01
|
11
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito
|