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.
@@ -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 = ['MIT']
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 use defaults and you good to go."
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 = `git ls-files`.split("\n")
16
- test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
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 = ['lib']
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.3
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: 2018-09-24 00:00:00.000000000 Z
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 behavior
14
- or use defaults and you good to go.
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
- rubyforge_project:
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