crono_trigger 0.6.4 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rspec.yml +3 -0
  3. data/.gitignore +3 -0
  4. data/README.md +43 -4
  5. data/crono_trigger.gemspec +2 -2
  6. data/gemfiles/{activerecord-50.gemfile → activerecord-61.gemfile} +1 -1
  7. data/gemfiles/{activerecord-51.gemfile → activerecord-70.gemfile} +1 -1
  8. data/gemfiles/{activerecord-52.gemfile → activerecord-71.gemfile} +1 -1
  9. data/lib/crono_trigger/cli.rb +5 -1
  10. data/lib/crono_trigger/events.rb +6 -0
  11. data/lib/crono_trigger/models/worker.rb +6 -1
  12. data/lib/crono_trigger/polling_thread.rb +6 -4
  13. data/lib/crono_trigger/schedulable.rb +26 -3
  14. data/lib/crono_trigger/version.rb +1 -1
  15. data/lib/crono_trigger/web.rb +1 -1
  16. data/lib/crono_trigger/worker.rb +46 -2
  17. data/lib/crono_trigger.rb +2 -0
  18. data/lib/generators/crono_trigger/model/templates/model.rb +2 -0
  19. data/web/app/src/App.css +6 -1
  20. data/web/app/src/App.tsx +38 -36
  21. data/web/app/src/Models.tsx +1 -2
  22. data/web/app/src/SchedulableRecords.tsx +11 -8
  23. data/web/app/src/Signals.tsx +2 -3
  24. data/web/app/src/Workers.tsx +1 -1
  25. data/web/public/asset-manifest.json +4 -4
  26. data/web/public/service-worker.js +1 -1
  27. data/web/public/static/css/main.4eb0b8e2.css +2 -0
  28. data/web/public/static/css/main.4eb0b8e2.css.map +1 -0
  29. data/web/public/static/js/main.a59b5909.js +2 -0
  30. data/web/public/static/js/main.a59b5909.js.map +1 -0
  31. data/web/views/index.erb +1 -1
  32. metadata +15 -15
  33. data/.travis.yml +0 -18
  34. data/web/public/static/css/main.0f826673.css +0 -2
  35. data/web/public/static/css/main.0f826673.css.map +0 -1
  36. data/web/public/static/js/main.a4709ab6.js +0 -2
  37. data/web/public/static/js/main.a4709ab6.js.map +0 -1
data/web/views/index.erb CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="<%= URI.parse(url('/')).path.chop %>/manifest.json"><link rel="shortcut icon" href="<%= URI.parse(url('/')).path.chop %>/favicon.ico"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"><link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"><script>window.mountPath="<%= URI.parse(url('/')).path.chop %>"</script><title>CronoTrigger</title><link href="<%= URI.parse(url('/')).path.chop %>/static/css/main.0f826673.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="<%= URI.parse(url('/')).path.chop %>/static/js/main.a4709ab6.js"></script></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="<%= URI.parse(url('/')).path.chop %>/manifest.json"><link rel="shortcut icon" href="<%= URI.parse(url('/')).path.chop %>/favicon.ico"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"><link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"><script>window.mountPath="<%= URI.parse(url('/')).path.chop %>"</script><title>CronoTrigger</title><link href="<%= URI.parse(url('/')).path.chop %>/static/css/main.4eb0b8e2.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="<%= URI.parse(url('/')).path.chop %>/static/js/main.a59b5909.js"></script></body></html>
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.6.4
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: 2022-08-16 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
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.6.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.6.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: serverengine
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 1.1.10
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 1.1.10
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: tzinfo
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -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,11 +256,12 @@ 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
264
+ - lib/crono_trigger/events.rb
265
265
  - lib/crono_trigger/exception_handler.rb
266
266
  - lib/crono_trigger/execution_tracker.rb
267
267
  - lib/crono_trigger/global_exception_handler.rb
@@ -314,10 +314,10 @@ files:
314
314
  - web/public/favicon.ico
315
315
  - web/public/manifest.json
316
316
  - web/public/service-worker.js
317
- - web/public/static/css/main.0f826673.css
318
- - web/public/static/css/main.0f826673.css.map
319
- - web/public/static/js/main.a4709ab6.js
320
- - web/public/static/js/main.a4709ab6.js.map
317
+ - web/public/static/css/main.4eb0b8e2.css
318
+ - web/public/static/css/main.4eb0b8e2.css.map
319
+ - web/public/static/js/main.a59b5909.js
320
+ - web/public/static/js/main.a59b5909.js.map
321
321
  - web/views/index.erb
322
322
  - web/views/signals.erb
323
323
  - web/views/workers.erb
@@ -340,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
340
340
  - !ruby/object:Gem::Version
341
341
  version: '0'
342
342
  requirements: []
343
- rubygems_version: 3.3.3
343
+ rubygems_version: 3.5.3
344
344
  signing_key:
345
345
  specification_version: 4
346
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
@@ -1,2 +0,0 @@
1
- .content{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}body{margin:0;padding:0;font-family:sans-serif}
2
- /*# sourceMappingURL=main.0f826673.css.map*/
@@ -1 +0,0 @@
1
- {"version":3,"sources":["App.css","index.css"],"names":[],"mappings":"AAAA,SACE,oBACA,aACA,qBACI,uBACJ,sBACI,kBAAoB,CCN1B,KACE,SACA,UACA,sBAAwB","file":"static/css/main.0f826673.css","sourcesContent":[".content {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/App.css","body {\n margin: 0;\n padding: 0;\n font-family: sans-serif;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.css"],"sourceRoot":""}