lib/release_notes/generators/broadcast.rb in release_notes-0.2.1 vs lib/release_notes/generators/broadcast.rb in release_notes-0.3.3

- old
+ new

@@ -13,10 +13,16 @@ source_root File.expand_path('../../../generators/templates', __FILE__) def set_local_assigns @subject = subject @body = body - @release_note_version = release_note_version.gsub('.', '_') + + if release_note_version != "" + @release_note_version = release_note_version.gsub('.', '_') + else + @release_note_version = nil + end + @broadcast_template = 'broadcast_blank.md' @destination = File.expand_path(destination) end def create_directory \ No newline at end of file