Skip to content

Commit 4192943

Browse files
authored
refactor: update gem path env, remove 'puts' (#2)
1 parent 6464f4e commit 4192943

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
150150
# Set environment variables
151151
echo "RUBYOPT=-r$(pwd)/${{ matrix.ruby-version }}/index.rb" >> $GITHUB_ENV
152-
echo "ADDITIONAL_GEM_PATH=$(pwd)/${{ matrix.ruby-version }}/bundle" >> $GITHUB_ENV
152+
echo "ODIGOS_GEM_PATH=$(pwd)/${{ matrix.ruby-version }}/bundle" >> $GITHUB_ENV
153153
echo "OTEL_SERVICE_NAME=${{ env.SERVICE_NAME }}" >> $GITHUB_ENV
154154
echo "OTEL_TRACES_EXPORTER=otlp" >> $GITHUB_ENV
155155
echo "OTEL_METRICS_EXPORTER=none" >> $GITHUB_ENV

index.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ def require_otel
3434
end
3535
end
3636

37-
additional_gem_path = ENV['ADDITIONAL_GEM_PATH'] || Gem.dir
38-
puts "Loading additional gems from path: #{additional_gem_path}"
39-
Dir.glob("#{additional_gem_path}/gems/*").each do |file|
37+
gem_path = ENV['ODIGOS_GEM_PATH'] || Gem.dir
38+
Dir.glob("#{gem_path}/gems/*").each do |file|
4039
$LOAD_PATH.unshift("#{file}/lib")
4140
end
4241

0 commit comments

Comments
 (0)