highlight_io 0.5.2 → 0.5.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a97a116ab2f537f0c01a8b9513a6c2a8c5633396bd9764db6c2f5b94da6f6e6d
4
- data.tar.gz: 5b45bdd1b8d84cf7ef162c51a4a4034b6736d738b29237909ea2351090a7f8dc
3
+ metadata.gz: 43534b4ac1e3bd3ec6c1e180316d9b3ba114062d10170a766cf4bd8b796ad659
4
+ data.tar.gz: 67eb09e090d710c42e4d5eb2b32a871d359419bd970cc16d69ba75787684cf76
5
5
  SHA512:
6
- metadata.gz: a1a095355c2aed477b6d79a682c0c37c8ec0a9aed809541ad16eb4a8b86e02c6b849c30282362e88e37c2ea0ee8d6a114be60c741d6faa7efdda16f4fda814c7
7
- data.tar.gz: d7d010a7dfbf98c1744e0c2c19c2ac8d889ed6d5271aa6821feadd2cb742b3cda9b7e8259b10a9ad84109b9387082a02ac36e96bedaacf7d8861b49540a2a156
6
+ metadata.gz: d4cbf268f9b307bc0c6a4738b92544b8762962291bd6d5c3e9ddbbd369f16009fd44785008b1f716d622ffbbc790f86772d13101d187eaf22b4e3741ba6f65fe
7
+ data.tar.gz: 03ebe8c0c821f6c7e2494cb39cfd9be967dfb3501771e312e4298eabbafabee3528027c2965a3391494e1e87f0215ed6b2a1af8c386191f85436f32911b93542
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.5.4
2
+
3
+ - Only set up Rails helper methods when available
4
+
5
+ ## 0.5.3
6
+
7
+ - Call `to_s` on the environment argument passed to `init`
8
+
1
9
  ## 0.5.2
2
10
 
3
11
  - Update dependencies with security vulnerabilities
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- highlight_io (0.5.2)
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.2'.freeze
2
+ VERSION = '0.5.4'.freeze
3
3
  end
data/lib/highlight.rb CHANGED
@@ -20,7 +20,7 @@ module Highlight
20
20
  end
21
21
 
22
22
  def self.init(project_id, environment: '', otlp_endpoint: H::OTLP_HTTP, &block)
23
- H.new(project_id, environment: environment, otlp_endpoint: otlp_endpoint, &block)
23
+ H.new(project_id, environment: environment.to_s, otlp_endpoint: otlp_endpoint, &block)
24
24
  end
25
25
 
26
26
  def self.start_span(name, attrs = {}, &block)
@@ -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.2
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-20 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