roqua-support 0.3.1 → 0.3.2
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/CHANGELOG.md +5 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +4 -3
- data/lib/roqua-support/version.rb +1 -1
- data/lib/roqua/probes/base_probe.rb +1 -1
- data/lib/roqua/scheduling/scheduler.rb +1 -1
- data/roqua-support.gemspec +1 -1
- data/spec/roqua/probes/delayed_job_probe_spec.rb +1 -1
- data/spec/roqua/probes/monitoring_probe_spec.rb +1 -1
- data/spec/roqua/scheduling/scheduler_spec.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7d9dfb663d723ece7cb2972d37b393ec69966b364324d3993bd9c132b3be106
|
4
|
+
data.tar.gz: 15d4f06832bf6c50e66faace5db84255ee81359d666d7fa657622832a44f9942
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be346d85ae38329372ebbfcb73238dcb6edf263fb87b0fa1fff4eb7c45434b0fb1fe315df5d3d0bdb7ba24c6f45a4a44a563874c423c505644980dddc4318a07
|
7
|
+
data.tar.gz: 7072cb75b17a3214a4b1180736f307fbba8d916e5be3dc8812c5ece18cc1b92a8d75d042cec8225a0b708284d085c63c499eabaa98283449f34224ddfb9138de
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -9,7 +9,7 @@ gem 'roqua_styleguide', git: 'https://gitlab.roqua.nl/roqua/styleguide.git'
|
|
9
9
|
group :test do
|
10
10
|
gem 'actionpack', '>= 4.0'
|
11
11
|
gem 'active_interaction', '~> 3.0'
|
12
|
-
gem 'appsignal', '~> 2.9.
|
12
|
+
gem 'appsignal', '~> 2.9.8'
|
13
13
|
gem 'climate_control' # For ENV modification in specs
|
14
14
|
gem 'combustion', '~> 0.5.2'
|
15
15
|
gem 'fakefs', require: 'fakefs/safe'
|
data/Gemfile.lock
CHANGED
@@ -8,9 +8,10 @@ GIT
|
|
8
8
|
PATH
|
9
9
|
remote: .
|
10
10
|
specs:
|
11
|
-
roqua-support (0.3.
|
11
|
+
roqua-support (0.3.2)
|
12
12
|
active_interaction (~> 3.0)
|
13
13
|
activesupport (>= 3.2, < 6)
|
14
|
+
appsignal (~> 2.9.8)
|
14
15
|
naught (~> 1.0)
|
15
16
|
with_advisory_lock (~> 3.2)
|
16
17
|
|
@@ -47,7 +48,7 @@ GEM
|
|
47
48
|
bundler
|
48
49
|
rake
|
49
50
|
thor (>= 0.14.0)
|
50
|
-
appsignal (2.9.
|
51
|
+
appsignal (2.9.8)
|
51
52
|
rack
|
52
53
|
arel (7.1.4)
|
53
54
|
ast (2.3.0)
|
@@ -107,7 +108,7 @@ GEM
|
|
107
108
|
coderay (~> 1.1.0)
|
108
109
|
method_source (~> 0.8.1)
|
109
110
|
slop (~> 3.4)
|
110
|
-
rack (2.0.
|
111
|
+
rack (2.0.7)
|
111
112
|
rack-test (0.6.3)
|
112
113
|
rack (>= 1.0)
|
113
114
|
rails-dom-testing (2.0.2)
|
@@ -17,7 +17,7 @@ module Roqua
|
|
17
17
|
# do not override me, implement probes by implementing the #run method
|
18
18
|
def call
|
19
19
|
run
|
20
|
-
Appsignal.increment_counter("probe.call.completed
|
20
|
+
Appsignal.increment_counter("probe.call.completed", 1, probe_name: self.class.name.demodulize.underscore)
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
@@ -42,7 +42,7 @@ class Roqua::Scheduling::Scheduler
|
|
42
42
|
task = schedule.tasks[cron_job.name]
|
43
43
|
task.run
|
44
44
|
|
45
|
-
Appsignal.increment_counter("scheduler.run_task.completed
|
45
|
+
Appsignal.increment_counter("scheduler.run_task.completed", 1, task_name: task.name)
|
46
46
|
cron_job.update completed_at: Time.now, next_run_at: task.next_run_at
|
47
47
|
end
|
48
48
|
end
|
data/roqua-support.gemspec
CHANGED
@@ -22,8 +22,8 @@ Gem::Specification.new do |gem|
|
|
22
22
|
gem.add_dependency 'activesupport', '>= 3.2', '< 6'
|
23
23
|
gem.add_dependency 'naught', '~> 1.0'
|
24
24
|
gem.add_dependency 'with_advisory_lock', '~> 3.2'
|
25
|
+
gem.add_dependency 'appsignal', '~> 2.9.8'
|
25
26
|
|
26
|
-
gem.add_development_dependency 'appsignal', '>= 2.3.1'
|
27
27
|
gem.add_development_dependency 'bundler', '~> 1.0'
|
28
28
|
gem.add_development_dependency 'delayed_job_active_record'
|
29
29
|
gem.add_development_dependency 'rake'
|
@@ -32,7 +32,7 @@ describe Roqua::Probes::DelayedJobProbe do
|
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'increments the probe call counter' do
|
35
|
-
expect(Appsignal).to receive(:increment_counter).with('probe.call.completed
|
35
|
+
expect(Appsignal).to receive(:increment_counter).with('probe.call.completed', 1, probe_name: "delayed_job_probe")
|
36
36
|
probe.call
|
37
37
|
end
|
38
38
|
end
|
@@ -21,7 +21,7 @@ describe Roqua::Probes::MonitoringProbe do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
it 'increments the probe call counter' do
|
24
|
-
expect(Appsignal).to receive(:increment_counter).with('probe.call.completed
|
24
|
+
expect(Appsignal).to receive(:increment_counter).with('probe.call.completed', 1, probe_name: "monitoring_probe")
|
25
25
|
probe.call
|
26
26
|
end
|
27
27
|
end
|
@@ -86,7 +86,7 @@ describe Roqua::Scheduling::Scheduler do
|
|
86
86
|
end
|
87
87
|
|
88
88
|
it 'counts task calls' do
|
89
|
-
expect(Appsignal).to receive(:increment_counter).with('scheduler.run_task.completed
|
89
|
+
expect(Appsignal).to receive(:increment_counter).with('scheduler.run_task.completed', 1, task_name: 'hourly')
|
90
90
|
subject.ping
|
91
91
|
end
|
92
92
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roqua-support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marten Veldthuis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_interaction
|
@@ -76,16 +76,16 @@ dependencies:
|
|
76
76
|
name: appsignal
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - "
|
79
|
+
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: 2.
|
82
|
-
type: :
|
81
|
+
version: 2.9.8
|
82
|
+
type: :runtime
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- - "
|
86
|
+
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: 2.
|
88
|
+
version: 2.9.8
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: bundler
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|