diff --git a/.instrumentation_generator/instrumentation_generator.rb b/.instrumentation_generator/instrumentation_generator.rb index 2f8b53066..b488567da 100644 --- a/.instrumentation_generator/instrumentation_generator.rb +++ b/.instrumentation_generator/instrumentation_generator.rb @@ -61,7 +61,7 @@ def add_to_instrumentation_all insert_into_file("#{instrumentation_all_path}/Gemfile", gemfile_text, after: "gemspec\n") gemspec_text = "\n spec.add_dependency '#{instrumentation_gem_name}', '~> 0.0.0'" - insert_into_file("#{instrumentation_all_path}/opentelemetry-instrumentation-all.gemspec", gemspec_text, after: "spec.required_ruby_version = '>= 3.0' + insert_into_file("#{instrumentation_all_path}/opentelemetry-instrumentation-all.gemspec", gemspec_text, after: "spec.required_ruby_version = '>= 3.0'\n") all_rb_text = "\nrequire '#{instrumentation_gem_name}'" insert_into_file("#{instrumentation_all_path}/lib/opentelemetry/instrumentation/all.rb", all_rb_text, after: "# SPDX-License-Identifier: Apache-2.0\n")