ree_lib 1.0.82 → 1.0.83
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 208ec4bfa16829d5d676cb481abbea560804a986289f4a3846f662187752507d
|
4
|
+
data.tar.gz: 24bc799943e6b99a47604a57d3732ea19908706a5d62910f48d9e7d335c9ea6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4df131878c47509296d18213ea065dd72c5eb103f1fff6459e14dec1962b9e99e9429ca7ab92a4384bc5665c8a344e066c5365de667a94f9fa63738f348ac6f0
|
7
|
+
data.tar.gz: b3f0c02de96b9bf679fa4b82b56dd1f3b0288f826b892faf191d964a1142a32d66d4e1c31d378c1d658af647b1254efda4b1b0b42804526ea8d5f7d25573f11f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ree_lib (1.0.
|
4
|
+
ree_lib (1.0.83)
|
5
5
|
binding_of_caller (~> 1.0.0)
|
6
6
|
fiber_scheduler (~> 0.13.0)
|
7
7
|
i18n (~> 1.12.0)
|
@@ -39,10 +39,10 @@ GEM
|
|
39
39
|
loofah (2.18.0)
|
40
40
|
crass (~> 1.0.2)
|
41
41
|
nokogiri (>= 1.5.9)
|
42
|
-
mini_portile2 (2.8.1)
|
43
42
|
msgpack (1.6.0)
|
44
|
-
nokogiri (1.
|
45
|
-
|
43
|
+
nokogiri (1.15.5-x86_64-darwin)
|
44
|
+
racc (~> 1.4)
|
45
|
+
nokogiri (1.15.5-x86_64-linux)
|
46
46
|
racc (~> 1.4)
|
47
47
|
oj (3.13.23)
|
48
48
|
pg (1.4.6)
|
@@ -356,19 +356,19 @@ module ReeDao
|
|
356
356
|
private
|
357
357
|
|
358
358
|
def task_proc(&proc)
|
359
|
-
if Sequel.current.is_a?(Fiber)
|
360
|
-
|
361
|
-
else
|
359
|
+
# if Sequel.current.is_a?(Fiber)
|
360
|
+
# Fiber.schedule &proc
|
361
|
+
# else
|
362
362
|
proc.call
|
363
|
-
end
|
363
|
+
# end
|
364
364
|
end
|
365
365
|
|
366
366
|
def scheduler_proc(&proc)
|
367
|
-
if Sequel.current.is_a?(Fiber)
|
368
|
-
|
369
|
-
else
|
367
|
+
# if Sequel.current.is_a?(Fiber)
|
368
|
+
# FiberScheduler &proc
|
369
|
+
# else
|
370
370
|
proc.call
|
371
|
-
end
|
371
|
+
# end
|
372
372
|
end
|
373
373
|
|
374
374
|
def foreign_key_from_dao(dao)
|
@@ -81,22 +81,22 @@ class ReeDao::Agg
|
|
81
81
|
end
|
82
82
|
|
83
83
|
def task_proc(&proc)
|
84
|
-
if Sequel.current.is_a?(Fiber)
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
else
|
84
|
+
# if Sequel.current.is_a?(Fiber)
|
85
|
+
# Fiber.schedule do
|
86
|
+
# proc.call
|
87
|
+
# end
|
88
|
+
# else
|
89
89
|
proc.call
|
90
|
-
end
|
90
|
+
# end
|
91
91
|
end
|
92
92
|
|
93
93
|
def scheduler_proc(&proc)
|
94
|
-
if Sequel.current.is_a?(Fiber)
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
else
|
94
|
+
# if Sequel.current.is_a?(Fiber)
|
95
|
+
# FiberScheduler do
|
96
|
+
# proc.call
|
97
|
+
# end
|
98
|
+
# else
|
99
99
|
proc.call
|
100
|
-
end
|
100
|
+
# end
|
101
101
|
end
|
102
102
|
end
|
data/lib/ree_lib/version.rb
CHANGED