roqua-support 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36d128b50528ddbb421f73531871ebfdb6ecdff1d003078d5c99b81cf306b288
4
- data.tar.gz: 11470f1bfd036513317a3b07ebb761df077bd1f5d6dca5bd99875e16f66e08f4
3
+ metadata.gz: c49c6061c749f9e07dc24337c37b16e340aa171a9c0505aca3565c87ad70c652
4
+ data.tar.gz: d9941d0dd4de434930a53fda1ee6fdf3953a00cb933806f5e3f462b3f366132a
5
5
  SHA512:
6
- metadata.gz: 63c9abd39528488a7e17ad0d17dd07d11bd78675f30d9bfc9c94d5337669069cd277f170621b052c25bc6e2d67e490a18aa70fcf3d70c8ccab578fdbe4b3a04d
7
- data.tar.gz: d895f6929c07ea412a347aac053ff887f8e65b32b1e25d8f8a6c63e36a1d0c4ec21b4907b89f4142fd4ebe43fde3bbda2dfdd8917057aefa790b7f025e81edd0
6
+ metadata.gz: a700eb32a993b9c9a4ea95270c141175f2a49005d2f3eeb70597f5ad469b76e26fe1b0bb8a090121271a93cd39f82a312951d3b64c9e24776f14d5071dbc9de4
7
+ data.tar.gz: 5b5b6fbac88ed4a7a5d8e81b850791fe86218d41c4e33a81fe002c04d11d5effa4baa2b05a62b5bb82370f376fa419eabe238721cad03bcfe12ffcaf25770295
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.6
2
+
3
+ * support for rails 7
4
+
1
5
  ## 0.4.5
2
6
 
3
7
  * Catch exceptions in appsignal probes and send them to appsignal.
@@ -8,7 +8,18 @@ module Roqua
8
8
  module Responders
9
9
  module ApiErrorsResponder
10
10
  def json_resource_errors
11
- {:errors => {resource.class.name.underscore => resource.errors}}
11
+ {:errors => {json_resource_class_name => resource.errors}}
12
+ end
13
+
14
+ def json_resource_class_name
15
+ # TODO: Break backwards compat and return "response => " instead
16
+ underscored = resource.class.name.underscore
17
+ case underscored
18
+ when "response"
19
+ "answer"
20
+ else
21
+ underscored
22
+ end
12
23
  end
13
24
  end
14
25
  end
@@ -19,7 +19,7 @@ module Roqua
19
19
  end
20
20
  end
21
21
 
22
- def self.report(exception, context = {})
22
+ def self.report(exception, **context)
23
23
  return if const_defined?(:Rails) && Rails.env.test?
24
24
 
25
25
  namespace, parameters, _controller, skip_backtrace = merge_parameters(exception, context)
@@ -63,7 +63,7 @@ module Roqua
63
63
  parameters: parameters}
64
64
  exception_info[:notification_urls] = notification_urls if notification_urls.present?
65
65
  exception_info[:backtrace] = exception.backtrace unless skip_backtrace
66
- Roqua.logger.error('roqua.exception', exception_info)
66
+ Roqua.logger.error('roqua.exception', **exception_info)
67
67
  end
68
68
  rescue Exception
69
69
  end
@@ -79,7 +79,7 @@ module Roqua
79
79
  current_transaction = Appsignal::Transaction.current
80
80
 
81
81
  if current_transaction.namespace == Appsignal::Transaction::HTTP_REQUEST
82
- current_transaction.set_tags(labels)
82
+ current_transaction.set_tags(**labels)
83
83
  current_transaction.add_exception(exception)
84
84
  else
85
85
  Appsignal.send_error exception do |transaction|
@@ -1,5 +1,5 @@
1
1
  module Roqua
2
2
  module Support
3
- VERSION = '0.4.5'.freeze
3
+ VERSION = '0.4.6'.freeze
4
4
  end
5
5
  end
@@ -20,10 +20,10 @@ Gem::Specification.new do |gem|
20
20
 
21
21
  gem.required_ruby_version = '>= 2.7'
22
22
  gem.add_dependency 'active_interaction', '>= 3.0', '< 5.0'
23
- gem.add_dependency 'activesupport', '>= 5.2', '< 6.2'
23
+ gem.add_dependency 'activesupport', '>= 5.2', '< 7.1'
24
24
  gem.add_dependency 'naught', '~> 1.0'
25
25
  gem.add_dependency 'with_advisory_lock', '~> 3.2'
26
- gem.add_dependency 'appsignal', '>= 2.9', '< 3.1'
26
+ gem.add_dependency 'appsignal', '>= 2.9', '< 4.0'
27
27
 
28
28
  gem.add_development_dependency 'bundler', '~> 2.0'
29
29
  gem.add_development_dependency 'delayed_job_active_record'
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.5
4
+ version: 0.4.6
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-08-15 00:00:00.000000000 Z
11
+ date: 2024-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_interaction
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '5.2'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '6.2'
42
+ version: '7.1'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '5.2'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '6.2'
52
+ version: '7.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: naught
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '2.9'
88
88
  - - "<"
89
89
  - !ruby/object:Gem::Version
90
- version: '3.1'
90
+ version: '4.0'
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
@@ -97,7 +97,7 @@ dependencies:
97
97
  version: '2.9'
98
98
  - - "<"
99
99
  - !ruby/object:Gem::Version
100
- version: '3.1'
100
+ version: '4.0'
101
101
  - !ruby/object:Gem::Dependency
102
102
  name: bundler
103
103
  requirement: !ruby/object:Gem::Requirement
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  - !ruby/object:Gem::Version
241
241
  version: '0'
242
242
  requirements: []
243
- rubygems_version: 3.3.8
243
+ rubygems_version: 3.4.22
244
244
  signing_key:
245
245
  specification_version: 4
246
246
  summary: Helper objects and proxies used by a lot of RoQua applications