diff --git a/.instrumentation_generator/instrumentation_generator.rb b/.instrumentation_generator/instrumentation_generator.rb index f47b24c946..7b4fcd306a 100755 --- a/.instrumentation_generator/instrumentation_generator.rb +++ b/.instrumentation_generator/instrumentation_generator.rb @@ -55,6 +55,16 @@ def add_to_releases insert_into_file('.toys/.data/releases.yml', release_details, after: "gems:\n") end + def add_to_component_owners + release_details = <<-HEREDOC + instrumentation/#{instrumentation_gem_name}: + # TODO: Add your GitHub username + # - (your github username) + HEREDOC + + insert_into_file('.github/component_owners.yml', release_details, after: "components:\n") + end + def add_to_instrumentation_all instrumentation_all_path = 'instrumentation/all' gemfile_text = "\ngem '#{instrumentation_gem_name}', path: '../#{instrumentation_name}'" diff --git a/.instrumentation_generator/templates/gemspec.tt b/.instrumentation_generator/templates/gemspec.tt index aff38fb780..e35db7fa9f 100644 --- a/.instrumentation_generator/templates/gemspec.tt +++ b/.instrumentation_generator/templates/gemspec.tt @@ -23,7 +23,7 @@ Gem::Specification.new do |spec| Dir.glob('*.md') + ['LICENSE', '.yardopts'] spec.require_paths = ['lib'] - spec.required_ruby_version = ">= #{File.read(File.expand_path('../../gemspecs/RUBY_REQUIREMENT', __dir__))}" + spec.required_ruby_version = ">= 3.2" spec.add_dependency 'opentelemetry-instrumentation-base', '~> <%= instrumentation_base_version %>' diff --git a/bin/instrumentation_generator b/bin/instrumentation_generator index 0efe29c72e..36a49e072d 100755 --- a/bin/instrumentation_generator +++ b/bin/instrumentation_generator @@ -6,7 +6,7 @@ puts <<-EOF 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 - WARNING: Your gem will *NOT* be tested until you add it to the CI workflows in `.github/workflows/ci.yml`!! + WARNING: Your gem will *NOT* be tested until you add it to the CI workflows in `.github/workflows/ci-contrib.yml`!! We use path filters to control what tests are run, so take a look at the available workflows to find the best fit. 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