Remove fields from gemspec that should not be set (#1811)

This commit is contained in:
mishina
2022-03-23 21:27:54 +09:00
committed by GitHub
parent 4b2dc8e5c0
commit ecc317886a
2 changed files with 1 additions and 16 deletions
+1 -13
View File
@@ -1,6 +1,5 @@
require 'rubygems'
require 'rake'
require 'date'
#############################################################################
#
@@ -38,14 +37,6 @@ def bump_version
new_version
end
def date
Date.today.to_s
end
def rubyforge_project
name
end
def gemspec_file
"#{name}.gemspec"
end
@@ -143,12 +134,9 @@ task :gemspec => :validate do
spec = File.read(gemspec_file)
head, manifest, tail = spec.split(" # = MANIFEST =\n")
# replace name version and date
# replace name and version
replace_header(head, :name)
replace_header(head, :version)
replace_header(head, :date)
#comment this out if your rubyforge_project has a different name
replace_header(head, :rubyforge_project)
# determine file list from git ls-files
files = `git ls-files`.