sidekiq-pool 1.7.2 → 1.7.3

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
  SHA1:
3
- metadata.gz: 79cbed3f86756808090c9c714e1157eefb11ca3e
4
- data.tar.gz: 210c918a1481aed85fd15b5cb1fe5aeedf9d9a6a
3
+ metadata.gz: c605d689efc791c33839e5d80f2f97dfd6b24a65
4
+ data.tar.gz: e5a4ffcff69a18eff1cc7ecb9c91bcaed1f834d0
5
5
  SHA512:
6
- metadata.gz: dea17a64cbe45bdc540c6dcdcf6d1241b472209887efb4d9520146862360b17c55b5ec1302d5f83c240ae85230e8c8a3b9096e075d6c59a0e01dc4454a95a097
7
- data.tar.gz: c306c75738d998a3cbd84219096bdc354ad74dadf4c95dd324a9ef61bbd16722d78d0adbe9ae77bc2f7ffb725dcdc172ae2414951441f8fb86041b89716b1cd9
6
+ metadata.gz: 1dde212d328c42b38316fef55799f918bf920642e6551bf70b169ff618ae19c4e2243f98738cbd68cc21233b1aa287898f66cd43830fd60dc0d465b1850a5f5d
7
+ data.tar.gz: 4d585a9206bba6530b4dca6eeeb97b7acb89f4e0d04f1fbf53a2775cb67b9ad0de5edb8facef9f6172171f779c9db62e186fe94a05b8a00a0a354b3450be9129
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /pkg/
9
9
  /spec/reports/
10
10
  /tmp/
11
+ .idea/
@@ -0,0 +1,15 @@
1
+ LineLength:
2
+ Max: 99
3
+
4
+ AllCops:
5
+ TargetRubyVersion: 2.5
6
+
7
+ Documentation:
8
+ Enabled: false
9
+
10
+ Style/TrailingCommaInHashLiteral:
11
+ EnforcedStyleForMultiline: comma
12
+
13
+ Metrics/BlockLength:
14
+ Exclude:
15
+ - spec/**/*.rb
@@ -1,7 +1,14 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - ruby-head
3
4
  - 2.5.1
4
5
  - 2.4.1
5
6
  - 2.3.4
6
7
  - 2.2.7
7
8
  before_install: gem install bundler -v 1.11.2
9
+ after_success:
10
+ - >
11
+ [ "${TRAVIS_PULL_REQUEST}" != "false" ] &&
12
+ [ "${TRAVIS_RUBY_VERSION}" = "2.5.1" ] &&
13
+ PRONTO_PULL_REQUEST_ID=${TRAVIS_PULL_REQUEST} \
14
+ bundle exec pronto run -f github_status github_pr -c origin/${TRAVIS_BRANCH}
data/README.md CHANGED
@@ -41,7 +41,7 @@ Start pool with a non-default path config
41
41
 
42
42
  ## Signals
43
43
 
44
- Signals `USR1`, `USR2` are forwarded to the children.
44
+ Signals `USR1`, `USR2`, and `TSTP` are forwarded to the children. Depending on the version of Sidekiq, you may need to send `USR1` or `TSTP` to prepare it for shutdown. For more information, please read [signals and sidekiq](https://github.com/mperham/sidekiq/wiki/Signals) documentation.
45
45
 
46
46
  Signal `HUP` to parent starts new children and then stops old.
47
47
 
@@ -241,7 +241,7 @@ module Sidekiq
241
241
  exit(0)
242
242
  when 'CHLD'
243
243
  check_pool
244
- when 'USR1'
244
+ when 'USR1', 'TSTP'
245
245
  @done = true
246
246
  update_process_name
247
247
  signal_to_pool(sig)
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Pool
3
- VERSION = '1.7.2'
3
+ VERSION = '1.7.3'
4
4
  end
5
5
  end
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency 'sidekiq', '>= 3.0', '< 6.0'
22
22
 
23
23
  spec.add_development_dependency 'bundler', '~> 1.11'
24
+ spec.add_development_dependency 'pronto-rubocop', '~> 0.9'
24
25
  spec.add_development_dependency 'rake', '~> 10.0'
25
26
  spec.add_development_dependency 'rspec', '~> 3.0'
26
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-pool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurynas Butkus
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-06-16 00:00:00.000000000 Z
12
+ date: 2018-06-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sidekiq
@@ -45,6 +45,20 @@ dependencies:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.11'
48
+ - !ruby/object:Gem::Dependency
49
+ name: pronto-rubocop
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.9'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.9'
48
62
  - !ruby/object:Gem::Dependency
49
63
  name: rake
50
64
  requirement: !ruby/object:Gem::Requirement
@@ -84,6 +98,7 @@ extra_rdoc_files: []
84
98
  files:
85
99
  - ".gitignore"
86
100
  - ".rspec"
101
+ - ".rubocop.yml"
87
102
  - ".travis.yml"
88
103
  - Gemfile
89
104
  - LICENSE.txt