roqua-support 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/lib/roqua/probes/base_probe.rb +3 -0
  4. data/lib/roqua-support/version.rb +1 -1
  5. data/roqua-support.gemspec +1 -1
  6. metadata +4 -72
  7. data/.gitignore +0 -20
  8. data/.gitlab-ci.yml +0 -32
  9. data/.rspec +0 -1
  10. data/.rubocop.yml +0 -2
  11. data/.travis.yml +0 -6
  12. data/Appraisals +0 -15
  13. data/Gemfile +0 -21
  14. data/Gemfile.lock +0 -213
  15. data/Guardfile +0 -8
  16. data/circle.yml +0 -13
  17. data/gemfiles/rails52.gemfile +0 -24
  18. data/gemfiles/rails60.gemfile +0 -23
  19. data/gemfiles/rails61.gemfile +0 -23
  20. data/spec/internal/config/balancer_state +0 -1
  21. data/spec/internal/config/routes.rb +0 -3
  22. data/spec/roqua/core_ext/active_interaction/date_time_as_unix_extension_spec.rb +0 -51
  23. data/spec/roqua/core_ext/active_interaction/duration_filter_spec.rb +0 -90
  24. data/spec/roqua/core_ext/active_interaction/rails_intrumentation_spec.rb +0 -20
  25. data/spec/roqua/core_ext/activerecord/uniq_find_or_create_spec.rb +0 -77
  26. data/spec/roqua/core_ext/delayed_job/activity_monitoring_spec.rb +0 -75
  27. data/spec/roqua/core_ext/enumerable/sort_by_alphanum_spec.rb +0 -33
  28. data/spec/roqua/core_ext/fabrication/singleton_spec.rb +0 -23
  29. data/spec/roqua/logging/roqua_logging_railtie_spec.rb +0 -48
  30. data/spec/roqua/probes/delayed_job_probe_spec.rb +0 -56
  31. data/spec/roqua/probes/monitoring_probe_spec.rb +0 -69
  32. data/spec/roqua/responders/active_interaction_aware_responder_spec.rb +0 -54
  33. data/spec/roqua/responders/api_errors_responder_spec.rb +0 -34
  34. data/spec/roqua/scheduling/scheduler_spec.rb +0 -114
  35. data/spec/roqua/status_checks/check_db_connection_spec.rb +0 -12
  36. data/spec/roqua/status_checks/check_load_balancer_member_spec.rb +0 -22
  37. data/spec/roqua/status_checks/status_controller_spec.rb +0 -63
  38. data/spec/roqua/support/errors_spec.rb +0 -168
  39. data/spec/roqua/support/helpers_spec.rb +0 -50
  40. data/spec/roqua/support/logwrapper_spec.rb +0 -69
  41. data/spec/roqua/support/request_logger_spec.rb +0 -148
  42. data/spec/roqua/support/stats_spec.rb +0 -18
  43. data/spec/roqua/support_spec.rb +0 -19
  44. data/spec/roqua/type/stripped_string_spec.rb +0 -34
  45. data/spec/roqua/validators/subset_validator_spec.rb +0 -39
  46. data/spec/spec_helper.rb +0 -39
  47. data/styleguide/ruby/rubocop.yml +0 -219
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26f053a4b379494d15a9b24e9b8bc81911f3315c803f087dc0798bf668b762c3
4
- data.tar.gz: 564d0a8c6a2faf7dee1074d4f6f18798371febfeaacb0e76df40ff85109440e8
3
+ metadata.gz: 36d128b50528ddbb421f73531871ebfdb6ecdff1d003078d5c99b81cf306b288
4
+ data.tar.gz: 11470f1bfd036513317a3b07ebb761df077bd1f5d6dca5bd99875e16f66e08f4
5
5
  SHA512:
