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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 548cb9c05bff5d5857606fb6331b8c602e6b5648
4
- data.tar.gz: f5ea91cd7a45207dcafa705c7d856c5f1a8238e0
3
+ metadata.gz: e132babac1c0915918ccbafd329c526499e3e886
4
+ data.tar.gz: 7d5933b1563884cc6684f92c44d421b9a83d404c
5
5
  SHA512:
6
- metadata.gz: a90135907b535d37072186d56a7deb4941560eeca3a935bfe116e3fb6fc03005660121063ffdcd57a8adf8276f637862c3e0f6643cf60833ec173aab64c4b39f
7
- data.tar.gz: bbe91aafbb1e17f68d6f4d618c68551b201835985315a9a162295ad2247cf943365e86ed9bf289a122d571d4191ae5e56b9e15d17028faeea848bb19a1e72a0f
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 == "Yes"
21
+ self.expanded != "No"
22
22
  end
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module ScrivitoAccordionWidget
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  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.0
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-25 00:00:00.000000000 Z
11
+ date: 2017-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito