delayed_job_worker_pool 0.3.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0273d86b923b9ab445381d365eb26bce6253433bee7a8a8ad8882846ab5626f
4
- data.tar.gz: 8b0db9639c8d1107f4eda74accc59253b9e2e55ffdcbbae167324a895d6c7bc9
3
+ metadata.gz: ec3712fc2bae4eaac3d8d07ab408616c2efef0763d0d173ff65281d267a42f30
4
+ data.tar.gz: cf6f8866ad4de83cd52e110d5f8d69578af11fa3ba6397448b32400ba711a048
5
5
  SHA512:
6
- metadata.gz: ed7f9139bdaebf583aa2bae0420f253a88c759d2bda97b4cfd88c5f11f77ec08361f9ddb866ad32bc66569848d8ba41b5629531b2a02e123a60eec86fbbd3435
7
- data.tar.gz: e0974480bd81a01d60e48ac5db9a2f4cc29d6ad62b0c8af9e426b2c4da28fc950b8e408aa9f20a948c7eb2fb9130e5d2db13a9b0a8f6c27a1e85314091f4ab83
6
+ metadata.gz: 5e095fcb89fa76967608d5d4e513cce17034d209d24f03b7531a39d25843a1e8bc80923a2b0a5de66d4e804c0912af853622edde7e441da19b9a52c84b991266
7
+ data.tar.gz: c1fe489f6a6172a3d61f7ad27fd384576cda69cbc0160a49bcf393df813d245e18614ba3321d14d18d5284318f18751db220be193deb2712713d2517722756de
@@ -0,0 +1,80 @@
1
+ version: 2.1
2
+ jobs:
3
+ lint:
4
+ docker:
5
+ - image: salsify/ruby_ci:2.7.6
6
+ working_directory: ~/delayed_job_worker_pool
7
+ steps:
8
+ - checkout
9
+ - restore_cache:
10
+ keys:
11
+ - v1-gems-ruby-2.7.6-{{ checksum "delayed_job_worker_pool.gemspec" }}-{{ checksum "Gemfile" }}
12
+ - v1-gems-ruby-2.7.6-
13
+ - run:
14
+ name: Install Gems
15
+ command: |
16
+ if ! bundle check --path=vendor/bundle; then
17
+ bundle install --path=vendor/bundle --jobs=4 --retry=3
18
+ bundle clean
19
+ fi
20
+ - save_cache:
21
+ key: v1-gems-ruby-2.7.6-{{ checksum "delayed_job_worker_pool.gemspec" }}-{{ checksum "Gemfile" }}
22
+ paths:
23
+ - "vendor/bundle"
24
+ - "gemfiles/vendor/bundle"
25
+ - run:
26
+ name: Run Rubocop
27
+ command: bundle exec rubocop --config .rubocop.yml
28
+ test:
29
+ parameters:
30
+ ruby_version:
31
+ type: string
32
+ gemfile:
33
+ type: string
34
+ docker:
35
+ - image: salsify/ruby_ci:<< parameters.ruby_version >>
36
+ environment:
37
+ CIRCLE_TEST_REPORTS: "test-results"
38
+ BUNDLE_GEMFILE: "~/delayed_job_worker_pool/<< parameters.gemfile >>"
39
+ working_directory: ~/delayed_job_worker_pool
40
+ steps:
41
+ - checkout
42
+ - restore_cache:
43
+ keys:
44
+ - v1-gems-ruby-<< parameters.ruby_version >>-{{ checksum "delayed_job_worker_pool.gemspec" }}-{{ checksum "<< parameters.gemfile >>" }}
45
+ - v1-gems-ruby-<< parameters.ruby_version >>-
46
+ - run:
47
+ name: Install Gems
48
+ command: |
49
+ if ! bundle check --path=vendor/bundle; then
50
+ bundle install --path=vendor/bundle --jobs=4 --retry=3
51
+ bundle clean
52
+ fi
53
+ - save_cache:
54
+ key: v1-gems-ruby-<< parameters.ruby_version >>-{{ checksum "delayed_job_worker_pool.gemspec" }}-{{ checksum "<< parameters.gemfile >>" }}
55
+ paths:
56
+ - "vendor/bundle"
57
+ - "gemfiles/vendor/bundle"
58
+ - run:
59
+ name: Run Tests
60
+ command: |
61
+ bundle exec rspec --format RspecJunitFormatter --out $CIRCLE_TEST_REPORTS/rspec/junit.xml --format progress spec
62
+ - store_test_results:
63
+ path: "test-results"
64
+ - store_artifacts:
65
+ path: "tmp/log/"
66
+ workflows:
67
+ build:
68
+ jobs:
69
+ - lint
70
+ - test:
71
+ matrix:
72
+ parameters:
73
+ gemfile:
74
+ - "gemfiles/rails_6.0.gemfile"
75
+ - "gemfiles/rails_6.1.gemfile"
76
+ - "gemfiles/rails_7.0.gemfile"
77
+ ruby_version:
78
+ - "2.7.6"
79
+ - "3.0.4"
80
+ - "3.1.2"
@@ -0,0 +1 @@
1
+ * @jturkel @will89
data/.gitignore CHANGED
@@ -9,3 +9,6 @@
9
9
  /tmp/