6
- metadata.gz: 90c413010ca39e84809c85fd7a659900293055d0db111adafcd70f7cba88c24aee6c8953bd6ef066c9861fc6406e6612ea34a318780302a6dc5488ceda29e7f1
7
- data.tar.gz: 4c977d93716db251acd831231904271d8ec216bc1abc1a7ca1620da75767bada7b4ab737b0917359b975c64172fcaebad8a1ffc305833daf80d00157329c5b97
6
+ metadata.gz: 63c9abd39528488a7e17ad0d17dd07d11bd78675f30d9bfc9c94d5337669069cd277f170621b052c25bc6e2d67e490a18aa70fcf3d70c8ccab578fdbe4b3a04d
7
+ data.tar.gz: d895f6929c07ea412a347aac053ff887f8e65b32b1e25d8f8a6c63e36a1d0c4ec21b4907b89f4142fd4ebe43fde3bbda2dfdd8917057aefa790b7f025e81edd0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.5
2
+
3
+ * Catch exceptions in appsignal probes and send them to appsignal.
4
+
1
5
  ## 0.4.4
2
6
 
3
7
  * Fix incompatibility with Appsignal v3 which removed long-deprecated is_ignored_exception? with no alternative
@@ -18,6 +18,9 @@ module Roqua
18
18
  def call
19
19
  run
20
20
  Appsignal.increment_counter("probe.call.completed", 1, probe_name: self.class.name.demodulize.underscore)
21
+ rescue => e
22
+ Appsignal.send_error(e) { _1.set_namespace(Appsignal::Transaction::BACKGROUND_JOB) }
23
+ raise
21
24
  end
22
25
  end
23
26
  end
@@ -1,5 +1,5 @@
1
1
  module Roqua
2
2
  module Support
3
- VERSION = '0.4.4'.freeze
3
+ VERSION = '0.4.5'.freeze
4
4
  end
5
5
  end
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.email = "marten@roqua.nl"
14
14
  gem.homepage = "https://github.com/roqua/roqua-support"
15
15
 
16
- gem.files = `git ls-files`.split($/)
16
+ gem.files = Dir["{lib}/**/*"] + %w{CHANGELOG.md Rakefile LICENSE.txt README.md roqua-support.gemspec}
17
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ["lib"]
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.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marten Veldthuis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-23 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_interaction
@@ -180,23 +180,10 @@ executables: []
180
180
  extensions: []
181
181
  extra_rdoc_files: []
182
182
  files:
183
- - ".gitignore"
184
- - ".gitlab-ci.yml"
185
- - ".rspec"
186
- - ".rubocop.yml"
187
- - ".travis.yml"
188
- - Appraisals
189
183
  - CHANGELOG.md
190
- - Gemfile
191
- - Gemfile.lock
192
- - Guardfile
193
184
  - LICENSE.txt
194
185
  - README.md
195
186
  - Rakefile
196
- - circle.yml
197
- - gemfiles/rails52.gemfile
198
- - gemfiles/rails60.gemfile
199
- - gemfiles/rails61.gemfile
200
187
  - lib/roqua-support.rb
201
188
  - lib/roqua-support/railtie.rb
202
189
  - lib/roqua-support/version.rb
@@ -234,34 +221,6 @@ files:
234
221
  - lib/roqua/type/stripped_string.rb
235
222
  - lib/roqua/validators/subset_validator.rb
236
223
  - roqua-support.gemspec
