Sha256: 5d287ceb1413c8a04af4669a791b48d6cf78b397e72cdd38ab958adc4281a083
Contents?: true
Size: 683 Bytes
Versions: 1
Compression:
Stored size: 683 Bytes
Contents
require 'debsacker/system_gateway' require 'date' module Debsacker module Package class Changelog attr_writer :project_name, :author def project_name @project_name || File.basename(Dir.pwd) end def author @author || 'Made by debsacker <info@example.com>' end def lines(version) comment = Debsacker::SystemGateway.perform('git --no-pager log -1 --oneline') date = DateTime.now.strftime('%a, %e %b %Y %T %z') [ "#{ project_name } (#{ version }) stable; urgency=medium", " * #{ comment }", " -- Made by #{ author } #{ date }" ] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
debsacker-0.1.3 | lib/debsacker/package/changelog.rb |