delayed_job_master 2.0.1 → 2.0.2

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: e3183f5a73de37ebe6c4303cab37285c8378b8b7f06fc809abf40404efbfea66
4
- data.tar.gz: 43a33ec26663e0bd1fe632663cec398b79c53859dd9f17c29e5ca77b881c0ca2
3
+ metadata.gz: af19b8a7d431072868701600d2298be3df8dbcd67b77b9475ce8ac92299c9a00
4
+ data.tar.gz: 124d605397464a453c2bf96774c7453cdefd8746696eda34c027f0f8312522cb
5
5
  SHA512:
6
- metadata.gz: 2cdeb80a4394fa04cb51289413b5f16f80006ecd958fcd24919cda177e01883e09f1d13876c0218f5cc1e645bd514a5a93f1e1b412a056e3f08b0dcf8fb1eb3c
7
- data.tar.gz: 2dc3d4c9370b77648fd7e7b26388cdae0ec5798eb043f88df3b9b04d0b966de79a9f2e48a72068a93bd79e83cae2e27e324a1d4e41eff364d8fbdc41e6dd0321
6
+ metadata.gz: f7f4033ac2a0289d098e38c001ffb8fcafbcecda60b757dd1622922f5779850bbf0887ffd45ce135d343ebc3f607c0249517ed8ad7230bbdbe0d55f766ec4942
7
+ data.tar.gz: 39f656a25a4a1d843749b727e09eace912f55b74fb5bd51d289abc3cc8679de837a95b330b455583a37c0d8b410a94372ce50e53edf3732cd3e0bf707d305de8
@@ -0,0 +1,47 @@
1
+ name: CI
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ test:
7
+ runs-on: ubuntu-16.04
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ ruby: [2.3, 2.4, 2.5, 2.6, 2.7, 3.0]
12
+ gemfile: ['rails50', 'rails51', 'rails52', 'rails60', 'rails61']
13
+ exclude:
14
+ - ruby: 2.3
15
+ gemfile: rails60
16
+ - ruby: 2.3
17
+ gemfile: rails61
18
+ - ruby: 2.4
19
+ gemfile: rails60
20
+ - ruby: 2.4
21
+ gemfile: rails61
22
+ - ruby: 3.0
23
+ gemfile: rails50
24
+ - ruby: 3.0
25
+ gemfile: rails51
26
+ - ruby: 3.0
27
+ gemfile: rails52
28
+
29
+ name: ruby ${{ matrix.ruby }}, ${{ matrix.gemfile }}
30
+
31
+ env:
32
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
33
+
34
+ steps:
35
+ - uses: actions/checkout@v2
36
+ - uses: ruby/setup-ruby@v1
37
+ with:
38
+ ruby-version: ${{ matrix.ruby }}
39
+ bundler-cache: true
40
+ - name: Prepare test
41
+ run: |
42
+ cd spec/dummy
43
+ BUNDLE_GEMFILE=../../${{ env.BUNDLE_GEMFILE }} RAILS_ENV=test bundle exec rake dbs:migrate
44
+ cd ../..
45
+ - name: Run test
46
+ run: |
47
+ bundle exec rspec
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.0.2
4
+
5
+ * Force establish_connection after fork.
6
+
3
7
  ## 2.0.1
4
8
 
5
9
  * Force file reopen mode to `a+`.
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rails", "~> 6.1.0"
4
+
5
+ gemspec path: "../"
@@ -52,9 +52,7 @@ module Delayed
52
52
  prc = @config.after_fork
53
53
  @config.after_fork do |master, worker|
54
54
  prc.call(master, worker)
55
- if worker.database && ActiveRecord::Base.connection_pool.spec.name != worker.database.to_s
56
- ActiveRecord::Base.establish_connection(worker.database)
57
- end
55
+ ActiveRecord::Base.establish_connection(worker.database) if worker.database
58
56
  end
59
57
  end
60
58
 
@@ -1,5 +1,5 @@
1
1
  module Delayed
2
2
  class Master
3
- VERSION = "2.0.1"
3
+ VERSION = "2.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job_master
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-14 00:00:00.000000000 Z
11
+ date: 2021-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: delayed_job
@@ -129,9 +129,9 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
+ - ".github/workflows/ci.yml"
132
133
  - ".gitignore"
133
134
  - ".rspec"
134
- - ".travis.yml"
135
135
  - CHANGELOG.md
136
136
  - CODE_OF_CONDUCT.md
137
137
  - Gemfile
@@ -143,6 +143,7 @@ files:
143
143
  - gemfiles/rails51.gemfile
144
144
  - gemfiles/rails52.gemfile
145
145
  - gemfiles/rails60.gemfile
146
+ - gemfiles/rails61.gemfile
146
147
  - lib/delayed/master.rb
147
148
  - lib/delayed/master/command.rb
148
149
  - lib/delayed/master/config.rb
@@ -181,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
182
  - !ruby/object:Gem::Version
182
183
  version: '0'
183
184
  requirements: []
184
- rubygems_version: 3.1.2
185
+ rubygems_version: 3.2.3
185
186
  signing_key:
186
187
  specification_version: 4
187
188
  summary: A simple delayed_job master process to control multiple workers
@@ -1,24 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3
4
- - 2.4
5
- - 2.5
6
- - 2.6
7
- - 2.7
8
- gemfile:
9
- - gemfiles/rails50.gemfile
10
- - gemfiles/rails51.gemfile
11
- - gemfiles/rails52.gemfile
12
- - gemfiles/rails60.gemfile
13
- matrix:
14
- exclude:
15
- - rvm: 2.3
16
- gemfile: gemfiles/rails60.gemfile
17
- - rvm: 2.4
18
- gemfile: gemfiles/rails60.gemfile
19
- before_script:
20
- - cd spec/dummy
21
- - bundle exec rake dbs:migrate RAILS_ENV=test
22
- - cd ../..
23
- script:
24
- - bundle exec rspec