isomorfeus-transport 23.6.0.rc5 → 23.7.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isomorfeus/core_ext/kernel.rb +37 -37
- data/lib/isomorfeus/transport/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b85a34a6cbb1ea407027cdb58e1993deef1d793ef2758d1601bba8812809af6
|
4
|
+
data.tar.gz: 594df19853da4560a85cc1e6f8223931fb8c8dbc6a0b32b693b7171f2f8d28d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ebdc1c79e38012e000b28c63d1c251d446bcca4dd6dbad2bb7d46717b159c27147569a0a0238ef96bc23c5c7731cf4b6c73c5825860febf45ae15db1694b7d0
|
7
|
+
data.tar.gz: 6b8f531c4327737dc7e4b5e50edb3912b2c5b92ed483eba8f1fe95ee191d312eeeaeee3b620fd8afa32721fed06c6cce916f045f669c12bec3ccbf65240bb23c
|
@@ -1,37 +1,37 @@
|
|
1
|
-
module Kernel
|
2
|
-
def promise(p = Promise.new, &block)
|
3
|
-
begin
|
4
|
-
result = block.call
|
5
|
-
return p.resolve(result) if result
|
6
|
-
after(10) { promise(p, &block) }
|
7
|
-
rescue => e
|
8
|
-
return p.reject(e)
|
9
|
-
end
|
10
|
-
p
|
11
|
-
end
|
12
|
-
|
13
|
-
if RUBY_ENGINE == 'opal'
|
14
|
-
def on_browser?; true; end
|
15
|
-
def on_desktop?; false; end
|
16
|
-
def on_mobile?; false; end
|
17
|
-
def on_tablet?; false; end
|
18
|
-
def on_tv?; false; end
|
19
|
-
def on_server?; false; end
|
20
|
-
|
21
|
-
def after(time_ms, &block)
|
22
|
-
`setTimeout(#{block.to_n}, time_ms)`
|
23
|
-
end
|
24
|
-
else
|
25
|
-
def on_browser?; false; end
|
26
|
-
def on_desktop?; false; end
|
27
|
-
def on_mobile?; false; end
|
28
|
-
def on_tablet?; false; end
|
29
|
-
def on_tv?; false; end
|
30
|
-
def on_server?; true; end
|
31
|
-
|
32
|
-
def after(time_ms, &block)
|
33
|
-
sleep time_ms/1000
|
34
|
-
block.call
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
1
|
+
module Kernel
|
2
|
+
def promise(p = Promise.new, &block)
|
3
|
+
begin
|
4
|
+
result = block.call
|
5
|
+
return p.resolve(result) if result
|
6
|
+
after(10) { promise(p, &block) }
|
7
|
+
rescue => e
|
8
|
+
return p.reject(e)
|
9
|
+
end
|
10
|
+
p
|
11
|
+
end
|
12
|
+
|
13
|
+
if RUBY_ENGINE == 'opal'
|
14
|
+
def on_browser?; true; end
|
15
|
+
def on_desktop?; false; end
|
16
|
+
def on_mobile?; false; end
|
17
|
+
def on_tablet?; false; end
|
18
|
+
def on_tv?; false; end
|
19
|
+
def on_server?; false; end
|
20
|
+
|
21
|
+
def after(time_ms, &block)
|
22
|
+
`setTimeout(#{block.to_n}, time_ms)`
|
23
|
+
end
|
24
|
+
else
|
25
|
+
def on_browser?; false; end
|
26
|
+
def on_desktop?; false; end
|
27
|
+
def on_mobile?; false; end
|
28
|
+
def on_tablet?; false; end
|
29
|
+
def on_tv?; false; end
|
30
|
+
def on_server?; true; end
|
31
|
+
|
32
|
+
def after(time_ms, &block)
|
33
|
+
sleep time_ms/1000
|
34
|
+
block.call
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isomorfeus-transport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 23.
|
4
|
+
version: 23.7.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -190,14 +190,14 @@ dependencies:
|
|
190
190
|
requirements:
|
191
191
|
- - '='
|
192
192
|
- !ruby/object:Gem::Version
|
193
|
-
version: 23.
|
193
|
+
version: 23.7.0.rc2
|
194
194
|
type: :development
|
195
195
|
prerelease: false
|
196
196
|
version_requirements: !ruby/object:Gem::Requirement
|
197
197
|
requirements:
|
198
198
|
- - '='
|
199
199
|
- !ruby/object:Gem::Version
|
200
|
-
version: 23.
|
200
|
+
version: 23.7.0.rc2
|
201
201
|
- !ruby/object:Gem::Dependency
|
202
202
|
name: rake
|
203
203
|
requirement: !ruby/object:Gem::Requirement
|