add changelog
This commit is contained in:
1 parent
6160246da0
commit
e1c2946718
2 files changed
+30
No files matched your search
@@ -0,0 +1,11 @@
|
|||||||
|
0.26.1 12/05/2011 6160246da0fafe9cf8fde188d94bbc6babc667dc
|
||||||
|
==========================================================
|
||||||
|
|
||||||
|
Merge pull request #103 from csquared/load_env_from_irb [David Dollar]
|
||||||
|
refactor load_env to apply_environment [Chris Continanza]
|
||||||
|
rename load! to load_env! [Chris Continanza]
|
||||||
|
use ./.env as default [Chris Continanza]
|
||||||
|
load contents from env file [Chris Continanza]
|
||||||
|
refactor engine to expose env methods [Chris Continanza]
|
||||||
|
disable email notifications [David Dollar]
|
||||||
|
add travis config [David Dollar]
|
||||||
@@ -166,3 +166,22 @@ end
|
|||||||
Dir[File.expand_path("../dist/**/*.rake", __FILE__)].each do |rake|
|
Dir[File.expand_path("../dist/**/*.rake", __FILE__)].each do |rake|
|
||||||
import rake
|
import rake
|
||||||
end
|
end
|
||||||
|
|
||||||
|
task :changelog do
|
||||||
|
timestamp = Time.now.utc.strftime('%m/%d/%Y')
|
||||||
|
sha = `git log | head -1`.split(' ').last
|
||||||
|
changelog = ["#{version} #{timestamp} #{sha}"]
|
||||||
|
changelog << ('=' * changelog[0].length)
|
||||||
|
changelog << ''
|
||||||
|
|
||||||
|
last_sha = `cat Changelog | head -1`.split(' ').last
|
||||||
|
shortlog = `git log #{last_sha}..HEAD --pretty=format:'%s [%an]'`
|
||||||
|
changelog << shortlog.split("\n")
|
||||||
|
changelog.concat ['', '', '']
|
||||||
|
|
||||||
|
old_changelog = File.read('Changelog')
|
||||||
|
File.open('Changelog', 'w') do |file|
|
||||||
|
file.write(changelog.join("\n"))
|
||||||
|
file.write(old_changelog)
|
||||||
|
end
|
||||||
|
end
|
||||||
Reference in new issue
Block a user