Skip to content

Commit

Permalink
Drop VERSION file
Browse files Browse the repository at this point in the history
Previously the version was in two places: VERSION and safemode.gemspec.
This reads the version from via Rubygems and drops the separate VERSION
file.

cb98c86 already forgot to update the
file and made it go out of sync.

Fixes: cb98c86
  • Loading branch information
ekohl committed Aug 31, 2022
1 parent d560010 commit 02ad51a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ task :default => :test

require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
version = Gem::Specification.find_by_name('safemode').version

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "safemode #{version}"
Expand Down
1 change: 0 additions & 1 deletion safemode.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Gem::Specification.new do |s|
"LICENSE",
"README.markdown",
"Rakefile",
"VERSION",
"demo.rb",
"init.rb",
"lib/action_view/template_handlers/safe_erb.rb",
Expand Down

0 comments on commit 02ad51a

Please sign in to comment.