diff --git a/0001-fix-gemspec-metadata-for-changelog-notes.patch b/0001-fix-gemspec-metadata-for-changelog-notes.patch new file mode 100644 index 0000000000000000000000000000000000000000..2048f199b6c3898af07c25489702d83c3d06b745 --- /dev/null +++ b/0001-fix-gemspec-metadata-for-changelog-notes.patch @@ -0,0 +1,25 @@ +From 48bc5a6c8caf9f57308cd6ea19d2728b08e67bbd Mon Sep 17 00:00:00 2001 +From: Olle Jonsson +Date: Mon, 1 Nov 2021 10:44:17 +0100 +Subject: [PATCH] fix: gemspec metadata for changelog notes + +This becomes e.g. https://github.com/lostisland/faraday-net_http/releases/tag/v1.0.1 and is used in the RubyGems sidebar. +--- + faraday-net_http.gemspec | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/faraday-net_http.gemspec b/faraday-net_http.gemspec +index b7ea079..05c060b 100644 +--- a/faraday-net_http.gemspec ++++ b/faraday-net_http.gemspec +@@ -19,7 +19,7 @@ Gem::Specification.new do |spec| + + spec.metadata['homepage_uri'] = spec.homepage + spec.metadata['source_code_uri'] = 'https://github.com/lostisland/faraday-net_http' +- spec.metadata['changelog_uri'] = 'https://github.com/lostisland/faraday-net_http' ++ spec.metadata['changelog_uri'] = "https://github.com/lostisland/faraday-net_http/releases/tag/v#{spec.version}" + + spec.files = Dir.glob('lib/**/*') + %w[README.md LICENSE.md] + spec.require_paths = ['lib'] +-- +2.33.0 \ No newline at end of file diff --git a/rubygem-faraday-net_http.spec b/rubygem-faraday-net_http.spec index 07eceb79b9ba4f4661f36b5eb3d10df8590588d2..791b3e728bdc4ebc69095c89069513c5a08b4a57 100644 --- a/rubygem-faraday-net_http.spec +++ b/rubygem-faraday-net_http.spec @@ -2,11 +2,14 @@ %global gem_name faraday-net_http Name: rubygem-faraday-net_http Version: 1.0.1 -Release: 1 +Release: 2 Summary: Faraday adapter for Net::HTTP License: MIT URL: https://github.com/lostisland/faraday-net_http Source0: https://rubygems.org/gems/faraday-net_http-1.0.1.gem + +Patch0: 0001-fix-gemspec-metadata-for-changelog-notes.patch + BuildArch: noarch BuildRequires: ruby @@ -28,7 +31,7 @@ BuildArch: noarch Faraday adapter for Net::HTTP %prep -%autosetup -n faraday-net_http-1.0.1 +%autosetup -n faraday-net_http-1.0.1 -p1 gem spec %{SOURCE0} -l --ruby > faraday-net_http.gemspec %build @@ -69,5 +72,8 @@ fi %{gem_docdir}/* %changelog +* Fri Nov 15 2024 shilei1 - 1.0.1-2 +- fix: gemspec metadata for changelog notes + * Tue Aug 17 2021 baizhonggui - 1.0.1-1 - Package init