Commit Graph

312 Commits

Author SHA1 Message Date
Dzmitry Plashchynski ddbfa4c42e Fix specs 2022-07-24 22:38:08 +03:00
Dzmitry Plashchynski e03d9b4ba6 Remove crono_test.sqlite from git cache 2022-07-24 22:37:50 +03:00
Dzmitry Plashchynski cb5064852a Merge pull request #107 from mediafinger/add-github-actions-for-specs
Add GitHub actions for specs
2022-07-15 14:37:21 +03:00
Andreas Finger a421a6207b ci: Add GitHub Action to run specs 2022-07-11 10:43:02 +02:00
Andreas Finger 4abc999583 doc: List compatible Ruby versions in the README 2022-07-11 10:41:20 +02:00
Dzmitry Plashchynski 0e1dec2956 Merge pull request #106 from plashchynski/dependabot/bundler/rails-html-sanitizer-1.4.3
Bump rails-html-sanitizer from 1.4.2 to 1.4.3
2022-07-08 13:05:37 +03:00
dependabot[bot] 3a17938571 Bump rails-html-sanitizer from 1.4.2 to 1.4.3
Bumps [rails-html-sanitizer](https://github.com/rails/rails-html-sanitizer) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/rails/rails-html-sanitizer/releases)
- [Changelog](https://github.com/rails/rails-html-sanitizer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rails/rails-html-sanitizer/compare/v1.4.2...v1.4.3)

---
updated-dependencies:
- dependency-name: rails-html-sanitizer
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-06 12:23:15 +00:00
Dzmitry Plashchynski 5391930954 Merge branch 'main' of https://github.com/plashchynski/crono 2022-06-16 11:08:28 +02:00
Dzmitry Plashchynski 5c16c8c6dd Do not pass empty arguments to the worker. Closes #95 2022-06-16 11:08:22 +02:00
Dzmitry Plashchynski b1cc71e9a4 Update README.md 2022-05-30 00:25:46 +03:00
Dzmitry Plashchynski 4d6e7b58b4 Merge branch 'main' of https://github.com/plashchynski/crono v2.0.0 2022-05-29 22:33:33 +03:00
Dzmitry Plashchynski a3587816e1 Create SECURITY.md 2022-05-29 22:31:51 +03:00
Dzmitry Plashchynski 805fbc48e6 Create codeql-analysis.yml 2022-05-29 22:28:58 +03:00
Dzmitry Plashchynski 80d8713cb2 Bump 2.0.0 2022-05-29 22:25:03 +03:00
Dzmitry Plashchynski f5b5169b1f Remove requirements as it pretty common 2022-05-29 22:22:02 +03:00
Dzmitry Plashchynski 0a1ec366e0 do not pass empty arguments to Job#perform if arguments are not specified 2022-05-29 22:21:23 +03:00
Dzmitry Plashchynski fc18c8c787 Update README.md 2022-05-29 21:30:53 +03:00
Dzmitry Plashchynski 49b1d2b85d Remove unused badgets 2022-05-29 21:28:29 +03:00
Dzmitry Plashchynski efc4254146 Merge branch 'master' of https://github.com/plashchynski/crono 2022-05-29 21:18:16 +03:00
Dzmitry Plashchynski abbae2bb33 remove deprecated 2022-05-29 21:18:07 +03:00
Dzmitry Plashchynski e4066cfe10 Merge pull request #92 from magynhard/patch-1
Rake example does only fire once
2022-05-29 20:35:32 +03:00
Dzmitry Plashchynski 9f1bd7bf72 Merge branch 'master' into patch-1 2022-05-29 20:35:27 +03:00
Dzmitry Plashchynski 5831e040fc Update Gemfile.lock 2022-05-29 20:33:12 +03:00
Dzmitry Plashchynski 258b258003 Merge pull request #91 from cseelus/convert-to-engine-rspec
Convert to Rails engine
2022-05-29 20:32:11 +03:00
Dzmitry Plashchynski 333f18d89b Merge branch 'master' into convert-to-engine-rspec 2022-05-29 20:32:06 +03:00
Dzmitry Plashchynski be1ecf2995 Merge pull request #90 from cseelus/ruby-3-compatibility
Use Ruby 3 conversion kwargs
2022-05-29 20:28:39 +03:00
Dzmitry Plashchynski 3d7267d97e Merge pull request #74 from muZk/patch-1
fix: rails 4.0.x
2022-05-29 20:28:10 +03:00
Dzmitry Plashchynski 9e8a6f0e05 Update dependencies 2022-05-29 20:24:45 +03:00
Dzmitry Plashchynski 2232671d86 Merge branch 'master' of https://github.com/plashchynski/crono 2022-05-29 20:22:55 +03:00
Dzmitry Plashchynski 8ea181397e Bundle with bundler 2 2022-05-29 20:22:19 +03:00
Dzmitry Plashchynski e500738fd4 Merge pull request #97 from plashchynski/dependabot/bundler/activesupport-7.0.3
Bump activesupport from 5.0.0.1 to 7.0.3
2022-05-29 19:46:14 +03:00
Dzmitry Plashchynski 4279cbe27a Merge pull request #98 from plashchynski/dependabot/bundler/activerecord-7.0.3
Bump activerecord from 5.0.0.1 to 7.0.3
2022-05-29 19:46:02 +03:00
Dzmitry Plashchynski 630137d575 Merge pull request #99 from plashchynski/dependabot/bundler/rack-2.2.3.1
Bump rack from 2.2.3 to 2.2.3.1
2022-05-29 19:45:45 +03:00
Dzmitry Plashchynski ae78de420f Update crono.gemspec 2022-05-29 19:44:44 +03:00
Dzmitry Plashchynski e6f5e4299b Update README.md 2022-05-29 19:07:44 +03:00
dependabot[bot] a6f8354e89 Bump rack from 2.2.3 to 2.2.3.1
Bumps [rack](https://github.com/rack/rack) from 2.2.3 to 2.2.3.1.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/2.2.3...2.2.3.1)

---
updated-dependencies:
- dependency-name: rack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-27 17:59:38 +00:00
dependabot[bot] 610046d0fe Bump activerecord from 5.0.0.1 to 7.0.3
Bumps [activerecord](https://github.com/rails/rails) from 5.0.0.1 to 7.0.3.
- [Release notes](https://github.com/rails/rails/releases)
- [Changelog](https://github.com/rails/rails/blob/v7.0.3/activerecord/CHANGELOG.md)
- [Commits](https://github.com/rails/rails/compare/v5.0.0.1...v7.0.3)

---
updated-dependencies:
- dependency-name: activerecord
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 09:42:14 +00:00
dependabot[bot] 0391dac2e9 Bump activesupport from 5.0.0.1 to 7.0.3
Bumps [activesupport](https://github.com/rails/rails) from 5.0.0.1 to 7.0.3.
- [Release notes](https://github.com/rails/rails/releases)
- [Changelog](https://github.com/rails/rails/blob/v7.0.3/activesupport/CHANGELOG.md)
- [Commits](https://github.com/rails/rails/compare/v5.0.0.1...v7.0.3)

---
updated-dependencies:
- dependency-name: activesupport
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 09:42:13 +00:00
Dzmitry Plashchynski a74da12862 Merge pull request #96 from plashchynski/dependabot/bundler/sinatra-2.2.0
Bump sinatra from 1.4.7 to 2.2.0
2022-05-20 12:41:16 +03:00
Dzmitry Plashchynski 7573109519 Update README.md 2022-05-20 12:40:54 +03:00
dependabot[bot] a8e80b6160 Bump sinatra from 1.4.7 to 2.2.0
Bumps [sinatra](https://github.com/sinatra/sinatra) from 1.4.7 to 2.2.0.
- [Release notes](https://github.com/sinatra/sinatra/releases)
- [Changelog](https://github.com/sinatra/sinatra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sinatra/sinatra/compare/v1.4.7...v2.2.0)

---
updated-dependencies:
- dependency-name: sinatra
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-03 21:13:19 +00:00
Matthäus J. N. Beyrle 0af1645456 update rake example 2021-02-19 14:33:46 +01:00
Chris Seelus ee79596509 Cleanup and get rspec to run again 2021-02-11 17:37:10 +01:00
Chris Seelus 6fee31fc81 Fix tests 2021-02-11 01:59:28 +01:00
Chris Seelus 551572fe56 Move CronoJob to models dir 2021-02-11 01:59:10 +01:00
Chris Seelus d53520bbf0 Use Rails plugin generator and adapt 2021-02-10 22:10:43 +01:00
Chris Seelus 87b5726919 Use Ruby 3 conversion kwargs 2021-02-10 16:57:48 +01:00
Dzmitry Plashchynski 9b9193e1c8 Merge pull request #80 from andrisbriedis/master
Fixed race condition when starting jobs
2019-07-10 14:15:04 +03:00
Andris Briedis 6ca28ae01d Fixed race condition when starting jobs
Calling Time.zone.now in the if statement and while calculating sleep delay sometimes resulted in an exception with message "time interval must be positive".
This happened if job was about to start and we needed to sleep for a really short period of time + server was under high load.
First the application was checking if difference between current time and scheduled run time was positive.
If the expression returned true, sleep was called, but required delay was calculated once again and could result in a negative value being passed to the sleep function.
2019-07-10 11:43:04 +03:00
Nicolás Gómez 11350e83d9 fix: rails 4.0.x
Patch time_atts when `compact` is not defined in Hash class.
2018-04-11 10:50:45 -03:00