Skip to content

Commit

Permalink
Make links more specific in gemspecs (#2311)
Browse files Browse the repository at this point in the history
* Make links in `sentry-rails` gemspec more accurate

1. Add subdir with the gem.
2. Add specific version.

* Tranform gemspec metadata to a single Hash for `sentry-rails`

* Add bug tracker and documentation links into `sentry-rails` gemspec

* Make the same URI changes for `sentry-ruby` gemspec

* Make the same URI changes for `sentry-sidekiq` gemspec

* Make the same URI changes for `sentry-rescue` gemspec

* Make the same URI changes for `sentry-opentelemetry` gemspec

* Make the same URI changes for `sentry-delayed_job` gemspec

* fix changelogs

---------

Co-authored-by: Neel Shah <neel.shah@sentry.io>
  • Loading branch information
AlexWayfer and sl0thentr0py authored Jul 10, 2024
1 parent 90edcb8 commit 36866c5
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 24 deletions.
14 changes: 10 additions & 4 deletions sentry-delayed_job/sentry-delayed_job.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,22 @@ Gem::Specification.new do |spec|
spec.description = spec.summary = "A gem that provides DelayedJob integration for the Sentry error logger"
spec.email = "accounts@sentry.io"
spec.license = 'MIT'
spec.homepage = "https://github.com/getsentry/sentry-ruby"

spec.platform = Gem::Platform::RUBY
spec.required_ruby_version = '>= 2.4'
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples)'`.split("\n")

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
github_root_uri = 'https://github.com/getsentry/sentry-ruby'
spec.homepage = "#{github_root_uri}/tree/#{spec.version}/#{spec.name}"

spec.metadata = {
"homepage_uri" => spec.homepage,
"source_code_uri" => spec.homepage,
"changelog_uri" => "#{github_root_uri}/blob/#{spec.version}/CHANGELOG.md",
"bug_tracker_uri" => "#{github_root_uri}/issues",
"documentation_uri" => "http://www.rubydoc.info/gems/#{spec.name}/#{spec.version}"
}

spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
Expand Down
14 changes: 10 additions & 4 deletions sentry-opentelemetry/sentry-opentelemetry.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,22 @@ Gem::Specification.new do |spec|
spec.description = spec.summary = "A gem that provides OpenTelemetry integration for the Sentry error logger"
spec.email = "accounts@sentry.io"
spec.license = 'MIT'
spec.homepage = "https://github.com/getsentry/sentry-ruby"

spec.platform = Gem::Platform::RUBY
spec.required_ruby_version = '>= 2.4'
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples)'`.split("\n")

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
github_root_uri = 'https://github.com/getsentry/sentry-ruby'
spec.homepage = "#{github_root_uri}/tree/#{spec.version}/#{spec.name}"

spec.metadata = {
"homepage_uri" => spec.homepage,
"source_code_uri" => spec.homepage,
"changelog_uri" => "#{github_root_uri}/blob/#{spec.version}/CHANGELOG.md",
"bug_tracker_uri" => "#{github_root_uri}/issues",
"documentation_uri" => "http://www.rubydoc.info/gems/#{spec.name}/#{spec.version}"
}

spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
Expand Down
14 changes: 10 additions & 4 deletions sentry-rails/sentry-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,22 @@ Gem::Specification.new do |spec|
spec.description = spec.summary = "A gem that provides Rails integration for the Sentry error logger"
spec.email = "accounts@sentry.io"
spec.license = 'MIT'
spec.homepage = "https://github.com/getsentry/sentry-ruby"

spec.platform = Gem::Platform::RUBY
spec.required_ruby_version = '>= 2.4'
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples)'`.split("\n")

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
github_root_uri = 'https://github.com/getsentry/sentry-ruby'
spec.homepage = "#{github_root_uri}/tree/#{spec.version}/#{spec.name}"

