Skip to content

Commit

Permalink
Add prerelease task to check version conflicts in Changelog and lib.
Browse files Browse the repository at this point in the history
  • Loading branch information
janfri committed Jul 29, 2011
1 parent fd898e5 commit cb38fda
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Rakefile
Expand Up @@ -15,4 +15,11 @@ Echoe.new('mini_exiftool') do |p|
+-----------------------------------------------------------------------+
}
p.changelog = 'Changelog'
task :prerelease do
require "#{File.dirname(__FILE__)}/lib/mini_exiftool"
unless p.version == MiniExiftool::VERSION
$stderr.puts "Version conflict: Release version is #{p.version} but MiniExiftool::VERSION is #{MiniExiftool::VERSION}."
exit(1)
end
end
end

0 comments on commit cb38fda

Please sign in to comment.