File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 66
77source 'https://rubygems.org'
88
9+ # Due to a bug in Dependabot Core, we cannot update instrumentation gems because
10+ # they reference each other using local paths in their Gemfiles.
11+ #
12+ # This list of gems will be tracked and updated by Dependabot and we can then update them manually
13+ # bin/update-dependencies <gem-name> <new-version>
14+ gem 'opentelemetry-api' , '~> 1.7'
15+ gem 'opentelemetry-common' , '~> 0.21'
16+ gem 'opentelemetry-registry' , '~> 0.1'
17+ gem 'opentelemetry-sdk' , '~> 1.1'
18+
919gem 'rake' , '~> 13.0'
1020gem 'rubocop' , '~> 1.81.1'
1121gem 'rubocop-performance' , '~> 1.26.0'
Original file line number Diff line number Diff line change 1010
1111for file in $( git ls-files \* Gemfile \* .gemspec)
1212do
13- sed -i -E " s/'$1 ', '~> [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+'/'$1 ', '~> $2 '/" " $file "
13+ # Portable sed -i for both macOS (BSD) and Linux (GNU)
14+ if [[ " $OSTYPE " == " darwin" * ]]; then
15+ # macOS requires an extension argument (use '' for no backup)
16+ sed -i ' ' -E " s/'$1 ', '~> [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+'/'$1 ', '~> $2 '/" " $file "
17+ else
18+ # Linux doesn't require an extension argument
19+ sed -i -E " s/'$1 ', '~> [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+'/'$1 ', '~> $2 '/" " $file "
20+ fi
1421done
1522
1623echo " Review your changes and commit"
You can’t perform that action at this time.
0 commit comments