activejob-traceable 0.4.0 → 0.4.2

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: ff9134281999c7d1295ecf6539f6822c3b5236da86152b551f84b47ef3c9c103
4
- data.tar.gz: 1709730aaf3eb5ff6dc4f6594b4c0c23ec6b11cddbc2e7145344a22dbdbc290f
3
+ metadata.gz: 1a17f1c27e05852b7b3a0cf68c319a80a43ff9335069e528fe71000e2093d912
4
+ data.tar.gz: d03d1495ed5a38c52f9e07c32c5e6bccafad9667e97bc4bd3bb955abbaa0982b
5
5
  SHA512:
6
- metadata.gz: 3c3c86bd7267e70dbc4ae2c9b985a2f0c63d53d330cdc37f1ad0b01716c370b5d5025b089bbfb0191bf29e2c0a178b2d56c5c7cd6d7c0dee6c350c577388cb20
7
- data.tar.gz: 4fa36116a98bff5877512b2da25cf8d2b4ce50e6018b496e31f664a60397e47c2d0b723f56c7ff85618369d4b0c9721708b6e518f42c61c7c908317005bba586
6
+ metadata.gz: 8c14ae140ca918a8f5432c968c6ee880a2827c8cdb7e4e0113d620e4009ffffaab9165c3da86e65c18696b1cf1bab22205edbea139bdac52f47dcc0a902bde12
7
+ data.tar.gz: 525f18a48b6d707b9966d3f1eeabad5f733ca933d37cbd4ada20a173ff69d9203264158a302a6d63cb837d86560050dbed79a1905244b728c39fa32190d94204
@@ -2,31 +2,34 @@ name: Ruby Gem
2
2
 
3
3
  on:
4
4
  push:
5
- tags:
6
- - '*'
5
+ branches:
6
+ - master
7
+ paths:
8
+ - lib/activejob/traceable/version.rb
7
9
 
8
10
  jobs:
9
11
  build:
10
12
  name: Build and publish
11
13
  runs-on: ubuntu-latest
14
+ environment: master
12
15
  permissions:
13
16
  contents: read
14
17
  packages: write
15
18
 
16
19
  steps:
17
- - uses: actions/checkout@v3
18
- - name: Set up Ruby 3.2
19
- uses: ruby/setup-ruby@v1
20
- with:
21
- ruby-version: 3.2.2
20
+ - uses: actions/checkout@v3
21
+ - name: Set up Ruby 3.2
22
+ uses: ruby/setup-ruby@v1
23
+ with:
24
+ ruby-version: 3.2.2
22
25
 
23
- - name: Publish to RubyGems
24
- run: |
25
- mkdir -p $HOME/.gem
26
- touch $HOME/.gem/credentials
27
- chmod 0600 $HOME/.gem/credentials
28
- printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
29
- gem build *.gemspec
30
- gem push *.gem
31
- env:
32
- GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
26
+ - name: Publish to RubyGems
27
+ run: |
28
+ mkdir -p $HOME/.gem
29
+ touch $HOME/.gem/credentials
30
+ chmod 0600 $HOME/.gem/credentials
31
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
32
+ gem build *.gemspec
33
+ gem push *.gem
34
+ env:
35
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
data/README.md CHANGED
@@ -58,3 +58,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/qonto/
58
58
  ## License
59
59
 
60
60
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
61
+
62
+ # Releasing
63
+
64
+ To publish a new version to rubygems, update the version in `lib/activejob/traceable/version.rb`, and merge.
@@ -37,8 +37,8 @@ module ActiveJob
37
37
  def add_telemetry_data!
38
38
  if ENV["OTEL_EXPORTER_OTLP_ENDPOINT"].present?
39
39
  current_span = OpenTelemetry::Trace.current_span
40
- @tracing_info[:trace_id] = current_span.context.trace_id.unpack1("H*")
41
- @tracing_info[:span_id] = current_span.context.span_id.unpack1("H*")
40
+ @tracing_info["trace_id"] = current_span.context.trace_id.unpack1("H*")
41
+ @tracing_info["span_id"] = current_span.context.span_id.unpack1("H*")
42
42
  end
43
43
  end
44
44
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveJob
4
4
  module Traceable
5
- VERSION = '0.4.0'
5
+ VERSION = '0.4.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activejob-traceable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Qonto team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-05 00:00:00.000000000 Z
11
+ date: 2023-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob