crono_trigger 0.7.0 → 0.7.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: 9d0ca54718a635b6c32268bcb6ed480683d038923eb5f62cda38e91e3d43356a
4
- data.tar.gz: aa5d62ef5ecf4003391485e7392bc6493035a50ce73ca852fc4fa26619b17b2d
3
+ metadata.gz: 9713612dde3158cacbad3f58c85b0a0935d4e67b687d372c2c5537fcd4407b0c
4
+ data.tar.gz: b2f053b4fe4f268cccb40c7dddbca0c4c2deeba8b119c656d50548a541a5e812
5
5
  SHA512:
6
- metadata.gz: 54ed50aac9d11ae950e1cad9651a8a4c27a5a07f169eb2c92c8f2c761420f9e6ed2a5b83965df91e7e14e67128ee6a0698f5a6a9d5d6566946b8544f8795dcb0
7
- data.tar.gz: 10422746cbf88079591790766fd4e58f9152787e7a9ead6a0f94dbbd286cfc4caab8f69c6547716143db6584c7d6ab5e571435013d17f2ed1e833f77502d745d
6
+ metadata.gz: 66a6ff6c554f59ea9448c72d735f872c6ead66da77bbaf7377baadc91c4c233c38ca0ec906dcbb4589678ce676c121fe6e31b6517f836417c1e82d61e67a012f
7
+ data.tar.gz: 2583529dca847b25bc79c3778c1130e9fd4078ebd8734b8019e04618c341dd1febb0f457a17554a4d41bde0dcd4e3ac9ccdd95fcad90f34b3bfc063ebab76d39
@@ -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
@@ -18,3 +18,6 @@ spec/dummy/db/*.sqlite3
18
18
  spec/dummy/db/*.sqlite3-journal
19
19
  spec/dummy/log/*.log
20
20
  spec/dummy/tmp/
21
+ spec/testdb.sqlite3*
22
+
23
+ .gem_rbs_collection
@@ -1,5 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "activerecord", "~> 5.0.0"
3
+ gem "activerecord", "~> 6.1.0"
4
4
 
5
5
  gemspec :path => "../"
@@ -1,5 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "activerecord", "~> 5.1.0"
3
+ gem "activerecord", "~> 7.0.0"
4
4
 
5
5
  gemspec :path => "../"
@@ -1,5 +1,5 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "activerecord", "~> 5.2.0"
3
+ gem "activerecord", "~> 7.1.0"
4
4
 
5
5
  gemspec :path => "../"
@@ -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
- serialize :polling_model_names, JSON
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
@@ -1,3 +1,3 @@
1
1
  module CronoTrigger
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  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.0
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: 2023-06-07 00:00:00.000000000 Z
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-50.gemfile
261
- - gemfiles/activerecord-51.gemfile
262
- - gemfiles/activerecord-52.gemfile
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.4.10
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