From ec8a4a1d11d73d4127f9cf73613bfb414d06fe45 Mon Sep 17 00:00:00 2001 From: Ivan Kuchin Date: Sat, 6 Jul 2024 15:05:42 +0200 Subject: [PATCH] don't set metadata when gemspec doesn't support it --- image_size.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_size.gemspec b/image_size.gemspec index fab8e65..6ba6f79 100644 --- a/image_size.gemspec +++ b/image_size.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |s| 'changelog_uri' => "https://github.com/toy/#{s.name}/blob/master/CHANGELOG.markdown", 'documentation_uri' => "https://www.rubydoc.info/gems/#{s.name}/#{s.version}", 'source_code_uri' => "https://github.com/toy/#{s.name}", - } + } if s.respond_to?(:metadata=) s.files = `git ls-files`.split("\n") s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")