sidekiq-redeploy 0.1.1 → 0.1.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
  SHA256:
3
- metadata.gz: 5bb6548bfe1a57c7666d9a103fb31afbafbc2c8519934dc7df08d79aedea61de
4
- data.tar.gz: b1a7e79e12c22a06b4cebd58752a092a97f82f0caa8e80b628bf47e690da60a4
3
+ metadata.gz: d105384fd7ef69a92ab40d8b9d1f68dda9caf93e81408b9ee810b103e49ba146
4
+ data.tar.gz: cf879748d242a491aa7d9183e592dd05b6504766fc9ab0c6a6c7f3d4caf94770
5
5
  SHA512:
6
- metadata.gz: 549e889bec3ef95570b1606e1495ce3a303c975b7d4050834bde59ff5b7b498080b3c1f5c6581ed39146913870cf315983493c73f6ee61954fff1c9d29780e2a
7
- data.tar.gz: a7edf5718209888f7cf0d36a54487546e105a7d79430dd709d604e7d96f5c57e7bad95ca7fa87fc4e79e850740dd3a06e583df4e42146d8246a22e9236f076c8
6
+ metadata.gz: 6f4abfe5fea9491e1c7c89d7b07b01a6d8cf0871cf381b86ce1cf6b75ae48331b21da9c3442564e1696e3d5b2664744ed5d0e2f1128ed3b42776a6e1cd6ffe88
7
+ data.tar.gz: 02c405793d6197e95401e4324968bd15af4410634e9be6df91a3fc30a9d278837e3e1795fd6f74af21c7e85b000eee0c98d7aa746c54853b515eff1cd4948a41
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
- ## [Unreleased]
1
+ ## v0.1.3
2
+
3
+ **Fixes and enhancements:**
4
+
5
+ - Allow watch file to not exist
6
+ - Fix loading of sidekiq-cli
2
7
 
3
8
  ## [0.1.0] - 2023-04-22
4
9
 
data/Gemfile CHANGED
@@ -4,3 +4,12 @@ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in sidekiq-redeploy.gemspec
6
6
  gemspec
7
+
8
+ gem 'rake', '~> 13.0.6'
9
+ gem 'rspec', '~> 3.12.0'
10
+ gem 'rubocop', '~> 1.43'
11
+ gem 'rubocop-performance', '~> 1.15'
12
+ gem 'rubocop-rake', '~> 0.6.0'
13
+ gem 'rubocop-rspec', '~> 2.17'
14
+ gem 'rubocop-thread_safety', '~> 0.4.4'
15
+ gem 'timecop', '~> 0.9.6'
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'sidekiq'
4
- require 'sidekiq/cli'
5
4
  require 'logger'
6
5
 
7
6
  module Sidekiq
@@ -17,6 +16,8 @@ module Sidekiq
17
16
  SIGNALS = [INT, TERM, USR2, TTIN].freeze
18
17
 
19
18
  def initialize(deployer:, sidekiq_app: nil, logger: Logger.new($stdout), config: {})
19
+ require 'sidekiq/cli'
20
+
20
21
  @reload_sidekiq = false
21
22
  @exit_loader = false
22
23
  @loader_pid = Process.pid
@@ -72,7 +73,7 @@ module Sidekiq
72
73
  end
73
74
 
74
75
  def needs_redeploy?
75
- return unless (Time.now - @watch_time) > @watch_delay
76
+ return false unless (Time.now - @watch_time) > @watch_delay
76
77
 
77
78
  @watch_time = Time.now
78
79
  log 'Checking watch file for redeploy'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sidekiq
4
4
  module Redeploy
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
@@ -32,16 +32,8 @@ Gem::Specification.new do |spec|
32
32
  spec.bindir = 'bin'
33
33
  spec.require_paths = ['lib']
34
34
 
35
- spec.add_dependency 'puma-redeploy', '~> 0.2', '>= 0.2.1'
35
+ spec.add_dependency 'puma-redeploy', '~> 0.3.1'
36
36
  spec.add_dependency 'sidekiq', '~> 6.0'
37
37
 
38
- spec.add_development_dependency 'rake', '~> 13.0.6'
39
- spec.add_development_dependency 'rspec', '~> 3.12.0'
40
- spec.add_development_dependency 'rubocop', '~> 1.43'
41
- spec.add_development_dependency 'rubocop-performance', '~> 1.15'
42
- spec.add_development_dependency 'rubocop-rake', '~> 0.6.0'
43
- spec.add_development_dependency 'rubocop-rspec', '~> 2.17'
44
- spec.add_development_dependency 'rubocop-thread_safety', '~> 0.4.4'
45
- spec.add_development_dependency 'timecop', '~> 0.9.6'
46
38
  spec.metadata['rubygems_mfa_required'] = 'true'
47
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-redeploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - tbeauvais
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-30 00:00:00.000000000 Z
11
+ date: 2023-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puma-redeploy
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.2.1
19
+ version: 0.3.1
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0.2'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.2.1
26
+ version: 0.3.1
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: sidekiq
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,118 +38,6 @@ dependencies:
44
38
  - - "~>"
45
39
  - !ruby/object:Gem::Version
46
40
  version: '6.0'
47
- - !ruby/object:Gem::Dependency
48
- name: rake
49
- requirement: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: 13.0.6
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: 13.0.6
61
- - !ruby/object:Gem::Dependency
62
- name: rspec
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: 3.12.0
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: 3.12.0
75
- - !ruby/object:Gem::Dependency
76
- name: rubocop
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '1.43'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '1.43'
89
- - !ruby/object:Gem::Dependency
90
- name: rubocop-performance
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '1.15'
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '1.15'
103
- - !ruby/object:Gem::Dependency
104
- name: rubocop-rake
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: 0.6.0
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - "~>"
115
- - !ruby/object:Gem::Version
116
- version: 0.6.0
117
- - !ruby/object:Gem::Dependency
118
- name: rubocop-rspec
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: '2.17'
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - "~>"
129
- - !ruby/object:Gem::Version
130
- version: '2.17'
131
- - !ruby/object:Gem::Dependency
132
- name: rubocop-thread_safety
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: 0.4.4
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: 0.4.4
145
- - !ruby/object:Gem::Dependency
146
- name: timecop
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: 0.9.6
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: 0.9.6
159
41
  description: Sidekiq launcher to redeploy and reload app from a remote artifact. This
160
42
  will detect app changes, once detected a new artifact will be pulled and the Sidekiq
161
43
  app will be reloaded.