delayer-deferred 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +40 -0
- data/README.md +2 -0
- data/lib/delayer/deferred.rb +5 -1
- data/lib/delayer/deferred/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b74d1715e4cbcfe9514171ebe201bde36bf00d8dcecef790ed4a29fd40449535
|
4
|
+
data.tar.gz: 48353be255fdc9a97836aae40244e715b2b57c4e0c97d95bcfdda934b627b0f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65b7ee78225e474f6cfbae098047098254e64dd3e009f9ad8158ce3d9e5a82da881d4069d1c5351a7c4fcb7228a5c14830fa96079cd5191853bcfb4692dc0e21
|
7
|
+
data.tar.gz: 20167f6264beff6fa8926d90311fd595462cfb7810570e0af4c91edeeb7b4dc57157db405492a40599ed7c43572378310b6c6222ec8c70e5d67be38707e3361e
|
@@ -0,0 +1,40 @@
|
|
1
|
+
version: '2.1'
|
2
|
+
|
3
|
+
executors:
|
4
|
+
ruby:
|
5
|
+
parameters:
|
6
|
+
tag:
|
7
|
+
type: string
|
8
|
+
docker:
|
9
|
+
- image: circleci/ruby:<< parameters.tag >>
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
build:
|
13
|
+
parameters:
|
14
|
+
ruby-version:
|
15
|
+
type: string
|
16
|
+
executor:
|
17
|
+
name: ruby
|
18
|
+
tag: << parameters.ruby-version >>
|
19
|
+
steps:
|
20
|
+
- checkout
|
21
|
+
- run:
|
22
|
+
name: Which bundler?
|
23
|
+
command: bundle -v
|
24
|
+
- run:
|
25
|
+
command: bundle install --path vendor/bundle
|
26
|
+
- run:
|
27
|
+
name: test
|
28
|
+
command: bundle exec rake test
|
29
|
+
workflows:
|
30
|
+
build:
|
31
|
+
jobs:
|
32
|
+
- build:
|
33
|
+
name: 'ruby-2.5'
|
34
|
+
ruby-version: '2.5.7'
|
35
|
+
- build:
|
36
|
+
name: 'ruby-2.6'
|
37
|
+
ruby-version: '2.6.5'
|
38
|
+
- build:
|
39
|
+
name: 'ruby-2.7'
|
40
|
+
ruby-version: '2.7.0'
|
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
Delayerの、ブロックを実行キューにキューイングする機能を利用し、エラー処理やasync/awaitのような機能をサポートするライブラリです。
|
4
4
|
|
5
|
+
[![toshia](https://circleci.com/gh/toshia/delayer-deferred.svg?style=svg)](https://circleci.com/gh/toshia/delayer-deferred)
|
6
|
+
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
Add this line to your application's Gemfile:
|
data/lib/delayer/deferred.rb
CHANGED
@@ -19,7 +19,11 @@ module Delayer
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def method_missing(*rest, **kwrest, &block)
|
22
|
-
|
22
|
+
if kwrest.empty?
|
23
|
+
Delayer::Deferred::Promise.__send__(*rest, &block)
|
24
|
+
else
|
25
|
+
Delayer::Deferred::Promise.__send__(*rest, **kwrest, &block)
|
26
|
+
end
|
23
27
|
end
|
24
28
|
|
25
29
|
def respond_to_missing?(symbol, include_private)
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toshiaki Asai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: delayer
|
@@ -149,6 +149,7 @@ executables: []
|
|
149
149
|
extensions: []
|
150
150
|
extra_rdoc_files: []
|
151
151
|
files:
|
152
|
+
- ".circleci/config.yml"
|
152
153
|
- ".gitignore"
|
153
154
|
- Gemfile
|
154
155
|
- LICENSE.txt
|