hooch 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hooch/hooch_helper.rb +11 -11
- data/lib/hooch/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: a1e11b2c600ac47f1282d4d90b826bacca665325
|
4
|
+
data.tar.gz: 70994cbff2d5490d3842ec3df73c832d36062897
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cd7b28bf62565e50f12ff41b3bc6135da69354120ee38cf68ef84ec417f608744ac598ec9055dc80d07f0df73807298c4edca0be68d7c1b3b93e31360abd2da
|
7
|
+
data.tar.gz: 0fbc9d205e5f7096cdc291e81ed60e614a6f348a11e5ba693fcc3f5b4869053c4016295b207320657474696a38bd9f397e04e8dc1fad6956cd446a1f33505b41
|
data/lib/hooch/hooch_helper.rb
CHANGED
@@ -67,10 +67,10 @@ module Hooch
|
|
67
67
|
|
68
68
|
def revealer_attrs(id, type: nil, highlander: false)
|
69
69
|
''.tap do |attrs|
|
70
|
-
attrs.concat "data-revealer=true data-revealer-children-id
|
71
|
-
attrs.concat " data-sub-type
|
70
|
+
attrs.concat "data-revealer=true data-revealer-children-id=\"#{id}\""
|
71
|
+
attrs.concat " data-sub-type=\"#{type}\"" if type.present?
|
72
72
|
attrs.concat " data-sub-type=FormFieldRevealer" if highlander
|
73
|
-
end
|
73
|
+
end.html_safe
|
74
74
|
end
|
75
75
|
|
76
76
|
def revealer(id, type: nil, highlander: false)
|
@@ -85,9 +85,9 @@ module Hooch
|
|
85
85
|
def revealer_option_attrs(id, trigger: nil, triggers: nil)
|
86
86
|
''.tap do |attrs|
|
87
87
|
attrs.concat "data-revealer-id=#{id}"
|
88
|
-
attrs.concat " data-revealer-trigger
|
89
|
-
attrs.concat " data-revealer-triggers
|
90
|
-
end
|
88
|
+
attrs.concat " data-revealer-trigger=\"#{trigger}\"" if trigger.present?
|
89
|
+
attrs.concat " data-revealer-triggers=\"#{triggers}\"" if triggers.present?
|
90
|
+
end.html_safe
|
91
91
|
end
|
92
92
|
|
93
93
|
def revealer_option(id, trigger: nil, triggers: nil)
|
@@ -100,8 +100,8 @@ module Hooch
|
|
100
100
|
|
101
101
|
def revealer_target_attrs(id)
|
102
102
|
''.tap do |attrs|
|
103
|
-
attrs.concat "data-revealer-target
|
104
|
-
end
|
103
|
+
attrs.concat "data-revealer-target=\"#{id}\""
|
104
|
+
end.html_safe
|
105
105
|
end
|
106
106
|
|
107
107
|
def click_proxy(target = nil)
|
@@ -136,8 +136,8 @@ module Hooch
|
|
136
136
|
''.tap do |attrs|
|
137
137
|
attrs.concat 'data-field-filler=true'
|
138
138
|
attrs.concat " data-target=#{target}"
|
139
|
-
attrs.concat " data-value
|
140
|
-
end
|
139
|
+
attrs.concat " data-value=\"#{value}\""
|
140
|
+
end.html_safe
|
141
141
|
end
|
142
142
|
|
143
143
|
def field_filler_hash(target, value)
|
@@ -173,7 +173,7 @@ module Hooch
|
|
173
173
|
end
|
174
174
|
|
175
175
|
def bind_key_attrs(key_name)
|
176
|
-
"data-bind-key
|
176
|
+
"data-bind-key=\"#{key_name}\"".html_safe
|
177
177
|
end
|
178
178
|
end
|
179
179
|
end
|
data/lib/hooch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hooch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Draut
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|