237
- - spec/internal/config/balancer_state
238
- - spec/internal/config/routes.rb
239
- - spec/roqua/core_ext/active_interaction/date_time_as_unix_extension_spec.rb
240
- - spec/roqua/core_ext/active_interaction/duration_filter_spec.rb
241
- - spec/roqua/core_ext/active_interaction/rails_intrumentation_spec.rb
242
- - spec/roqua/core_ext/activerecord/uniq_find_or_create_spec.rb
243
- - spec/roqua/core_ext/delayed_job/activity_monitoring_spec.rb
244
- - spec/roqua/core_ext/enumerable/sort_by_alphanum_spec.rb
245
- - spec/roqua/core_ext/fabrication/singleton_spec.rb
246
- - spec/roqua/logging/roqua_logging_railtie_spec.rb
247
- - spec/roqua/probes/delayed_job_probe_spec.rb
248
- - spec/roqua/probes/monitoring_probe_spec.rb
249
- - spec/roqua/responders/active_interaction_aware_responder_spec.rb
250
- - spec/roqua/responders/api_errors_responder_spec.rb
251
- - spec/roqua/scheduling/scheduler_spec.rb
252
- - spec/roqua/status_checks/check_db_connection_spec.rb
253
- - spec/roqua/status_checks/check_load_balancer_member_spec.rb
254
- - spec/roqua/status_checks/status_controller_spec.rb
255
- - spec/roqua/support/errors_spec.rb
256
- - spec/roqua/support/helpers_spec.rb
257
- - spec/roqua/support/logwrapper_spec.rb
258
- - spec/roqua/support/request_logger_spec.rb
259
- - spec/roqua/support/stats_spec.rb
260
- - spec/roqua/support_spec.rb
261
- - spec/roqua/type/stripped_string_spec.rb
262
- - spec/roqua/validators/subset_validator_spec.rb
263
- - spec/spec_helper.rb
264
- - styleguide/ruby/rubocop.yml
265
224
  homepage: https://github.com/roqua/roqua-support
266
225
  licenses:
267
226
  - MIT
@@ -281,35 +240,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
281
240
  - !ruby/object:Gem::Version
282
241
  version: '0'
283
242
  requirements: []
284
- rubygems_version: 3.1.4
243
+ rubygems_version: 3.3.8
285
244
  signing_key:
286
245
  specification_version: 4
287
246
  summary: Helper objects and proxies used by a lot of RoQua applications
