foreign_office 0.5.2 → 0.6.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: de4c1e4f297cfa966a4fcd1ce4a8b14cc2997a47
4
- data.tar.gz: 932191be4265eabb527d188f1a284b3189a2a76f
3
+ metadata.gz: 94aacbefb0ec0dd37ea0beabc83c8eb2748652f9
4
+ data.tar.gz: 58e3af65fef4deae56bb541ed0e493943696ff20
5
5
  SHA512:
6
- metadata.gz: 4b67c980c50f518ec0c4e162911e652804b074457951a5f0241ee43699099732439dbcfe038f4af985358eec13f29efb79f6b5788aed4efd75ca394423172b76
7
- data.tar.gz: d0b3a7c2677f7094403fa42226ac25a3e318017b1a0d4cf1a05f433dc491079783187780990ebe123766ea98510915941e7b3c6d13056fb217f8be51aaa70588
6
+ metadata.gz: 3193d50c4627c06d7a6cc3f092fe64c3a174ab2063bc6ea6dbfbc38577e8cda921c955695ca9322e14d5a0378ba731e006aa007d4199f96a4d22d5dd95f258fa
7
+ data.tar.gz: 1a0228c3702fc502402760843e77b1b2bc98f88665fecd3d3feea9ec211a0733b560b6b077e39ba7db75f61a48bebf61b1862f92e3e8184eca3d5eb644dd5547
@@ -1,14 +1,14 @@
1
1
  module ForeignOffice
2
2
  module ForeignOfficeHelper
3
- def listener_attrs(resource, key, subtype: nil)
3
+ def listener_attrs(resource, key, reveal_hide: false)
4
4
  data_attrs = "data-listener=true data-channel=#{resource.class.name}#{resource.id} data-key=#{key}"
5
- data_attrs += " data-sub-type=#{subtype}" if subtype
5
+ data_attrs += " data-reveal-hide=true" if reveal_hide
6
6
  data_attrs
7
7
  end
8
8
 
9
- def listener_attrs_raw(channel, key, subtype: nil)
9
+ def listener_attrs_raw(channel, key, reveal_hide: false)
10
10
  data_attrs = "data-listener=true data-channel=#{channel} data-key=#{key}"
11
- data_attrs += " data-sub-type=#{subtype}" if subtype
11
+ data_attrs += " data-reveal-hide=true" if reveal_hide
12
12
  data_attrs
13
13
  end
14
14
 
@@ -1,3 +1,3 @@
1
1
  module ForeignOffice
2
- VERSION = "0.5.2"
2
+ VERSION = "0.6.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreign_office
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-02 00:00:00.000000000 Z
12
+ date: 2015-03-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails