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 +4 -4
- data/lib/foreign_office/foreign_office_helper.rb +4 -4
- data/lib/foreign_office/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: 94aacbefb0ec0dd37ea0beabc83c8eb2748652f9
|
4
|
+
data.tar.gz: 58e3af65fef4deae56bb541ed0e493943696ff20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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-
|
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,
|
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-
|
11
|
+
data_attrs += " data-reveal-hide=true" if reveal_hide
|
12
12
|
data_attrs
|
13
13
|
end
|
14
14
|
|
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.
|
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-
|
12
|
+
date: 2015-03-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|