288
- test_files:
289
- - spec/internal/config/balancer_state
290
- - spec/internal/config/routes.rb
291
- - spec/roqua/core_ext/active_interaction/date_time_as_unix_extension_spec.rb
292
- - spec/roqua/core_ext/active_interaction/duration_filter_spec.rb
293
- - spec/roqua/core_ext/active_interaction/rails_intrumentation_spec.rb
294
- - spec/roqua/core_ext/activerecord/uniq_find_or_create_spec.rb
295
- - spec/roqua/core_ext/delayed_job/activity_monitoring_spec.rb
296
- - spec/roqua/core_ext/enumerable/sort_by_alphanum_spec.rb
297
- - spec/roqua/core_ext/fabrication/singleton_spec.rb
298
- - spec/roqua/logging/roqua_logging_railtie_spec.rb
299
- - spec/roqua/probes/delayed_job_probe_spec.rb
300
- - spec/roqua/probes/monitoring_probe_spec.rb
301
- - spec/roqua/responders/active_interaction_aware_responder_spec.rb
302
- - spec/roqua/responders/api_errors_responder_spec.rb
303
- - spec/roqua/scheduling/scheduler_spec.rb
304
- - spec/roqua/status_checks/check_db_connection_spec.rb
305
- - spec/roqua/status_checks/check_load_balancer_member_spec.rb
306
- - spec/roqua/status_checks/status_controller_spec.rb
307
- - spec/roqua/support/errors_spec.rb
308
- - spec/roqua/support/helpers_spec.rb
309
- - spec/roqua/support/logwrapper_spec.rb
310
- - spec/roqua/support/request_logger_spec.rb
311
- - spec/roqua/support/stats_spec.rb
312
- - spec/roqua/support_spec.rb
313
- - spec/roqua/type/stripped_string_spec.rb
314
- - spec/roqua/validators/subset_validator_spec.rb
315
- - spec/spec_helper.rb
247
+ test_files: []
data/.gitignore DELETED
@@ -1,20 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- .lock*
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- spec/spec
16
- spec/internal/log
17
- test/tmp
18
- test/version_tmp
19
- tmp
20
- gemfiles/*.lock
data/.gitlab-ci.yml DELETED
@@ -1,32 +0,0 @@
1
- variables:
2
- RAILS_ENV: "test"
3
-
4
- before_script:
5
- - if [ -x "$(command -v apk)" ]; then apk add sqlite-dev; fi
6
- - export BUNDLE_PATH=$CI_PROJECT_DIR/.gems
7
- - bundle --jobs 2 --retry 3
8
- - bundle exec appraisal install
9
-
10
-
11
- .ruby_27: &ruby_27
12
- image: registry.roqua.nl/roqua/docker-base-images:ruby-2.7-builder
13
- cache:
14
- key: ruby_27
15
- paths:
16
- - .gems
17
-
18
-
19
- rails_52_ruby_27:
20
- <<: *ruby_27
21
- script:
22
- - bundle exec appraisal rails52 bundle exec rspec
23
-
24
- rails_60_ruby_27:
25
- <<: *ruby_27
26
- script:
27
- - bundle exec appraisal rails60 bundle exec rspec
28
-
29
- rails_61_ruby_27:
30
- <<: *ruby_27
31
- script:
32
- - bundle exec appraisal rails61 bundle exec rspec
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --color
data/.rubocop.yml DELETED
@@ -1,2 +0,0 @@
1
- inherit_from:
2
- - styleguide/ruby/rubocop.yml
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - jruby-19mode # JRuby in 1.9 mode
6
- - rbx-2.1.1
data/Appraisals DELETED
@@ -1,15 +0,0 @@
1
- appraise "rails52" do
2
- gem "active_interaction", "~> 3.0"
3
- gem "activesupport", "~> 5.2.0"
4
- gem 'appsignal', '~> 2.9.8' # test each minor versions we support
5
- end
6
-
7
- appraise "rails60" do
8
- gem "activesupport", "~> 6.0.0"
9
- gem 'appsignal', '~> 2.10.6'
10
- end
11
-
12
- appraise "rails61" do
13
- gem "activesupport", "~> 6.1.0"
14
- gem 'appsignal', '~> 3.0.0'
15
- end
data/Gemfile DELETED
@@ -1,21 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in roqua-support.gemspec
4
- gemspec
5
-
6
- gem 'appraisal'
7
- # fix so long as we support ruby 2.6 and ealier.
8
- gem 'roqua_styleguide', git: 'https://gitlab.roqua.nl/roqua/styleguide.git', ref: '9662550'
9
-
10
- group :test do
11
- gem 'sqlite3'
12
- gem 'actionpack', '>= 4.0'
13
- gem 'climate_control' # For ENV modification in specs
14
- gem 'combustion', '~> 1.1.1'
15
- gem 'fakefs', require: 'fakefs/safe'
16
- gem 'guard-rspec', '~> 4.2.6'
17
- gem 'responders'
18
- gem 'rspec-instrumentation-matcher'
19
- gem 'rspec-rails'
20
- gem 'pry'
21
- end
data/Gemfile.lock DELETED
@@ -1,213 +0,0 @@
1
- GIT
2
- remote: https://gitlab.roqua.nl/roqua/styleguide.git
3
- revision: 9662550201987db20c03e300eddb34d8ad035613
4
- ref: 9662550
5
- specs:
6
- roqua_styleguide (0.0.8)
7
- rubocop (~> 0.90.0)
8
- rubocop-rails
9
-
10
- PATH
11
- remote: .
12
- specs:
13
- roqua-support (0.4.4)
14
- active_interaction (>= 3.0, < 5.0)
15
- activesupport (>= 5.2, < 6.2)
16
- appsignal (>= 2.9, < 3.1)
17
- naught (~> 1.0)
18
- with_advisory_lock (~> 3.2)
19
-
20
- GEM
21
- remote: https://rubygems.org/
22
- specs:
23
- actionpack (6.0.2.2)
24
- actionview (= 6.0.2.2)
25
- activesupport (= 6.0.2.2)
26
- rack (~> 2.0, >= 2.0.8)
27
- rack-test (>= 0.6.3)
28
- rails-dom-testing (~> 2.0)
29
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
30
- actionview (6.0.2.2)
31
- activesupport (= 6.0.2.2)
32
- builder (~> 3.1)
33
- erubi (~> 1.4)
34
- rails-dom-testing (~> 2.0)
35
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
36
- active_interaction (4.1.0)
37
- activemodel (>= 5, < 8)
38
- activesupport (>= 5, < 8)
39
- activemodel (6.0.2.2)
40
- activesupport (= 6.0.2.2)
41
- activerecord (6.0.2.2)
42
- activemodel (= 6.0.2.2)
43
- activesupport (= 6.0.2.2)
44
- activesupport (6.0.2.2)
45
- concurrent-ruby (~> 1.0, >= 1.0.2)
46
- i18n (>= 0.7, < 2)
47
- minitest (~> 5.1)
48
- tzinfo (~> 1.1)
49
- zeitwerk (~> 2.2)
50
- appraisal (2.2.0)
51
- bundler
52
- rake
53
- thor (>= 0.14.0)
54
- appsignal (3.0.26)
55
- rack
56
- ast (2.4.2)
57
- builder (3.2.4)
58
- climate_control (0.2.0)
59
- coderay (1.1.2)
60
- combustion (1.1.2)
61
- activesupport (>= 3.0.0)
62
- railties (>= 3.0.0)
63
- thor (>= 0.14.6)
64
- concurrent-ruby (1.1.8)
65
- crass (1.0.6)
66
- delayed_job (4.1.8)
67
- activesupport (>= 3.0, < 6.1)
68
- delayed_job_active_record (4.1.4)
69
- activerecord (>= 3.0, < 6.1)
70
- delayed_job (>= 3.0, < 5)
71
- diff-lcs (1.3)
72
- erubi (1.9.0)
73
- fakefs (1.2.2)
74
- ffi (1.12.2)
75
- formatador (0.2.5)
76
- guard (2.16.2)
77
- formatador (>= 0.2.4)
78
- listen (>= 2.7, < 4.0)
79
- lumberjack (>= 1.0.12, < 2.0)
80
- nenv (~> 0.1)
81
- notiffany (~> 0.0)
82
- pry (>= 0.9.12)
83
- shellany (~> 0.0)
84
- thor (>= 0.18.1)
85
- guard-rspec (4.2.10)
86
- guard (~> 2.1)
87
- rspec (>= 2.14, < 4.0)
88
- i18n (1.8.10)
89
- concurrent-ruby (~> 1.0)
90
- listen (3.2.1)
91
- rb-fsevent (~> 0.10, >= 0.10.3)
92
- rb-inotify (~> 0.9, >= 0.9.10)
93
- loofah (2.5.0)
94
- crass (~> 1.0.2)
95
- nokogiri (>= 1.5.9)
96
- lumberjack (1.2.4)
97
- method_source (1.0.0)
98
- mini_portile2 (2.4.0)
99
- minitest (5.14.4)
100
- naught (1.1.0)
101
- nenv (0.3.0)
102
- nokogiri (1.10.9)
103
- mini_portile2 (~> 2.4.0)
104
- notiffany (0.1.3)
105
- nenv (~> 0.1)
106
- shellany (~> 0.0)
107
- parallel (1.20.1)
108
- parser (3.0.0.0)
109
- ast (~> 2.4.1)
110
- pry (0.13.1)
111
- coderay (~> 1.1)
112
- method_source (~> 1.0)
113
- rack (2.2.3)
114
- rack-test (1.1.0)
115
- rack (>= 1.0, < 3)
116
- rails-dom-testing (2.0.3)
117
- activesupport (>= 4.2.0)
118
- nokogiri (>= 1.6)
119
- rails-html-sanitizer (1.3.0)
120
- loofah (~> 2.3)
121
- railties (6.0.2.2)
122
- actionpack (= 6.0.2.2)
123
- activesupport (= 6.0.2.2)
124
- method_source
125
- rake (>= 0.8.7)
126
- thor (>= 0.20.3, < 2.0)
127
- rainbow (3.0.0)
128
- rake (13.0.1)
129
- rb-fsevent (0.10.4)
130
- rb-inotify (0.10.1)
131
- ffi (~> 1.0)
132
- regexp_parser (2.1.1)
133
- responders (3.0.0)
134
- actionpack (>= 5.0)
135
- railties (>= 5.0)
136
- rexml (3.2.4)
137
- rspec (3.9.0)
138
- rspec-core (~> 3.9.0)
139
- rspec-expectations (~> 3.9.0)
140
- rspec-mocks (~> 3.9.0)
141
- rspec-core (3.9.2)
142
- rspec-support (~> 3.9.3)
143
- rspec-expectations (3.9.1)
144
- diff-lcs (>= 1.2.0, < 2.0)
145
- rspec-support (~> 3.9.0)
146
- rspec-instrumentation-matcher (0.0.9)
147
- activesupport
148
- rspec-expectations
149
- rspec-mocks (3.9.1)
150
- diff-lcs (>= 1.2.0, < 2.0)
151
- rspec-support (~> 3.9.0)
152
- rspec-rails (4.0.0)
153
- actionpack (>= 4.2)
154
- activesupport (>= 4.2)
155
- railties (>= 4.2)
156
- rspec-core (~> 3.9)
157
- rspec-expectations (~> 3.9)
158
- rspec-mocks (~> 3.9)
159
- rspec-support (~> 3.9)
160
- rspec-support (3.9.3)
161
- rubocop (0.90.0)
162
- parallel (~> 1.10)
163
- parser (>= 2.7.1.1)
164
- rainbow (>= 2.2.2, < 4.0)
165
- regexp_parser (>= 1.7)
166
- rexml
167
- rubocop-ast (>= 0.3.0, < 1.0)
168
- ruby-progressbar (~> 1.7)
169
- unicode-display_width (>= 1.4.0, < 2.0)
170
- rubocop-ast (0.8.0)
171
- parser (>= 2.7.1.5)
172
- rubocop-rails (2.9.1)
173
- activesupport (>= 4.2.0)
174
- rack (>= 1.1)
175
- rubocop (>= 0.90.0, < 2.0)
176
- ruby-progressbar (1.11.0)
177
- shellany (0.0.1)
178
- sqlite3 (1.4.2)
179
- thor (1.0.1)
180
- thread_safe (0.3.6)
181
- timecop (0.9.1)
182
- tzinfo (1.2.9)
183
- thread_safe (~> 0.1)
184
- unicode-display_width (1.7.0)
185
- with_advisory_lock (3.2.0)
186
- activerecord (>= 3.2)
187
- zeitwerk (2.4.2)
188
-
189
- PLATFORMS
190
- ruby
191
-
192
- DEPENDENCIES
193
- actionpack (>= 4.0)
194
- appraisal
195
- bundler (~> 2.0)
196
- climate_control
197
- combustion (~> 1.1.1)
198
- delayed_job_active_record
199
- fakefs
200
- guard-rspec (~> 4.2.6)
201
- pry
202
- rake
203
- responders
204
- roqua-support!
205
- roqua_styleguide!
206
- rspec (>= 2.12.0, < 4.0)
207
- rspec-instrumentation-matcher
208
- rspec-rails
209
- sqlite3
210
- timecop
211
-
212
- BUNDLED WITH
213
- 2.1.4
data/Guardfile DELETED
@@ -1,8 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- guard :rspec, cmd: 'bundle exec rspec --colour' do
5
- watch(%r{^spec/.+_spec\.rb$})
6
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
7
- watch('spec/spec_helper.rb') { "spec" }
8
- end
data/circle.yml DELETED
@@ -1,13 +0,0 @@
1
- machine:
2
- ruby:
3
- version: 2.3.1
4
- dependencies:
5
- override:
6
- - bundle install
7
- - gem install appraisal
8
- - appraisal
9
- test:
10
- override:
11
- - appraisal rails41 bundle exec rspec
12
- - appraisal rails42 bundle exec rspec
13
- - appraisal rails50 bundle exec rspec
@@ -1,24 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal"
6
- gem "roqua_styleguide", git: "https://gitlab.roqua.nl/roqua/styleguide.git", ref: "9662550"
7
- gem "active_interaction", "~> 3.0"
8
- gem "activesupport", "~> 5.2.0"
9
- gem "appsignal", "~> 2.9.8"
10
-
11
- group :test do
12
- gem "sqlite3"
13
- gem "actionpack", ">= 4.0"
14
- gem "climate_control"
15
- gem "combustion", "~> 1.1.1"
16
- gem "fakefs", require: "fakefs/safe"
17
- gem "guard-rspec", "~> 4.2.6"
18
- gem "responders"
19
- gem "rspec-instrumentation-matcher"
20
- gem "rspec-rails"
21
- gem "pry"
22
- end
23
-
24
- gemspec path: "../"
@@ -1,23 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal"
6
- gem "roqua_styleguide", git: "https://gitlab.roqua.nl/roqua/styleguide.git", ref: "9662550"
7
- gem "activesupport", "~> 6.0.0"
8
- gem "appsignal", "~> 2.10.6"
9
-
10
- group :test do
11
- gem "sqlite3"
12
- gem "actionpack", ">= 4.0"
13
- gem "climate_control"
14
- gem "combustion", "~> 1.1.1"
15
- gem "fakefs", require: "fakefs/safe"
16
- gem "guard-rspec", "~> 4.2.6"
17
- gem "responders"
18
- gem "rspec-instrumentation-matcher"
19
- gem "rspec-rails"
20
- gem "pry"
21
- end
22
-
23
- gemspec path: "../"
@@ -1,23 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal"
6
- gem "roqua_styleguide", git: "https://gitlab.roqua.nl/roqua/styleguide.git", ref: "9662550"
7
- gem "activesupport", "~> 6.1.0"
8
- gem "appsignal", "~> 3.0.0"
9
-
10
- group :test do
11
- gem "sqlite3"
12
- gem "actionpack", ">= 4.0"
13
- gem "climate_control"
14
- gem "combustion", "~> 1.1.1"
15
- gem "fakefs", require: "fakefs/safe"
16
- gem "guard-rspec", "~> 4.2.6"
17
- gem "responders"
18
- gem "rspec-instrumentation-matcher"
19
- gem "rspec-rails"
20
- gem "pry"
21
- end
22
-
23
- gemspec path: "../"
@@ -1 +0,0 @@
1
- on
@@ -1,3 +0,0 @@
1
- Rails.application.routes.draw do
2
- get '/status' => 'roqua/status_checks/status#balancer_status', as: :balancer_status
3
- end
@@ -1,51 +0,0 @@
1
- require 'active_interaction'
2
- require 'active_support/all'
3
- require 'roqua/core_ext/active_interaction/filters/date_time_as_unix_extension'
4
-
5
- class DateTimeFilterOperation < ActiveInteraction::Base
6
- date_time :date_time, default: nil
7
-
8
- def execute
9
- date_time
10
- end
11
- end
12
-
13
- describe RoquaDateTimeAsUnixFilterExtension do
14
- let(:time) { Time.now.change(:usec => 0) }
15
-
16
- it 'unix integer time translates correctly to datetime' do
17
- expect(DateTimeFilterOperation.run! date_time: time.to_i).to eq time
18
- end
19
-
20
- it 'unix integer time as string translates correctly to datetime' do
21
- expect(DateTimeFilterOperation.run! date_time: time.to_i.to_s).to eq time
22
- end
23
-
24
- it 'transations and empty string to nil' do
25
- expect(DateTimeFilterOperation.run! date_time: '').to eq nil
26
- end
27
- end
28
-
29
- class TimeFilterOperation < ActiveInteraction::Base
30
- time :time, default: nil
31
-
32
- def execute
33
- time
34
- end
35
- end
36
-
37
- describe RoquaDateTimeAsUnixFilterExtension do
38
- let(:time) { Time.now.change(:usec => 0) }
39
-
40
- it 'unix integer time translates correctly to time' do
41
- expect(TimeFilterOperation.run! time: time.to_i).to eq time
42
- end
43
-
44
- it 'unix integer time as string translates correctly to datetime' do
45
- expect(TimeFilterOperation.run! time: time.to_i.to_s).to eq time
46
- end
47
-
48
- it 'transations and empty string to nil' do
49
- expect(TimeFilterOperation.run! time: '').to eq nil
50
- end
51
- end