sidekiq_remappable_errors 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39b0750a44972855d6d78960cbc99ba9d62b3a8717ea6ae95bd30f78fbb2e222
4
- data.tar.gz: '086b12e9d189b867521ad870431dfa4607ac393a53432ba44006576930a11b98'
3
+ metadata.gz: de7ef67c94263f443a01c4b399362ab194e55e704c1ffb8eff6d5f22ae494157
4
+ data.tar.gz: 8efbebbd55aed9f4b5195877c08460912f4ff3b7983c4b59b7ff1cafe462404b
5
5
  SHA512:
6
- metadata.gz: 690efdf5e77c8fffc86739e1a4c2760959d564c4a94812d62721f3c05eee47d2666e8fa9be33838bc4133ae39289f080803f38fd72b5e0a6f6836c079af77c04
7
- data.tar.gz: f9bf9f6b7943f48f434be4ebc5efd0df84450eb69f225f4765feb4e677b70c1ca320ae409ec08c9f5e97fea5d7fc22e393387c91efd9b2727f0615ad23899831
6
+ metadata.gz: 6213157e1a46bccb7309f0dc35562c229ea51bf8ba01e412e7bbe96fadfe8dce1e8927b5bca091df7bb6662bbf7a1a9c30133cd633aeda661198c5fc389a4c27
7
+ data.tar.gz: 3b9979097b336b95ec48bbae776bcf04532bf7c5c3fc3eb65b137ae8fb6ad0c3b838641f38314d73df73042b0bf0cb88d42a8d722d1f4ee5acbd548a884aca28
@@ -0,0 +1,65 @@
1
+ version: 2.1
2
+
3
+ jobs:
4
+ 'Build - Ruby 3_0':
5
+ docker:
6
+ - image: circleci/ruby:3.0.0
7
+ steps:
8
+ - checkout # special step to check out source code to working directory
9
+ - run:
10
+ name: Install Bundler
11
+ command: gem install bundler:2.2.13
12
+ - restore_cache:
13
+ keys:
14
+ - gem-cache-ruby-3-v1{{ checksum "Gemfile.lock" }}
15
+ - gem-cache-ruby-3
16
+ - run:
17
+ name: Bundle Install
18
+ command: bundle check || bundle install --without production
19
+ - save_cache:
20
+ key: gem-cache-ruby-3-v1{{ checksum "Gemfile.lock" }}
21
+ paths:
22
+ - vendor/bundle
23
+ - run:
24
+ name: 'Lint: Rubocop'
25
+ command: bundle exec rubocop .
26
+ - run:
27
+ name: Run RSpec
28
+ command: bundle exec rspec spec
29
+ - store_test_results:
30
+ path: test_results
31
+
32
+ 'Build - Ruby 2_7_3':
33
+ docker:
34
+ - image: circleci/ruby:2.7.3
35
+ steps:
36
+ - checkout # special step to check out source code to working directory
37
+ - run:
38
+ name: Install Bundler
39
+ command: gem install bundler:2.2.13
40
+ - restore_cache:
41
+ keys:
42
+ - gem-cache-ruby-2-7-3-v1{{ checksum "Gemfile.lock" }}
43
+ - gem-cache-ruby-2-7-3
44
+ - run:
45
+ name: Bundle Install
46
+ command: bundle check || bundle install --without production
47
+ - save_cache:
48
+ key: gem-cache-ruby-2-7-3-v1{{ checksum "Gemfile.lock" }}
49
+ paths:
50
+ - vendor/bundle
51
+ - run:
52
+ name: 'Lint: Rubocop'
53
+ command: bundle exec rubocop .
54
+ - run:
55
+ name: Run RSpec
56
+ command: bundle exec rspec spec
57
+ - store_test_results:
58
+ path: test_results
59
+
60
+ workflows:
61
+ version: 2
62
+ build:
63
+ jobs:
64
+ - 'Build - Ruby 3_0'
65
+ - 'Build - Ruby 2_7_3'
data/.rubocop.yml CHANGED
@@ -7,6 +7,9 @@ AllCops:
7
7
  Layout/ArgumentAlignment:
8
8
  Enabled: false
9
9
 
10
+ Layout/CaseIndentation:
11
+ Enabled: false
12
+
10
13
  Layout/LineLength:
11
14
  Max: 120
12
15
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.1
4
+
5
+ - Fixed potential bug with `return` in a do/end block.
6
+
3
7
  ## 1.0
4
8
 
5
9
  - No changes. Prior version running stable in production for a few weeks,
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sidekiq_remappable_errors (0.5.0)
4
+ sidekiq_remappable_errors (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://travis-ci.com/truecoach/sidekiq_remappable_errors.svg?branch=main)](https://travis-ci.com/truecoach/sidekiq_remappable_errors)
1
+ [![TrueCoach](https://circleci.com/gh/truecoach/sidekiq_remappable_errors.svg?style=svg)](https://circleci.com/gh/truecoach/sidekiq_remappable_errors)
2
2
 
3
3
  # SidekiqRemappableErrors
4
4
 
@@ -101,10 +101,11 @@ module SidekiqRemappableErrors
101
101
  retry_opt = sidekiq_options[:retry]
102
102
 
103
103
  # 25 is the hardcoded default in Sidekiq
104
- return 0 if retry_opt == false
105
- return 25 if retry_opt == true
106
-
107
- retry_opt
104
+ case retry_opt
105
+ when false then 0
106
+ when true then 25
107
+ else retry_opt
108
+ end
108
109
  end
109
110
  end
110
111
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SidekiqRemappableErrors
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq_remappable_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Steel
@@ -91,11 +91,11 @@ executables: []
91
91
  extensions: []
92
92
  extra_rdoc_files: []
93
93
  files:
94
+ - ".circleci/config.yml"
94
95
  - ".gitignore"
95
96
  - ".rspec"
96
97
  - ".rubocop.yml"
97
98
  - ".tool-versions"
98
- - ".travis.yml"
99
99
  - CHANGELOG.md
100
100
  - CODE_OF_CONDUCT.md
101
101
  - Gemfile
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.5.8
4
- - 2.6.6
5
- - 2.7.2
6
- before_install: gem install bundler -v 2.1.4
7
- script:
8
- - bundle exec rspec
9
- - bundle exec rubocop