resque-heroku-signals 2.0.0 → 2.2.1

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: ac5fd3d93389d56c8ccbcc79654d101aa0a0db3160a0d26ed24cfa66707e0b24
4
- data.tar.gz: 4f5145d0448463b733f52e291dc0b60623693be5e98c401f6fc5192e9f6e0759
3
+ metadata.gz: ea028431b844d931fd22460cbddce4b227a90a988186f83d1e86a89e18ef14f5
4
+ data.tar.gz: eb385b09c9a9aceb12ec9009d0086a902e566e59f7751561c0b41ce76ecb30e1
5
5
  SHA512:
6
- metadata.gz: 5ff3ac6d7594d4992aaf01d39a043dcd423602db78eeadae2e0e1a4fd62501c1530b08b4a69fcbda79c1d8010242b6261e1480c90477a8215002fe80402bda0e
7
- data.tar.gz: cc00a80f0d4e800c0ee6aa16cde04592aa8fd90f1204605509e104e4cb5e90c2e1b80fee54414244f7f4e611a84c15fe3e4654a42693e4fc461ca4842a553817
6
+ metadata.gz: 5b0e1254c18ea480402d39abd40b5198ddc2a81f7296dd5d329a466e7ddde6b21a3e889a23b8af895507a85b009e2a3a955d1ac4253cd6a20db2473badaefb8b
7
+ data.tar.gz: 53f0413ba1a1342441d76ddfeec739bd68ce32fb610d81ddcf51bcf92d53399a7ac534436da107bf34d8fd3c4c31f3cae2bef7c6f0adaef99a5b41bb770f9f59
@@ -0,0 +1,12 @@
1
+ version: 2
2
+
3
+ updates:
4
+ - package-ecosystem: "github-actions"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "weekly"
8
+
9
+ - package-ecosystem: "bundler"
10
+ directory: "/"
11
+ schedule:
12
+ interval: "weekly"
@@ -0,0 +1,24 @@
1
+ on: [push, pull_request]
2
+
3
+ jobs:
4
+ test:
5
+ runs-on: ubuntu-latest
6
+ services:
7
+ redis:
8
+ image: redis
9
+ ports:
10
+ - 6379:6379
11
+ strategy:
12
+ matrix:
13
+ ruby-version: ['3.0', 2.7, 2.6, 2.5, 2.4]
14
+
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ - name: Set up Ruby ${{ matrix.ruby-version }}
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: ${{ matrix.ruby-version }}
21
+ - name: Install dependencies
22
+ run: bundle install
23
+ - name: Run tests
24
+ run: bundle exec rake
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.3
data/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ [![Gem Version](https://badge.fury.io/rb/resque-heroku-signals.svg)](https://badge.fury.io/rb/resque-heroku-signals)
2
+ [![Ruby](https://github.com/iloveitaly/resque-heroku-signals/actions/workflows/ci.yml/badge.svg)](https://github.com/iloveitaly/resque-heroku-signals/actions/workflows/ci.yml)
3
+
1
4
  # resque-heroku-signals
2
5
 
3
6
  This gem patches resque to be compatible with the Heroku platform. Specifically it
@@ -15,7 +18,7 @@ Add this line to your application's Gemfile:
15
18
  gem 'resque-heroku-signals'
16
19
  ```
17
20
 
18
- Since this gem monkeypatches the Heroku worker the `gemspec` is locked to a `x.x.x` version of Resque. Issue a PR if this is not compatible with the version of resque you are using.
21
+ Since this gem monkeypatches the Heroku worker the `gemspec` is locked to a `x.x.x` version of Resque to ensure the monkeypatched logic is compatible with any changes in the original Resque logic. Issue a PR if this is not compatible with the version of resque you are using.
19
22
 
20
23
  ## Determining When a Process Will Shutdown
21
24
 
@@ -23,7 +26,7 @@ Heroku sends a `TERM` signal to a process before hard killing it. If your job co
23
26
 
24
27
  Ideally, using an idempotency key with each external API request is the best way to ensure that a given API request only runs. However, depending on your application logic this may not be practical and knowing if a process will be terminated in less than 30s by Heroku is a useful tool.
25
28
 
26
- Use `Resque.heroku_will_terminate?` to determine if Heroku will terminate your process within 30s.
29
+ Use `Resque.heroku_will_terminate?` to determine if Heroku will terminate your process within 30s.
27
30
 
28
31
  ## Example Procfile
29
32
 
@@ -4,12 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "resque-heroku-signals"
7
- spec.version = '2.0.0'
7
+ spec.version = '2.2.1'
8
8
  spec.authors = ["Michael Bianco"]
9
- spec.email = ["mike@suitesync.io"]
9
+ spec.email = ["mike@mikebian.co"]
10
10
 
11
11
  spec.summary = "Patch resque to be compatible with the Heroku platform"
12
- spec.homepage = "https://github.com/iloveitaly/resque-heroku-signals"
12
+ spec.homepage = "https://github.com/resque/resque-heroku-signals"
13
13
  spec.license = "MIT"
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -19,9 +19,10 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "resque", "2.0.0"
22
+ # strict resque dependency is intentional
23
+ spec.add_dependency "resque", "2.2.1"
23
24
 
24
- spec.add_development_dependency "bundler", "~> 1.14"
25
- spec.add_development_dependency "rake", "~> 10.0"
26
- spec.add_development_dependency "rspec", "~> 3.0"
25
+ spec.add_development_dependency "bundler", "~> 2.2"
26
+ spec.add_development_dependency "rake", "~> 13.0"
27
+ spec.add_development_dependency "rspec", "~> 3.10"
27
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-heroku-signals
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bianco
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-16 00:00:00.000000000 Z
11
+ date: 2022-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: resque
@@ -16,65 +16,68 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.0
19
+ version: 2.2.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.0.0
26
+ version: 2.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.14'
33
+ version: '2.2'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.14'
40
+ version: '2.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '13.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.0'
61
+ version: '3.10'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.0'
69
- description:
68
+ version: '3.10'
69
+ description:
70
70
  email:
71
- - mike@suitesync.io
71
+ - mike@mikebian.co
72
72
  executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
+ - ".github/.github/dependabot.yml"
77
+ - ".github/workflows/ci.yml"
76
78
  - ".gitignore"
77
79
  - ".rspec"
80
+ - ".ruby-version"
78
81
  - Gemfile
79
82
  - LICENSE.txt
80
83
  - README.md
@@ -83,11 +86,11 @@ files:
83
86
  - bin/setup
84
87
  - lib/resque-heroku-signals.rb
85
88
  - resque-heroku-signals.gemspec
86
- homepage: https://github.com/iloveitaly/resque-heroku-signals
89
+ homepage: https://github.com/resque/resque-heroku-signals
87
90
  licenses:
88
91
  - MIT
89
92
  metadata: {}
90
- post_install_message:
93
+ post_install_message:
91
94
  rdoc_options: []
92
95
  require_paths:
93
96
  - lib
@@ -102,9 +105,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
105
  - !ruby/object:Gem::Version
103
106
  version: '0'
104
107
  requirements: []
105
- rubyforge_project:
106
- rubygems_version: 2.7.7
107
- signing_key:
108
+ rubygems_version: 3.1.6
109
+ signing_key:
108
110
  specification_version: 4
109
111
  summary: Patch resque to be compatible with the Heroku platform
110
112
  test_files: []