isomorfeus-redux 4.0.22 → 4.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/redux/store.rb +3 -3
- data/lib/redux/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c525619e9881d6b7be5127a4e22cf1bfe07a81bb2e520fdce10d859f18d9e108
|
|
4
|
+
data.tar.gz: 975e7ecf09ce6cf4f27e8bcd46babbf5021f1959c1490e4b3d78fb0458bba6f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c2c718656620da8bc17c0819000c33f8dc078f967375762d6bcb65150b97bc0a73673b6064cdca5e13c2e1b27a1b36b3b8e2f78d7890ac1a5190b05b9537b72d
|
|
7
|
+
data.tar.gz: 717b8ed5104d107c8b768495885c6fd38220c6698f4651495eac85b3c98d707f98bb744ee89a14d8b859cb63a8606fa6a0b7395bff790e0b4903ec0ef9794522
|
data/lib/redux/store.rb
CHANGED
|
@@ -131,7 +131,7 @@ module Redux
|
|
|
131
131
|
@deferred_actions[type] = [] unless @deferred_actions.key?(type)
|
|
132
132
|
@deferred_actions[type].push(action)
|
|
133
133
|
@last_dispatch_time = `Date.now()`
|
|
134
|
-
`console.log(#@last_dispatch_time)`
|
|
134
|
+
# `console.log(#@last_dispatch_time)`
|
|
135
135
|
deferred_dispatcher(`Date.now()`) unless @deferred_dispatcher
|
|
136
136
|
else
|
|
137
137
|
dispatch(action)
|
|
@@ -161,7 +161,7 @@ module Redux
|
|
|
161
161
|
end
|
|
162
162
|
|
|
163
163
|
def dispatch_deferred_dispatches
|
|
164
|
-
`console.log(Date.now())`
|
|
164
|
+
# `console.log(Date.now())`
|
|
165
165
|
@deferred_dispatcher = false
|
|
166
166
|
actions = @deferred_actions
|
|
167
167
|
@deferred_actions = {}
|
|
@@ -173,7 +173,7 @@ module Redux
|
|
|
173
173
|
def wait_longer?(first)
|
|
174
174
|
t = `Date.now()`
|
|
175
175
|
time_since_first = `t - first`
|
|
176
|
-
`console.log('delta', time_since_first)`
|
|
176
|
+
# `console.log('delta', time_since_first)`
|
|
177
177
|
return true if `typeof Opal.React !== 'undefined' && typeof Opal.React.render_buffer !== 'undefined' && Opal.React.render_buffer.length > 0 && time_since_first < 1000`
|
|
178
178
|
return false if time_since_first > 100 # ms
|
|
179
179
|
return false if (`t - #@last_dispatch_time`) > 9 # ms
|
data/lib/redux/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: isomorfeus-redux
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.23
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jan Biedermann
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-03-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: opal
|