spec.metadata = {
"homepage_uri" => spec.homepage,
"source_code_uri" => spec.homepage,
"changelog_uri" => "#{github_root_uri}/blob/#{spec.version}/CHANGELOG.md",
"bug_tracker_uri" => "#{github_root_uri}/issues",
"documentation_uri" => "http://www.rubydoc.info/gems/#{spec.name}/#{spec.version}"
}

spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
Expand Down
14 changes: 10 additions & 4 deletions sentry-resque/sentry-resque.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,22 @@ Gem::Specification.new do |spec|
spec.description = spec.summary = "A gem that provides Resque integration for the Sentry error logger"
spec.email = "accounts@sentry.io"
spec.license = 'MIT'
spec.homepage = "https://github.com/getsentry/sentry-ruby"

spec.platform = Gem::Platform::RUBY
spec.required_ruby_version = '>= 2.4'
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples)'`.split("\n")

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
github_root_uri = 'https://github.com/getsentry/sentry-ruby'
spec.homepage = "#{github_root_uri}/tree/#{spec.version}/#{spec.name}"

spec.metadata = {
"homepage_uri" => spec.homepage,
"source_code_uri" => spec.homepage,
"changelog_uri" => "#{github_root_uri}/blob/#{spec.version}/CHANGELOG.md",
"bug_tracker_uri" => "#{github_root_uri}/issues",
"documentation_uri" => "http://www.rubydoc.info/gems/#{spec.name}/#{spec.version}"
}

spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
Expand Down
14 changes: 10 additions & 4 deletions sentry-ruby/sentry-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,22 @@ Gem::Specification.new do |spec|
spec.description = spec.summary = "A gem that provides a client interface for the Sentry error logger"
spec.email = "accounts@sentry.io"
spec.license = 'MIT'
spec.homepage = "https://github.com/getsentry/sentry-ruby"

spec.platform = Gem::Platform::RUBY
spec.required_ruby_version = '>= 2.4'
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples)'`.split("\n")

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
github_root_uri = 'https://github.com/getsentry/sentry-ruby'
spec.homepage = "#{github_root_uri}/tree/#{spec.version}/#{spec.name}"

spec.metadata = {
"homepage_uri" => spec.homepage,
"source_code_uri" => spec.homepage,
"changelog_uri" => "#{github_root_uri}/blob/#{spec.version}/CHANGELOG.md",
"bug_tracker_uri" => "#{github_root_uri}/issues",
"documentation_uri" => "http://www.rubydoc.info/gems/#{spec.name}/#{spec.version}"
}

spec.require_paths = ["lib"]

Expand Down
14 changes: 10 additions & 4 deletions sentry-sidekiq/sentry-sidekiq.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,22 @@ Gem::Specification.new do |spec|
spec.description = spec.summary = "A gem that provides Sidekiq integration for the Sentry error logger"
spec.email = "accounts@sentry.io"
spec.license = 'MIT'
spec.homepage = "https://github.com/getsentry/sentry-ruby"

spec.platform = Gem::Platform::RUBY
spec.required_ruby_version = '>= 2.4'
spec.extra_rdoc_files = ["README.md", "LICENSE.txt"]
spec.files = `git ls-files | grep -Ev '^(spec|benchmarks|examples)'`.split("\n")

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
github_root_uri = 'https://github.com/getsentry/sentry-ruby'
spec.homepage = "#{github_root_uri}/tree/#{spec.version}/#{spec.name}"

spec.metadata = {
"homepage_uri" => spec.homepage,
"source_code_uri" => spec.homepage,
"changelog_uri" => "#{github_root_uri}/blob/#{spec.version}/CHANGELOG.md",
"bug_tracker_uri" => "#{github_root_uri}/issues",
"documentation_uri" => "http://www.rubydoc.info/gems/#{spec.name}/#{spec.version}"
}

spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
Expand Down

0 comments on commit 36866c5

Please sign in to comment.