delayer-deferred 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/delayer/deferred.rb +2 -2
- data/lib/delayer/deferred/promise.rb +1 -1
- data/lib/delayer/deferred/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 833daf212639ecd5e632cb62d879679c8e9a0eae6af21e62774a175805963a61
|
4
|
+
data.tar.gz: c07568ec4dad571c62b086262044237a92dc124ca505227a26c79d2529b6d690
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f310be2ed5a5f7307496fe026fd7ad6766931ae5d4c1e38d1908d7fd17003889310e61357a2a48120a77e960e281ca94d442bef8b8ad57b0b643fa046250d08d
|
7
|
+
data.tar.gz: a58cfdfecd74e643294993878bf6a4faa9e13217efeddc744f77f49a827ba2875e0cdac99ee7d7e02853ba3ec95f3f6873ffc15ebc2216dd88c3fabecb4ef2a4
|
data/lib/delayer/deferred.rb
CHANGED
@@ -18,8 +18,8 @@ module Delayer
|
|
18
18
|
super(*rest, name: name, &block)
|
19
19
|
end
|
20
20
|
|
21
|
-
def method_missing(*rest, &block)
|
22
|
-
Delayer::Deferred::Promise.__send__(*rest, &block)
|
21
|
+
def method_missing(*rest, **kwrest, &block)
|
22
|
+
Delayer::Deferred::Promise.__send__(*rest, **kwrest, &block)
|
23
23
|
end
|
24
24
|
|
25
25
|
def respond_to_missing?(symbol, include_private)
|
@@ -8,7 +8,7 @@ module Delayer::Deferred
|
|
8
8
|
include Deferredable::Trigger
|
9
9
|
|
10
10
|
class << self
|
11
|
-
def new(stop=false, name: caller_locations(1,1).first.to_s,
|
11
|
+
def new(stop=false, name: caller_locations(1,1).first.to_s, &block)
|
12
12
|
result = promise = super(name: name)
|
13
13
|
result = promise.next(&block) if block_given?
|
14
14
|
promise.call(true) unless stop
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delayer-deferred
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toshiaki Asai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: delayer
|
@@ -207,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
requirements: []
|
210
|
-
rubygems_version: 3.
|
210
|
+
rubygems_version: 3.1.2
|
211
211
|
signing_key:
|
212
212
|
specification_version: 4
|
213
213
|
summary: Deferred for Delayer
|