From 677d89cb362ffe41625057b2f324e32a0eed0e08 Mon Sep 17 00:00:00 2001 From: Eloy Perez Date: Mon, 28 Dec 2020 14:43:08 +0100 Subject: [PATCH 1/3] Remove unused variable --- sinatra.gemspec | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sinatra.gemspec b/sinatra.gemspec index db5e10134d..9fbd066b4d 100644 --- a/sinatra.gemspec +++ b/sinatra.gemspec @@ -33,11 +33,6 @@ Gem::Specification.new 'sinatra', version do |s| 'documentation_uri' => 'https://www.rubydoc.info/gems/sinatra' } else - msg = "RubyGems 2.0 or newer is required to protect against public "\ - "gem pushes. You can update your rubygems version by running:\n\n"\ - "gem install rubygems-update\n"\ - "update_rubygems\n"\ - "gem update --system" raise <<-EOF RubyGems 2.0 or newer is required to protect against public gem pushes. You can update your rubygems version by running: gem install rubygems-update From 9fbb02d492f8d5ad44df6c520bed11db28ab4ec7 Mon Sep 17 00:00:00 2001 From: Eloy Perez Date: Mon, 28 Dec 2020 14:43:30 +0100 Subject: [PATCH 2/3] Remove RDoc `--inline-source` option as is the default behaviour --- sinatra.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sinatra.gemspec b/sinatra.gemspec index 9fbd066b4d..2385e4c46a 100644 --- a/sinatra.gemspec +++ b/sinatra.gemspec @@ -21,7 +21,7 @@ Gem::Specification.new 'sinatra', version do |s| "VERSION"] s.test_files = s.files.select { |p| p =~ /^test\/.*_test.rb/ } s.extra_rdoc_files = s.files.select { |p| p =~ /^README/ } << 'LICENSE' - s.rdoc_options = %w[--line-numbers --inline-source --title Sinatra --main README.rdoc --encoding=UTF-8] + s.rdoc_options = %w[--line-numbers --title Sinatra --main README.rdoc --encoding=UTF-8] if s.respond_to?(:metadata) s.metadata = { From 2041c4697a6fb988126d4000f0b924fd02abbbbe Mon Sep 17 00:00:00 2001 From: Eloy Perez Date: Mon, 28 Dec 2020 14:44:25 +0100 Subject: [PATCH 3/3] Only add the english README when generating RDoc --- sinatra.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sinatra.gemspec b/sinatra.gemspec index 2385e4c46a..93a22ae4b5 100644 --- a/sinatra.gemspec +++ b/sinatra.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new 'sinatra', version do |s| "sinatra.gemspec", "VERSION"] s.test_files = s.files.select { |p| p =~ /^test\/.*_test.rb/ } - s.extra_rdoc_files = s.files.select { |p| p =~ /^README/ } << 'LICENSE' + s.extra_rdoc_files = %w[README.md LICENSE] s.rdoc_options = %w[--line-numbers --title Sinatra --main README.rdoc --encoding=UTF-8] if s.respond_to?(:metadata)