web47core 3.2.7 → 3.2.9

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: 8a2f6513fc3ea7307fc8b715807aaeef3ac0c63151bec753ecde3e5233742da5
4
- data.tar.gz: 2d27d9d04e23dfd8e71ae2f6fb6080567cbab65f1af0f98ce09c5a34f0e90dfd
3
+ metadata.gz: d49fb16ecfe61d18dbc79f37425422d9e7655db689aae499816be0d145c3922a
4
+ data.tar.gz: 0125066bb00ecfdb0b423d09493fbd34ed457b8805a7e400f82b0bcf5d78458f
5
5
  SHA512:
6
- metadata.gz: 42801f50f150d8d47db4833cd7c5aff6a7f4743cd6a60797000c331f1815cc57ce6f844933dc7424343962f3363c3b0d9af0a2ac257dd0ff2c6bd1c9ca0a232c
7
- data.tar.gz: 8fca8b55c877d788266c5628b59d820b0e147393fd138db16e8bca762dd2a396801fd0701b7a32e0cc56b4fa5c6ae97e45597701f1714787f1892987608378bd
6
+ metadata.gz: f64b6ef1ff5cb4c9bdd72a87d2f4fc3a6fe04a29959ef16704bb3cd3d9b5099dbdc3eb2b43122fec0c47d57d3457aacba57ae5dc8bda37377d3cdb7b07d1127a
7
+ data.tar.gz: ecc76a77d5fda33705260ef6de28b34bca7bdc456587b9124b87c3463e53318e1529a9aa298a513140f9de4d14a2a880341f975600217bec93ec7769263d5a08
@@ -41,8 +41,8 @@ class CommandJob
41
41
 
42
42
  # @abstract cancel the current job
43
43
  def cancel!(actor)
44
- update! cancelled_by: actor, cancelled_at: Time.now.utc, state: STATE_CANCELLED
45
- child_jobs.map { |j| j.cancel!(actor) }
44
+ update!(cancelled_by: actor, cancelled_at: Time.now.utc, state: STATE_CANCELLED) unless completed?
45
+ child_jobs.each { |j| j.cancel!(actor) }
46
46
  end
47
47
 
48
48
  def child_jobs
@@ -124,7 +124,7 @@ class RedisConfiguration
124
124
  config = nil
125
125
  file_path = config_file_path
126
126
  if File.exist? file_path
127
- yaml_data = YAML.load_file(file_path)
127
+ yaml_data = YAML.load(ERB.new(File.read(file_path)).result)
128
128
  config = yaml_data[Rails.env] if yaml_data
129
129
  end
130
130
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '3.2.7'
4
+ VERSION = '3.2.9'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.7
4
+ version: 3.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-11 00:00:00.000000000 Z
11
+ date: 2024-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -164,20 +164,6 @@ dependencies:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '9.0'
167
- - !ruby/object:Gem::Dependency
168
- name: railties
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ">="
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- type: :runtime
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - ">="
179
- - !ruby/object:Gem::Version
180
- version: '0'
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: redis
183
169
  requirement: !ruby/object:Gem::Requirement
@@ -430,6 +416,20 @@ dependencies:
430
416
  - - "~>"
431
417
  - !ruby/object:Gem::Version
432
418
  version: 7.2.2
419
+ - !ruby/object:Gem::Dependency
420
+ name: railties
421
+ requirement: !ruby/object:Gem::Requirement
422
+ requirements:
423
+ - - ">="
424
+ - !ruby/object:Gem::Version
425
+ version: '0'
426
+ type: :development
427
+ prerelease: false
428
+ version_requirements: !ruby/object:Gem::Requirement
429
+ requirements:
430
+ - - ">="
431
+ - !ruby/object:Gem::Version
432
+ version: '0'
433
433
  - !ruby/object:Gem::Dependency
434
434
  name: sass-rails
435
435
  requirement: !ruby/object:Gem::Requirement