clockwork 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/tests.yml +36 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +5 -0
- data/clockwork.gemspec +1 -1
- data/lib/clockwork/manager.rb +1 -0
- data/test/clockwork_test.rb +2 -2
- metadata +4 -7
- data/.travis.yml +0 -30
- data/gemfiles/activesupport4.gemfile +0 -5
- data/gemfiles/activesupport5.gemfile +0 -5
- data/gemfiles/activesupport6.gemfile +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92b0e84804fd39ef988e03c0f76cff4bf6e8af060cc395b150f24622c5a8a43d
|
4
|
+
data.tar.gz: 0d217fe414875b7124f3b0362e6e4fd8c3eff240d09d67bd88a0ae4dc695e934
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c1b94426a6f419580db0f67ebdb88f20c17a758a055b242c1cc59c40664e4cea0c0f61bda47c06ea3327d95e507cd9bdde9a4d296f099b15bf6903115fcf840
|
7
|
+
data.tar.gz: ccb09e88187c401b435292d36fd4abe4ac82794dec361ff20cdac5e8e458f6225e429c6a1ee2c3d94724a6e3d4bc95f028806aae849662d277a2ff0669668c27
|
@@ -0,0 +1,36 @@
|
|
1
|
+
name: Tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
build:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby: [ "2.7", "3.0", "3.1", "3.2", jruby ]
|
15
|
+
active_support: [ "6.0", "7.0" ]
|
16
|
+
exclude:
|
17
|
+
- ruby: "3.0"
|
18
|
+
active_support: "6.0"
|
19
|
+
- ruby: "3.1"
|
20
|
+
active_support: "6.0"
|
21
|
+
- ruby: "3.2"
|
22
|
+
active_support: "6.0"
|
23
|
+
name: Ruby ${{ matrix.ruby }} - ActiveSupport ${{ matrix.active_support }}
|
24
|
+
env:
|
25
|
+
ACTIVE_SUPPORT_VERSION: ${{ matrix.active_support }}
|
26
|
+
steps:
|
27
|
+
- uses: actions/checkout@v3
|
28
|
+
- uses: ruby/setup-ruby@v1
|
29
|
+
with:
|
30
|
+
ruby-version: ${{ matrix.ruby }}
|
31
|
+
bundler-cache: true
|
32
|
+
- name: Run Tests
|
33
|
+
env:
|
34
|
+
RUBYOPT: "-W:deprecated" # Show Ruby's deprecation warnings
|
35
|
+
run: |
|
36
|
+
bundle exec rake
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/clockwork.gemspec
CHANGED
data/lib/clockwork/manager.rb
CHANGED
data/test/clockwork_test.rb
CHANGED
@@ -40,7 +40,7 @@ describe Clockwork do
|
|
40
40
|
Clockwork.run
|
41
41
|
assert run
|
42
42
|
assert @log_output.string.include?("Triggering 'an event'")
|
43
|
-
assert_match
|
43
|
+
assert_match(/Finished 'an event' duration_ms=\d+ error=nil/, @log_output.string)
|
44
44
|
end
|
45
45
|
|
46
46
|
it 'should log exceptions' do
|
@@ -54,7 +54,7 @@ describe Clockwork do
|
|
54
54
|
Clockwork.run
|
55
55
|
assert run
|
56
56
|
assert @log_output.string.include?("Triggering 'an event'")
|
57
|
-
assert_match
|
57
|
+
assert_match(/Finished 'an event' duration_ms=\d+ error=#<RuntimeError: boom>/, @log_output.string)
|
58
58
|
end
|
59
59
|
|
60
60
|
it 'should pass event without modification to handler' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clockwork
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Wiggins
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-12-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: tzinfo
|
@@ -121,8 +121,8 @@ extensions: []
|
|
121
121
|
extra_rdoc_files:
|
122
122
|
- README.md
|
123
123
|
files:
|
124
|
+
- ".github/workflows/tests.yml"
|
124
125
|
- ".gitignore"
|
125
|
-
- ".travis.yml"
|
126
126
|
- CHANGELOG.md
|
127
127
|
- Gemfile
|
128
128
|
- LICENSE
|
@@ -133,9 +133,6 @@ files:
|
|
133
133
|
- clockwork.gemspec
|
134
134
|
- clockworkd.1
|
135
135
|
- example.rb
|
136
|
-
- gemfiles/activesupport4.gemfile
|
137
|
-
- gemfiles/activesupport5.gemfile
|
138
|
-
- gemfiles/activesupport6.gemfile
|
139
136
|
- lib/clockwork.rb
|
140
137
|
- lib/clockwork/at.rb
|
141
138
|
- lib/clockwork/database_events.rb
|
@@ -175,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
172
|
- !ruby/object:Gem::Version
|
176
173
|
version: '0'
|
177
174
|
requirements: []
|
178
|
-
rubygems_version: 3.
|
175
|
+
rubygems_version: 3.3.7
|
179
176
|
signing_key:
|
180
177
|
specification_version: 4
|
181
178
|
summary: A scheduler process to replace cron.
|
data/.travis.yml
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
sudo: false
|
3
|
-
cache: bundler
|
4
|
-
before_install:
|
5
|
-
- gem update --system
|
6
|
-
# This is required to support ActiveSupport 4
|
7
|
-
# https://docs.travis-ci.com/user/languages/ruby/#bundler-20
|
8
|
-
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
9
|
-
- gem install bundler -v '< 2'
|
10
|
-
rvm:
|
11
|
-
- 2.3.8
|
12
|
-
- 2.4.9
|
13
|
-
- 2.5.7
|
14
|
-
- 2.6.5
|
15
|
-
- 2.7.0
|
16
|
-
- 3.0.2
|
17
|
-
- jruby-9.1.17.0
|
18
|
-
- jruby-9.2.11.0
|
19
|
-
gemfile:
|
20
|
-
- gemfiles/activesupport4.gemfile
|
21
|
-
- gemfiles/activesupport5.gemfile
|
22
|
-
- gemfiles/activesupport6.gemfile
|
23
|
-
matrix:
|
24
|
-
exclude:
|
25
|
-
- rvm: 2.3.8
|
26
|
-
gemfile: gemfiles/activesupport6.gemfile
|
27
|
-
- rvm: 2.4.9
|
28
|
-
gemfile: gemfiles/activesupport6.gemfile
|
29
|
-
- rvm: jruby-9.1.17.0
|
30
|
-
gemfile: gemfiles/activesupport6.gemfile
|