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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71c4133dbd6db3a7ec68fd33734724492990159ac0930baec3de275f5690a3ef
4
- data.tar.gz: 4a7136266a220ebf889e0b51ad201adc5df1e5fbf79322ccc10281e3752cb7bf
3
+ metadata.gz: 8b85a34a6cbb1ea407027cdb58e1993deef1d793ef2758d1601bba8812809af6
4
+ data.tar.gz: 594df19853da4560a85cc1e6f8223931fb8c8dbc6a0b32b693b7171f2f8d28d2
5
5
  SHA512:
6
- metadata.gz: 6a9de85ee25d6581ddc4380f5305288e07dbb7db7df37ff1d0c85ea15826cbb6b7bde3ace5037cd44893d94b76258c60b7491aacdd24b9c1a09cd4a34dabbbd6
7
- data.tar.gz: e05b34fd3c4a762b5287801f946a5fcff29360a7d8b130c88fdba3ac0752d7396c8f771786bcab27ad39f021d83307ea70a5301a5ae24f285b4588def56f66d9
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
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Transport
3
- VERSION = '23.6.0.rc5'
3
+ VERSION = '23.7.0.rc2'
4
4
  end
5
5
  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.6.0.rc5
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-22 00:00:00.000000000 Z
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.6.0.rc5
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.6.0.rc5
200
+ version: 23.7.0.rc2
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: rake
203
203
  requirement: !ruby/object:Gem::Requirement