Skip to content

Commit

Permalink
Verify presence of release date in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Aug 23, 2016
1 parent 616a491 commit ad91e60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/release
Expand Up @@ -36,6 +36,12 @@ Dir['*.gem'].each do |fn|
end
puts

puts '=== Verifying presence of release date…'
unless File.readlines('NEWS.md').drop(3).first =~ /\d{4}-\d{2}-\d{2}$/
$stderr.puts 'No proper release date found!'
exit 1
end

puts '=== Building new gem…'
run('gem', 'build', 'nanoc.gemspec')
puts
Expand Down

0 comments on commit ad91e60

Please sign in to comment.