yabeda-sidekiq 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/lint.yml +25 -0
- data/.github/workflows/test.yml +9 -9
- data/CHANGELOG.md +8 -0
- data/lib/yabeda/sidekiq/version.rb +1 -1
- data/lib/yabeda/sidekiq.rb +6 -2
- 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: '08af80462b44bb1631a4e7103354bf2cd3613807b629d282d31913ec8c2dfc75'
|
4
|
+
data.tar.gz: 60634a95cc22cbeaff73e0986651956e5348315cb42077f4c6a86447dfd45acc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f880ce4e139f01b07d375e62e252fa990d198e09838aa9d2a3b3d348984adda38debe8ddb33ccc8dd514a2f502f89c27f5acdfafe320479d59a397ac7e56000
|
7
|
+
data.tar.gz: 29c28c92077f5b3edbd1e844c6ddcba0bb4de99ca164dcfadca30a1c2369979a2cc3ac51192ee700b8d71fc82d68372fc4b12cf00521ae0ef822b5c08d2b9cb0
|
@@ -0,0 +1,25 @@
|
|
1
|
+
name: Lint
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
push:
|
6
|
+
branches:
|
7
|
+
- '**'
|
8
|
+
tags-ignore:
|
9
|
+
- 'v*'
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
rubocop:
|
13
|
+
# Skip running tests for local pull requests (use push event instead), run only for foreign ones
|
14
|
+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login
|
15
|
+
name: RuboCop
|
16
|
+
runs-on: ubuntu-latest
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v2
|
19
|
+
- uses: ruby/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
ruby-version: "3.0"
|
22
|
+
bundler-cache: true
|
23
|
+
- name: Lint Ruby code with RuboCop
|
24
|
+
run: |
|
25
|
+
bundle exec rubocop
|
data/.github/workflows/test.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
name:
|
1
|
+
name: Tests
|
2
2
|
|
3
3
|
on:
|
4
4
|
pull_request:
|
@@ -10,17 +10,19 @@ on:
|
|
10
10
|
|
11
11
|
jobs:
|
12
12
|
test:
|
13
|
-
name:
|
14
|
-
|
13
|
+
name: 'Ruby ${{ matrix.ruby }}'
|
14
|
+
# Skip running tests for local pull requests (use push event instead), run only for foreign ones
|
15
|
+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login != github.event.pull_request.base.repo.owner.login
|
15
16
|
runs-on: ubuntu-latest
|
16
17
|
strategy:
|
17
18
|
fail-fast: false
|
18
19
|
matrix:
|
19
20
|
include:
|
20
|
-
- ruby: 3.
|
21
|
-
- ruby:
|
22
|
-
- ruby: 2.
|
23
|
-
- ruby: 2.
|
21
|
+
- ruby: '3.1'
|
22
|
+
- ruby: '3.0'
|
23
|
+
- ruby: '2.7'
|
24
|
+
- ruby: '2.6'
|
25
|
+
- ruby: '2.5'
|
24
26
|
container:
|
25
27
|
image: ruby:${{ matrix.ruby }}
|
26
28
|
env:
|
@@ -41,7 +43,5 @@ jobs:
|
|
41
43
|
bundle config path vendor/bundle
|
42
44
|
bundle install
|
43
45
|
bundle update
|
44
|
-
- name: Run Rubocop
|
45
|
-
run: bundle exec rubocop
|
46
46
|
- name: Run RSpec
|
47
47
|
run: bundle exec rspec
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
7
7
|
|
8
8
|
## Unreleased
|
9
9
|
|
10
|
+
## 0.8.2 - 2022-09-14
|
11
|
+
|
12
|
+
### Added
|
13
|
+
|
14
|
+
- Ability to programmatically change gem settings by calling writer methods on `Yabeda::Sidekiq.config`. [@Envek]
|
15
|
+
|
16
|
+
Usage is quite limited though as you need to do it before `Yabeda.configure!` is called.
|
17
|
+
|
10
18
|
## 0.8.1 - 2021-08-24
|
11
19
|
|
12
20
|
### Fixed
|
data/lib/yabeda/sidekiq.rb
CHANGED
@@ -16,8 +16,12 @@ module Yabeda
|
|
16
16
|
30, 60, 120, 300, 1800, 3600, 21_600, # Sidekiq tasks may be very long-running
|
17
17
|
].freeze
|
18
18
|
|
19
|
+
def self.config
|
20
|
+
@config ||= Config.new
|
21
|
+
end
|
22
|
+
|
19
23
|
Yabeda.configure do
|
20
|
-
config =
|
24
|
+
config = ::Yabeda::Sidekiq.config
|
21
25
|
|
22
26
|
group :sidekiq
|
23
27
|
|
@@ -135,6 +139,6 @@ module Yabeda
|
|
135
139
|
end
|
136
140
|
end
|
137
141
|
|
138
|
-
self.jobs_started_at = Concurrent::
|
142
|
+
self.jobs_started_at = Concurrent::Map.new { |hash, key| hash[key] = Concurrent::Map.new }
|
139
143
|
end
|
140
144
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yabeda-sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Novikov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: anyway_config
|
@@ -123,6 +123,7 @@ extensions: []
|
|
123
123
|
extra_rdoc_files: []
|
124
124
|
files:
|
125
125
|
- ".github/workflows/build-release.yml"
|
126
|
+
- ".github/workflows/lint.yml"
|
126
127
|
- ".github/workflows/test.yml"
|
127
128
|
- ".gitignore"
|
128
129
|
- ".rspec"
|