10
10
  .rspec
11
11
  *.sqlite3
12
+ gemfiles/*.gemfile.lock
13
+ gemfiles/.bundle/*
14
+ spec/dummy/log/
data/.rubocop.yml CHANGED
@@ -2,7 +2,7 @@ inherit_gem:
2
2
  salsify_rubocop: conf/rubocop.yml
3
3
 
4
4
  AllCops:
5
- TargetRubyVersion: 2.5
5
+ TargetRubyVersion: 2.7
6
6
  Exclude:
7
7
  - 'vendor/**/*'
8
- - 'gemfiles/vendor/**/*'
8
+ - 'gemfiles/**/*'
data/Appraisals ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise 'rails-6.0' do
4
+ gem 'rails', '~> 6.0.5'
5
+ end
6
+
7
+ appraise 'rails-6.1' do
8
+ gem 'rails', '~> 6.1.6'
9
+ end
10
+
11
+ appraise 'rails-7.0' do
12
+ gem 'rails', '~> 7.0.3'
13
+ end
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.0.0
4
+ * Require Ruby 2.7 or higher.
5
+
3
6
  ### 0.3.0
4
7
  * Require Ruby 2.5 or higher.
5
8
  * Support for running multiple worker pools on a single node.
data/README.md CHANGED
@@ -89,7 +89,7 @@ end
89
89
 
90
90
  worker_group(:mails) do |g|
91
91
  g.workers = 1
