crono_trigger 0.7.0 → 0.7.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 +4 -4
- data/.github/workflows/rspec.yml +3 -0
- data/.gitignore +3 -0
- data/gemfiles/{activerecord-50.gemfile → activerecord-61.gemfile} +1 -1
- data/gemfiles/{activerecord-51.gemfile → activerecord-70.gemfile} +1 -1
- data/gemfiles/{activerecord-52.gemfile → activerecord-71.gemfile} +1 -1
- data/lib/crono_trigger/models/worker.rb +6 -1
- data/lib/crono_trigger/version.rb +1 -1
- metadata +6 -7
- data/.travis.yml +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9713612dde3158cacbad3f58c85b0a0935d4e67b687d372c2c5537fcd4407b0c
|
4
|
+
data.tar.gz: b2f053b4fe4f268cccb40c7dddbca0c4c2deeba8b119c656d50548a541a5e812
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66a6ff6c554f59ea9448c72d735f872c6ead66da77bbaf7377baadc91c4c233c38ca0ec906dcbb4589678ce676c121fe6e31b6517f836417c1e82d61e67a012f
|
7
|
+
data.tar.gz: 2583529dca847b25bc79c3778c1130e9fd4078ebd8734b8019e04618c341dd1febb0f457a17554a4d41bde0dcd4e3ac9ccdd95fcad90f34b3bfc063ebab76d39
|
data/.github/workflows/rspec.yml
CHANGED
@@ -12,6 +12,9 @@ jobs:
|
|
12
12
|
strategy:
|
13
13
|
matrix:
|
14
14
|
ruby-version: ['2.7', '3.0', '3.1']
|
15
|
+
gemfile: ["Gemfile", "gemfiles/activerecord-61.gemfile", "gemfiles/activerecord-70.gemfile", "gemfiles/activerecord-71.gemfile"]
|
16
|
+
env:
|
17
|
+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
15
18
|
|
16
19
|
steps:
|
17
20
|
- uses: actions/checkout@v2
|
data/.gitignore
CHANGED
@@ -8,7 +8,12 @@ module CronoTrigger
|
|
8
8
|
ALIVE_THRESHOLD = CronoTrigger::Worker::HEARTBEAT_INTERVAL * 5
|
9
9
|
|
10
10
|
enum executor_status: {running: "running", quiet: "quiet", shuttingdown: "shuttingdown", shutdown: "shutdown"}
|
11
|
-
|
11
|
+
|
12
|
+
if ActiveRecord.version >= Gem::Version.new("7.1.0")
|
13
|
+
serialize :polling_model_names, coder: JSON
|
14
|
+
else
|
15
|
+
serialize :polling_model_names, JSON
|
16
|
+
end
|
12
17
|
|
13
18
|
scope :alive_workers, proc { where(arel_table[:last_heartbeated_at].gteq(Time.current - ALIVE_THRESHOLD)) }
|
14
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crono_trigger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joker1007
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chrono
|
@@ -247,7 +247,6 @@ files:
|
|
247
247
|
- ".github/workflows/rspec.yml"
|
248
248
|
- ".gitignore"
|
249
249
|
- ".rspec"
|
250
|
-
- ".travis.yml"
|
251
250
|
- Gemfile
|
252
251
|
- LICENSE.txt
|
253
252
|
- README.md
|
@@ -257,9 +256,9 @@ files:
|
|
257
256
|
- crono_trigger.gemspec
|
258
257
|
- exe/crono_trigger
|
259
258
|
- exe/crono_trigger-web
|
260
|
-
- gemfiles/activerecord-
|
261
|
-
- gemfiles/activerecord-
|
262
|
-
- gemfiles/activerecord-
|
259
|
+
- gemfiles/activerecord-61.gemfile
|
260
|
+
- gemfiles/activerecord-70.gemfile
|
261
|
+
- gemfiles/activerecord-71.gemfile
|
263
262
|
- lib/crono_trigger.rb
|
264
263
|
- lib/crono_trigger/cli.rb
|
265
264
|
- lib/crono_trigger/events.rb
|
@@ -341,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
341
340
|
- !ruby/object:Gem::Version
|
342
341
|
version: '0'
|
343
342
|
requirements: []
|
344
|
-
rubygems_version: 3.
|
343
|
+
rubygems_version: 3.5.3
|
345
344
|
signing_key:
|
346
345
|
specification_version: 4
|
347
346
|
summary: In Service Asynchronous Job Scheduler for Rails
|
data/.travis.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
cache: bundler
|
4
|
-
rvm:
|
5
|
-
- 2.7.0
|
6
|
-
- 2.6.3
|
7
|
-
gemfile:
|
8
|
-
- gemfiles/activerecord-52.gemfile
|
9
|
-
before_install:
|
10
|
-
- gem i bundler
|
11
|
-
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
|
12
|
-
services:
|
13
|
-
- mysql
|
14
|
-
env:
|
15
|
-
- DB=sqlite
|
16
|
-
- DB=mysql MYSQL_RESTART_COMMAND="sudo service mysql restart"
|
17
|
-
- NO_TIMESTAMP=false
|
18
|
-
- NO_TIMESTAMP=true
|