highlight_io 0.5.3 → 0.5.4

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: 0b766683177614e1959a4a805da0d91ffa5fefcf03a76cb4dce83b0a90036d12
4
- data.tar.gz: b62dbbbf014397dfc1a5f3094f8ab1a020a4c16c8a82997bf5be11131345c0a5
3
+ metadata.gz: 43534b4ac1e3bd3ec6c1e180316d9b3ba114062d10170a766cf4bd8b796ad659
4
+ data.tar.gz: 67eb09e090d710c42e4d5eb2b32a871d359419bd970cc16d69ba75787684cf76
5
5
  SHA512:
6
- metadata.gz: e9424629d4b75971f0f891a1abf0df73b33190d987378d68a18864c269ca48a7e28cb179b9d46633f00b5e273bc1fdabf332779ca937838961344ada96b74c5c
7
- data.tar.gz: 22f11b04a9c9f74c7ad1b9f9e4b3f0df2ef8781a91c5d7598eb5068ae0c22a7b139d21d62e592e3a511023480262eb6f3203a878a05864360fc878b12f550fe5
6
+ metadata.gz: d4cbf268f9b307bc0c6a4738b92544b8762962291bd6d5c3e9ddbbd369f16009fd44785008b1f716d622ffbbc790f86772d13101d187eaf22b4e3741ba6f65fe
7
+ data.tar.gz: 03ebe8c0c821f6c7e2494cb39cfd9be967dfb3501771e312e4298eabbafabee3528027c2965a3391494e1e87f0215ed6b2a1af8c386191f85436f32911b93542
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.5.4
2
+
3
+ - Only set up Rails helper methods when available
4
+
1
5
  ## 0.5.3
2
6
 
3
7
  - Call `to_s` on the environment argument passed to `init`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- highlight_io (0.5.3)
4
+ highlight_io (0.5.4)
5
5
  grpc (~> 1.66)
6
6
  opentelemetry-exporter-otlp (~> 0.28.1)
7
7
  opentelemetry-instrumentation-all (~> 0.62.1)
@@ -16,10 +16,10 @@ GEM
16
16
  google-protobuf (3.25.5-x86_64-linux)
17
17
  googleapis-common-protos-types (1.16.0)
18
18
  google-protobuf (>= 3.18, < 5.a)
19
- grpc (1.66.0-arm64-darwin)
19
+ grpc (1.67.0-arm64-darwin)
20
20
  google-protobuf (>= 3.25, < 5.0)
21
21
  googleapis-common-protos-types (~> 1.0)
22
- grpc (1.66.0-x86_64-linux)
22
+ grpc (1.67.0-x86_64-linux)
23
23
  google-protobuf (>= 3.25, < 5.0)
24
24
  googleapis-common-protos-types (~> 1.0)
25
25
  json (2.6.3)
@@ -52,7 +52,7 @@ GEM
52
52
  opentelemetry-api (~> 1.0)
53
53
  opentelemetry-instrumentation-active_support (~> 0.6)
54
54
  opentelemetry-instrumentation-base (~> 0.22.1)
55
- opentelemetry-instrumentation-active_job (0.7.7)
55
+ opentelemetry-instrumentation-active_job (0.7.8)
56
56
  opentelemetry-api (~> 1.0)
57
57
  opentelemetry-instrumentation-base (~> 0.22.1)
58
58
  opentelemetry-instrumentation-active_model_serializers (0.20.2)
@@ -167,7 +167,7 @@ GEM
167
167
  opentelemetry-api (~> 1.0)
168
168
  opentelemetry-helpers-sql-obfuscation
169
169
  opentelemetry-instrumentation-base (~> 0.22.1)
170
- opentelemetry-instrumentation-que (0.8.3)
170
+ opentelemetry-instrumentation-que (0.8.4)
171
171
  opentelemetry-api (~> 1.0)
172
172
  opentelemetry-instrumentation-base (~> 0.22.1)
173
173
  opentelemetry-instrumentation-racecar (0.3.4)
@@ -1,3 +1,3 @@
1
1
  module Highlight
2
- VERSION = '0.5.3'.freeze
2
+ VERSION = '0.5.4'.freeze
3
3
  end
data/lib/highlight.rb CHANGED
@@ -251,9 +251,13 @@ module Highlight
251
251
  module Rails
252
252
  def self.included(base)
253
253
  base.extend(ClassMethods)
254
- base.helper_method(:highlight_headers)
254
+
255
+ if base.respond_to?(:helper_method)
256
+ base.helper_method(:highlight_headers)
257
+ base.helper(ViewHelpers)
258
+ end
259
+
255
260
  base.around_action(:with_highlight_context)
256
- base.helper(ViewHelpers)
257
261
  end
258
262
 
259
263
  def with_highlight_context(&block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: highlight_io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Highlight
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-25 00:00:00.000000000 Z
11
+ date: 2024-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc