dominate 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dominate/version.rb +1 -1
- data/lib/dominate/widget.rb +15 -3
- 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: a416f2d905396672593ad684ca4ffb6b0100cbfe
|
4
|
+
data.tar.gz: 60c5a2c952d39a88f58428718135aa051e3f44bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32ceb35b0fc72c89a033dfa78ad133ae8af9ccbeb25ebd0f6dacbfc2648c37a88b46d6c7470c58375f690f5e4361ff1b2a753bb117dfc374899ed1c616db20a2
|
7
|
+
data.tar.gz: f3f794b9d0e475b3194b5fb735324ad6c7ef3c5b6a2893654f5cbc2858cd5ede5c289cec7c42586eeed3f000b8488d5ca339a16d9e391b12563642c2f2814ef3
|
data/lib/dominate/version.rb
CHANGED
data/lib/dominate/widget.rb
CHANGED
@@ -106,9 +106,21 @@ module Dominate
|
|
106
106
|
|
107
107
|
def trigger widget_event, data = {}
|
108
108
|
data = data.to_h
|
109
|
-
widget_name = data.delete(:for) ||
|
110
|
-
|
111
|
-
event.trigger widget_name, widget_event, data.to_h
|
109
|
+
widget_name = data.delete(:for) || name
|
110
|
+
|
111
|
+
event.trigger widget_name.to_sym, widget_event, data.to_h
|
112
|
+
# threads = []
|
113
|
+
#
|
114
|
+
# req.env[:loaded_widgets].each do |n, w|
|
115
|
+
# threads << Thread.new do
|
116
|
+
# ThreadUtility.with_connection do
|
117
|
+
# ap widget_name
|
118
|
+
# w.trigger_event widget_name, widget_event, data.to_deep_ostruct
|
119
|
+
# end
|
120
|
+
# end
|
121
|
+
# end
|
122
|
+
#
|
123
|
+
# threads.map(&:join)
|
112
124
|
end
|
113
125
|
|
114
126
|
def trigger_event widget_name, widget_event, data = {}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dominate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|