heroku_release 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/heroku_release/version.rb +1 -1
- data/lib/heroku_release.rb +13 -9
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
# 0.2.2 (Sep 27 2011)
|
4
|
+
|
5
|
+
* Bugfix: the optional writing of the version file and updating of the changelog now happens before the tag is created. This makes sense of course since when you check out the tag you expect the changelog and version files to reflect the tag. Also, before this change, the release commit would commit the list you get when you do heroku_release:pending.
|
6
|
+
|
3
7
|
# 0.2.0 (Sep 23 2011)
|
4
8
|
|
5
9
|
* When doing a release, now instead of polluting the git log with two commits (for changelog and version file) we now do a single commit. We also make sure that commit has an informative comment containing the tag comment.
|
data/Gemfile.lock
CHANGED
data/lib/heroku_release.rb
CHANGED
@@ -36,16 +36,22 @@ module HerokuRelease
|
|
36
36
|
release_name = get_release_name
|
37
37
|
quoted_tag_comment = single_quote(tag_comment)
|
38
38
|
|
39
|
+
if config.version_file_path || config.changelog_path
|
40
|
+
if config.version_file_path
|
41
|
+
output "Updating version file at #{config.version_file_path}"
|
42
|
+
update_version_file(release_name)
|
43
|
+
end
|
44
|
+
if config.changelog_path
|
45
|
+
output "Updating #{config.changelog_path}"
|
46
|
+
update_changelog
|
47
|
+
end
|
48
|
+
commit(release_name, quoted_tag_comment)
|
49
|
+
end
|
50
|
+
|
39
51
|
output "Tagging release as '#{release_name}'"
|
40
52
|
execute "git tag -a #{release_name} -m '#{quoted_tag_comment}'"
|
41
53
|
execute "git push --tags origin"
|
42
54
|
execute "git push --tags #{config.heroku_remote}"
|
43
|
-
|
44
|
-
if config.version_file_path || config.changelog_path
|
45
|
-
update_version_file(release_name) if config.version_file_path
|
46
|
-
update_changelog if config.changelog_path
|
47
|
-
commit(release_name, quoted_tag_comment)
|
48
|
-
end
|
49
55
|
end
|
50
56
|
|
51
57
|
def log
|
@@ -75,7 +81,7 @@ module HerokuRelease
|
|
75
81
|
if previous
|
76
82
|
output "Rolling back to '#{previous}' ..."
|
77
83
|
execute "git push -f #{config.heroku_remote} #{previous}:master"
|
78
|
-
output "
|
84
|
+
output "Removing rolled back release tag '#{current}' ..."
|
79
85
|
remove_tag(current)
|
80
86
|
output 'Rollback completed'
|
81
87
|
else
|
@@ -131,13 +137,11 @@ module HerokuRelease
|
|
131
137
|
end
|
132
138
|
|
133
139
|
def update_version_file(release_name)
|
134
|
-
output "Committing version file for release #{release_name}"
|
135
140
|
File.open(config.version_file_path, "w") { |f| f.print release_name }
|
136
141
|
execute "git add #{config.version_file_path}"
|
137
142
|
end
|
138
143
|
|
139
144
|
def update_changelog
|
140
|
-
output "Committing #{config.changelog_path}"
|
141
145
|
write_changelog
|
142
146
|
execute "git add #{config.changelog_path}"
|
143
147
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: heroku_release
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Peter Marklund
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-09-
|
13
|
+
date: 2011-09-27 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -82,7 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
82
82
|
requirements:
|
83
83
|
- - ">="
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
hash:
|
85
|
+
hash: -2783281116986717283
|
86
86
|
segments:
|
87
87
|
- 0
|
88
88
|
version: "0"
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
requirements:
|
92
92
|
- - ">="
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
hash:
|
94
|
+
hash: -2783281116986717283
|
95
95
|
segments:
|
96
96
|
- 0
|
97
97
|
version: "0"
|