summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2020-06-25 01:31:45 -0400
committerMarc-Andre Lafortune <github@marc-andre.ca>2020-06-25 01:33:03 -0400
commit90678ed484131b6efa032f67d7ed06c6fa2106a9 (patch)
tree1f6934f077c4cbe48c77b16063e0409b7487f212
parentfb6eefed8ecfda0bac0640e07f0daa85eed259d3 (diff)
downloadjson-90678ed484131b6efa032f67d7ed06c6fa2106a9.tar.gz
Add comment that gemspec is generated automatically
-rw-r--r--Rakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 12938c7..fed7f8e 100644
--- a/Rakefile
+++ b/Rakefile
@@ -106,7 +106,10 @@ if defined?(Gem) and defined?(Gem::PackageTask)
desc 'Creates a json_pure.gemspec file'
task :gemspec_pure => :version do
File.open('json_pure.gemspec', 'w') do |gemspec|
- gemspec.write spec_pure.to_ruby
+ src = spec_pure.to_ruby
+ src.gsub!(/# stub:.*/, "# This gemspec is generated automatically using `rake gemspec`.\n" \
+ "# Do not modify directly.")
+ gemspec.write src
end
end