makandra_sidekiq 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe216cf3996745151d6aefc183425d692e334999110947a7c1cc2114cbe4b57e
4
- data.tar.gz: 575bb317450b8c419706c06a62c86d541e3ef2a5657de35e354f165b48d89c6b
3
+ metadata.gz: 47a5113e14c3e6b57bae52343b8f25107c7f3eb19c6549f57ef4f3472611aba8
4
+ data.tar.gz: 56b1564ce0bf25208cc3f29b02cb03853068a24a919fabbe41338f8f57dde2d4
5
5
  SHA512:
6
- metadata.gz: 44225769a2c6ad71c57c820ec519da9edd7cd912e95d5679727384aa73d287142244657ae1f1bd3fe160963f8e2a5ad001ef73bb2a436bb8da62c6e21c6275ac
7
- data.tar.gz: 307dbf80b79f73374c464c32184fbe80fbde6d4d3a34b3ecce420c2281f031228472c9ca4cfa6e2340538f0b6a2b3158c92bbdd176f6a190d4465cac6381ce13
6
+ metadata.gz: e1b74c9f9d8e299357bdd377bc784f6e0c33a5b1b2871422a08d4e41d4ad4202fdec86884c69b6f3b33849b75dbe0397d305ce6988b13b157f0c0b90bb950384
7
+ data.tar.gz: c0d6707a0116227fda7ed471c0e5eb5de2349e333aacc6b981881b8011036e210ccc90d3e1b515156038b3927c8502fb284a58e5d053dadbe07f692e2e6060f5
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.5
1
+ 2.6.6
data/CHANGELOG.md CHANGED
@@ -6,25 +6,41 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
6
6
 
7
7
  ## Unreleased
8
8
 
9
+
10
+ ## 0.2.1 2020-05-18
11
+
12
+ ### Compatible changes
13
+ - Fixed deprecation warnings on modern Bundlers. We are now using `Bundler.with_original_env`.
14
+
15
+
16
+ ## 0.2.0 2019-11-08
17
+
9
18
  ### Compatible changes
10
- - CHANGELOG to satisfy [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) format
19
+ - Added CHANGELOG to satisfy [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
20
+ - Fix: now considering the configured Sidekiq timeout when running
21
+ `sidekiqctl stop` through `sidekiq:stop`. Previously, long-running jobs would
22
+ get lost!
23
+
11
24
 
12
25
  ## 0.1.3 2017-02-13
13
26
 
14
27
  ### Changed
15
28
  - Gem no longer depends on `capistrano`, since using its Capistrano recipes is optional.
16
29
 
30
+
17
31
  ## 0.1.2 2017-01-12
18
32
 
19
33
  ### Added
20
34
  - `sidekiq:start` checks that sidekiq really comes up and will retry a few times.
21
35
 
36
+
22
37
  ## 0.1.1 2016-09-29
23
38
 
24
39
  ### Fixed
25
40
  - Do not fail on first deploy.
26
41
 
27
- ## 0.1.0] 2016-09-29
42
+
43
+ ## 0.1.0 2016-09-29
28
44
 
29
45
  ### Added
30
46
  - Initial release.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- makandra_sidekiq (0.1.5)
4
+ makandra_sidekiq (0.2.1)
5
5
  sidekiq (< 6)
6
6
 
7
7
  GEM
@@ -9,11 +9,11 @@ GEM
9
9
  specs:
10
10
  connection_pool (2.2.2)
11
11
  diff-lcs (1.3)
12
- rack (2.0.7)
13
- rack-protection (2.0.7)
12
+ rack (2.0.9)
13
+ rack-protection (2.0.8.1)
14
14
  rack
15
15
  rake (10.5.0)
16
- redis (4.1.3)
16
+ redis (4.1.4)
17
17
  rspec (3.5.0)
18
18
  rspec-core (~> 3.5.0)
19
19
  rspec-expectations (~> 3.5.0)
@@ -27,9 +27,9 @@ GEM
27
27
  diff-lcs (>= 1.2.0, < 2.0)
28
28
  rspec-support (~> 3.5.0)
29
29
  rspec-support (3.5.0)
30
- sidekiq (5.2.7)
30
+ sidekiq (5.2.8)
31
31
  connection_pool (~> 2.2, >= 2.2.2)
32
- rack (>= 1.5.0)
32
+ rack (< 2.1.0)
33
33
  rack-protection (>= 1.5.0)
34
34
  redis (>= 3.3.5, < 5)
35
35
 
@@ -166,12 +166,21 @@ module MakandraSidekiq
166
166
 
167
167
  def bundle_exec(*command)
168
168
  string_command = command.map(&:to_s)
169
- stdout_str, stderr_str, status = Bundler.with_clean_env { Open3.capture3('bundle', 'exec', *string_command, chdir: @root.to_s) }
169
+ root = @root.to_s
170
+ stdout_str, stderr_str, status = with_original_env { capture3('bundle', 'exec', *string_command, chdir: root) }
170
171
  puts stdout_str
171
172
  unless status.success?
172
173
  fail "#{command} failed with message: #{stderr_str}"
173
174
  end
174
175
  end
175
176
 
177
+ def capture3(*command)
178
+ Open3.capture3(*command)
179
+ end
180
+
181
+ def with_original_env(&block)
182
+ Bundler.with_original_env(&block)
183
+ end
184
+
176
185
  end
177
186
  end
@@ -1,3 +1,3 @@
1
1
  module MakandraSidekiq
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makandra_sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Kraze
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-08 00:00:00.000000000 Z
11
+ date: 2020-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq