Skip to content

Commit

Permalink
Properly verify presence of release date
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Aug 23, 2016
1 parent ad91e60 commit 27361d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/release
Expand Up @@ -37,10 +37,11 @@ end
puts

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

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

0 comments on commit 27361d5

Please sign in to comment.