perfect_retry 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS.md +7 -0
- data/lib/perfect_retry/version.rb +1 -1
- data/lib/perfect_retry.rb +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11f50a4eb3fbde940a9d1dc119edeb2eeb861b34
|
4
|
+
data.tar.gz: 51505ed2bc45f136f3c31980cee14f014712ffb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5746dfc42dd2ed22e77f23ef3dbeae562939259d7954535ec764899ae09fff076eee2d1cbdcb95d601e43b85e1a2f95445883e9d47b0bc0b40d19e8bd5294516
|
7
|
+
data.tar.gz: 705dc99d1c7cbf1248a925008ce1719a4e92fe4c3dfff399ab394681dc86cf8d47ade8118de05845f7c56c7e07d6dd13f45d8fa52a73e56eb03adcfa6b9445a4
|
data/NEWS.md
ADDED
data/lib/perfect_retry.rb
CHANGED
@@ -38,8 +38,9 @@ class PerfectRetry
|
|
38
38
|
|
39
39
|
attr_reader :config
|
40
40
|
|
41
|
-
def initialize(config_key = nil)
|
41
|
+
def initialize(config_key = nil, &block)
|
42
42
|
@config = REGISTERED_CONFIG[config_key] || default_config
|
43
|
+
block.call(@config) if block_given?
|
43
44
|
end
|
44
45
|
|
45
46
|
def default_config
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: perfect_retry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- uu59
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -78,6 +78,7 @@ files:
|
|
78
78
|
- ".travis.yml"
|
79
79
|
- Gemfile
|
80
80
|
- LICENSE.txt
|
81
|
+
- NEWS.md
|
81
82
|
- README.md
|
82
83
|
- Rakefile
|
83
84
|
- bin/console
|