Skip to content

Commit

Permalink
Improve registry rake task. (#634)
Browse files Browse the repository at this point in the history
* fix: Registry rake task will raise if repo is blank.

* fix: Add source_code_uri to Rails instrumentation gemspec.

Co-authored-by: Francis Bogsanyi <[email protected]>
  • Loading branch information
fhwang and fbogsany authored Mar 3, 2021
1 parent ccfd3d1 commit a44514d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'webmock', '~> 3.7.6'
spec.add_development_dependency 'yard', '~> 0.9'
spec.add_development_dependency 'yard-doctest', '~> 0.1.6'

spec.metadata['source_code_uri'] = 'https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/rails' if spec.respond_to?(:metadata)
end
1 change: 1 addition & 0 deletions rakelib/update_registry_instrumentation.rake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ TEMPLATE
raise "Could not infer Title from gem spec summary #{gem_specification.summary}"
end
repo = gem_specification.metadata['source_code_uri']
raise "Could not find repo for #{gem_specification.name}" unless repo
gem_specification.description =~ /^.* instrumentation/
description = $& + " for Ruby."

Expand Down

0 comments on commit a44514d

Please sign in to comment.