92
- g.queues = ['mail]
92
+ g.queues = ['mail']
93
93
  end
94
94
 
95
95
  ```
@@ -14,20 +14,29 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = 'https://github.com/salsify/delayed_job_worker_pool'
15
15
  spec.license = 'MIT'
16
16
 
17
+ if spec.respond_to?(:metadata)
18
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
19
+ spec.metadata['rubygems_mfa_required'] = 'true'
20
+ else
21
+ raise 'RubyGems 2.0 or newer is required to set allowed_push_host.'
22
+ end
23
+
17
24
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
25
  spec.executables = ['delayed_job_worker_pool']
19
26
  spec.require_paths = ['lib']
20
27
 
21
- spec.required_ruby_version = '>= 2.5'
28
+ spec.required_ruby_version = '>= 2.7'
22
29
 
23
30
  spec.add_dependency 'delayed_job', ['>= 3.0', '< 4.2']
24
31
 
25
- spec.add_development_dependency 'bundler', '~> 2.1'
32
+ spec.add_development_dependency 'appraisal'
33
+ spec.add_development_dependency 'bundler', '~> 2.0'
26
34
  spec.add_development_dependency 'delayed_job_active_record'
27
- spec.add_development_dependency 'rails', '>= 4.2', '< 6'
28
- spec.add_development_dependency 'rake', '~> 10.0'
29
- spec.add_development_dependency 'rspec', '>= 3.3'
30
- spec.add_development_dependency 'salsify_rubocop', '0.85.0'
35
+ spec.add_development_dependency 'rails', '>= 6.0', '< 8'
36
+ spec.add_development_dependency 'rake', '~> 13.0'
37
+ spec.add_development_dependency 'rspec', '>= 3.8'
38
+ spec.add_development_dependency 'rspec_junit_formatter'
39
+ spec.add_development_dependency 'salsify_rubocop', '~> 1.27.1'
31
40
  spec.add_development_dependency 'sprockets', '< 4'
32
41
  spec.add_development_dependency 'sqlite3', '>= 1.3'
33
42
  end
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 6.0.5"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 6.1.6"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 7.0.3"
6
+
7
+ gemspec path: "../"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DelayedJobWorkerPool
4
- VERSION = '0.3.0'
4
+ VERSION = '1.0.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job_worker_pool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Turkel
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-16 00:00:00.000000000 Z
11
+ date: 2022-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: delayed_job
@@ -30,20 +30,34 @@ dependencies:
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '4.2'
33
+ - !ruby/object:Gem::Dependency
34
+ name: appraisal
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
33
47
  - !ruby/object:Gem::Dependency
34
48
  name: bundler
35
49
  requirement: !ruby/object:Gem::Requirement
36
50
  requirements:
37
51
  - - "~>"
38
52
  - !ruby/object:Gem::Version
39
- version: '2.1'
53
+ version: '2.0'
40
54
  type: :development
41
55
  prerelease: false
42
56
  version_requirements: !ruby/object:Gem::Requirement
43
57
  requirements:
44
58
  - - "~>"
45
59
  - !ruby/object:Gem::Version
46
- version: '2.1'
60
+ version: '2.0'
47
61
  - !ruby/object:Gem::Dependency
48
62
  name: delayed_job_active_record
49
63
  requirement: !ruby/object:Gem::Requirement
@@ -64,62 +78,76 @@ dependencies:
64
78
  requirements:
65
79
  - - ">="
66
80
  - !ruby/object:Gem::Version
67
- version: '4.2'
81
+ version: '6.0'
68
82
  - - "<"
69
83
  - !ruby/object:Gem::Version
70
- version: '6'
84
+ version: '8'
71
85
  type: :development
72
86
  prerelease: false
73
87
  version_requirements: !ruby/object:Gem::Requirement
74
88
  requirements:
75
89
  - - ">="
76
90
  - !ruby/object:Gem::Version
77
- version: '4.2'
91
+ version: '6.0'
78
92
  - - "<"
79
93
  - !ruby/object:Gem::Version
80
- version: '6'
94
+ version: '8'
81
95
  - !ruby/object:Gem::Dependency
82
96
  name: rake
83
97
  requirement: !ruby/object:Gem::Requirement
84
98
  requirements:
85
99
  - - "~>"
86
100
  - !ruby/object:Gem::Version
87
- version: '10.0'
101
+ version: '13.0'
88
102
  type: :development
89
103
  prerelease: false
90
104
  version_requirements: !ruby/object:Gem::Requirement
91
105
  requirements:
92
106
  - - "~>"
93
107
  - !ruby/object:Gem::Version
94
- version: '10.0'
108
+ version: '13.0'
95
109
  - !ruby/object:Gem::Dependency
96
110
  name: rspec
97
111
  requirement: !ruby/object:Gem::Requirement
98
112
  requirements:
99
113
  - - ">="
100
114
  - !ruby/object:Gem::Version
101
- version: '3.3'
115
+ version: '3.8'
102
116
  type: :development
103
117
  prerelease: false
104
118
  version_requirements: !ruby/object:Gem::Requirement
105
119
  requirements:
106
120
  - - ">="
107
121
  - !ruby/object:Gem::Version
108
- version: '3.3'
122
+ version: '3.8'
123
+ - !ruby/object:Gem::Dependency
124
+ name: rspec_junit_formatter
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ type: :development
131
+ prerelease: false
132
+ version_requirements: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
109
137
  - !ruby/object:Gem::Dependency
110
138
  name: salsify_rubocop
111
139
  requirement: !ruby/object:Gem::Requirement
112
140
  requirements:
113
- - - '='
141
+ - - "~>"
114
142
  - !ruby/object:Gem::Version
115
- version: 0.85.0
143
+ version: 1.27.1
116
144
  type: :development
117
145
  prerelease: false
118
146
  version_requirements: !ruby/object:Gem::Requirement
119
147
  requirements:
120
- - - '='
148
+ - - "~>"
121
149
  - !ruby/object:Gem::Version
122
- version: 0.85.0
150
+ version: 1.27.1
123
151
  - !ruby/object:Gem::Dependency
124
152
  name: sprockets
125
153
  requirement: !ruby/object:Gem::Requirement
@@ -148,7 +176,7 @@ dependencies:
148
176
  - - ">="
149
177
  - !ruby/object:Gem::Version
150
178
  version: '1.3'
151
- description:
179
+ description:
152
180
  email:
153
181
  - jturkel@salsify.com
154
182
  executables:
@@ -156,9 +184,11 @@ executables:
156
184
  extensions: []
157
185
  extra_rdoc_files: []
158
186
  files:
187
+ - ".circleci/config.yml"
188
+ - ".github/CODEOWNERS"
159
189
  - ".gitignore"
160
190
  - ".rubocop.yml"
161
- - ".travis.yml"
191
+ - Appraisals
162
192
  - CHANGELOG.md
163
193
  - Gemfile
164
194
  - LICENSE.txt
@@ -166,6 +196,9 @@ files:
166
196
  - Rakefile
167
197
  - bin/delayed_job_worker_pool
168
198
  - delayed_job_worker_pool.gemspec
199
+ - gemfiles/rails_6.0.gemfile
200
+ - gemfiles/rails_6.1.gemfile
201
+ - gemfiles/rails_7.0.gemfile
169
202
  - lib/delayed_job_worker_pool.rb
170
203
  - lib/delayed_job_worker_pool/application.rb
171
204
  - lib/delayed_job_worker_pool/dsl.rb
@@ -178,8 +211,10 @@ files:
178
211
  homepage: https://github.com/salsify/delayed_job_worker_pool
179
212
  licenses:
180
213
  - MIT
181
- metadata: {}
182
- post_install_message:
214
+ metadata:
215
+ allowed_push_host: https://rubygems.org
216
+ rubygems_mfa_required: 'true'
217
+ post_install_message:
183
218
  rdoc_options: []
184
219
  require_paths:
185
220
  - lib
@@ -187,15 +222,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
187
222
  requirements:
188
223
  - - ">="
189
224
  - !ruby/object:Gem::Version
190
- version: '2.5'
225
+ version: '2.7'
191
226
  required_rubygems_version: !ruby/object:Gem::Requirement
192
227
  requirements:
193
228
  - - ">="
194
229
  - !ruby/object:Gem::Version
195
230
  version: '0'
196
231
  requirements: []
197
- rubygems_version: 3.0.8
198
- signing_key:
232
+ rubygems_version: 3.3.7
233
+ signing_key:
199
234
  specification_version: 4
200
235
  summary: Worker process pooling for Delayed Job
201
236
  test_files: []
data/.travis.yml DELETED
@@ -1,11 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- sudo: false
4
- rvm:
5
- - 2.7.1
6
- - 2.6.6
7
- - 2.5.8
8
- before_install: gem install bundler -v '~> 2.1'
9
- script:
10
- - bundle exec rspec
11
- - bundle exec rubocop