take2 0.0.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.circleci/config.yml +1 -1
- data/.gitignore +3 -0
- data/.hound.yml +3 -0
- data/.rubocop.yml +1201 -0
- data/CHANGELOG.md +10 -1
- data/Gemfile +4 -1
- data/Gemfile.lock +21 -3
- data/README.md +35 -39
- data/lib/take2.rb +67 -48
- data/lib/take2/backoff.rb +48 -0
- data/lib/take2/configuration.rb +35 -30
- data/lib/take2/version.rb +4 -2
- data/spec/spec_helper.rb +3 -1
- data/spec/take2/configuration_spec.rb +34 -63
- data/spec/take2_spec.rb +146 -152
- data/take2.gemspec +9 -7
- metadata +8 -6
data/take2.gemspec
CHANGED
@@ -1,21 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require File.expand_path("../lib/take2/version", __FILE__)
|
2
4
|
|
3
5
|
Gem::Specification.new do |s|
|
4
6
|
s.name = "take2"
|
5
7
|
s.version = Take2::VERSION
|
6
8
|
s.platform = Gem::Platform::RUBY
|
7
|
-
s.licenses =
|
9
|
+
s.licenses = %w(MIT)
|
8
10
|
s.authors = ["Anton Magids"]
|
9
11
|
s.email = ["evnomadx@gmail.com"]
|
10
12
|
s.homepage = "https://github.com/restaurant-cheetah/take2"
|
11
13
|
s.summary = "Provides Take2 for your APIs calls"
|
12
|
-
s.description = "Retry API calls, methods or blocks of code. Define take2 retry behavior or
|
14
|
+
s.description = "Retry failed API calls, methods or blocks of code. Define take2 retry behavior on a class or method level and you good to go."
|
13
15
|
s.post_install_message = "Getting Take2 is dead easy!"
|
14
16
|
|
15
|
-
all_files =
|
16
|
-
test_files =
|
17
|
-
|
17
|
+
all_files = %x(git ls-files).split("\n")
|
18
|
+
test_files = %x(git ls-files -- {test,spec,features}/*).split("\n")
|
19
|
+
|
18
20
|
s.files = all_files - test_files
|
19
21
|
s.test_files = test_files
|
20
|
-
s.require_paths =
|
21
|
-
end
|
22
|
+
s.require_paths = %w(lib)
|
23
|
+
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: take2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Magids
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: Retry API calls, methods or blocks of code. Define take2 retry
|
14
|
-
or
|
13
|
+
description: Retry failed API calls, methods or blocks of code. Define take2 retry
|
14
|
+
behavior on a class or method level and you good to go.
|
15
15
|
email:
|
16
16
|
- evnomadx@gmail.com
|
17
17
|
executables: []
|
@@ -22,6 +22,8 @@ files:
|
|
22
22
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
23
23
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
24
24
|
- ".gitignore"
|
25
|
+
- ".hound.yml"
|
26
|
+
- ".rubocop.yml"
|
25
27
|
- CHANGELOG.md
|
26
28
|
- Gemfile
|
27
29
|
- Gemfile.lock
|
@@ -29,6 +31,7 @@ files:
|
|
29
31
|
- README.md
|
30
32
|
- Rakefile
|
31
33
|
- lib/take2.rb
|
34
|
+
- lib/take2/backoff.rb
|
32
35
|
- lib/take2/configuration.rb
|
33
36
|
- lib/take2/version.rb
|
34
37
|
- spec/spec_helper.rb
|
@@ -54,8 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
57
|
- !ruby/object:Gem::Version
|
55
58
|
version: '0'
|
56
59
|
requirements: []
|
57
|
-
|
58
|
-
rubygems_version: 2.6.14
|
60
|
+
rubygems_version: 3.0.8
|
59
61
|
signing_key:
|
60
62
|
specification_version: 4
|
61
63
|
summary: Provides Take2 for your APIs calls
|