diff options
author | Marc-Andre Lafortune <github@marc-andre.ca> | 2020-06-25 01:31:45 -0400 |
---|---|---|
committer | Marc-Andre Lafortune <github@marc-andre.ca> | 2020-06-25 01:33:03 -0400 |
commit | 90678ed484131b6efa032f67d7ed06c6fa2106a9 (patch) | |
tree | 1f6934f077c4cbe48c77b16063e0409b7487f212 | |
parent | fb6eefed8ecfda0bac0640e07f0daa85eed259d3 (diff) | |
download | json-90678ed484131b6efa032f67d7ed06c6fa2106a9.tar.gz |
Add comment that gemspec is generated automatically
-rw-r--r-- | Rakefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |