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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ca8662354db26898388756f0313d7c2c2966ebd
4
- data.tar.gz: e5f26d9caf945d90c0e80e4e809cc4439ef3d62a
3
+ metadata.gz: a416f2d905396672593ad684ca4ffb6b0100cbfe
4
+ data.tar.gz: 60c5a2c952d39a88f58428718135aa051e3f44bb
5
5
  SHA512:
6
- metadata.gz: 25fd968a2f8c1d1e62b50ce4af62b7c012dbdd99a75c28f78dedbed63423a0f49ec631a8ed016701400b045f3471f301ed378582d6f69018828c0bdfb2e5d6cd
7
- data.tar.gz: 5c651fd9fd8f536c53bd5c1c4804a0ad8a24d9f8617b7f0a13ec0f3e4c0bdb947dfdb25e79eb22bdb9ccc9b896dbb7ae61056b2cb8d90ca02db3b30a5abdded2
6
+ metadata.gz: 32ceb35b0fc72c89a033dfa78ad133ae8af9ccbeb25ebd0f6dacbfc2648c37a88b46d6c7470c58375f690f5e4361ff1b2a753bb117dfc374899ed1c616db20a2
7
+ data.tar.gz: f3f794b9d0e475b3194b5fb735324ad6c7ef3c5b6a2893654f5cbc2858cd5ede5c289cec7c42586eeed3f000b8488d5ca339a16d9e391b12563642c2f2814ef3
@@ -1,3 +1,3 @@
1
1
  module Dominate
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
@@ -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) || req.params['widget_name']
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.0
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-14 00:00:00.000000000 Z
11
+ date: 2014-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri