release_tagger 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/release_tagger.rb +12 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b097254542e2fc3d1a364a7862242f6b0c090dd
|
4
|
+
data.tar.gz: f2aded664428fda3dee0e887c8b29ccfee07f590
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dcb31c9eab4e9df7241ce1bb546f520c2da0eaac9689d213638d3c22d72eb7c9371da0d8d0b5cf8adeafc03959cb7b38c65beccff76bd0885720c7e1366e843
|
7
|
+
data.tar.gz: b41b19afd2395f9f15086c1cdf08929324530115a7b75cab8a83e649703d48ed5a1bf5f952fb9f84094e91adfde687a1aeb6eb397dbd4acfa8847b016831d1e5
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/lib/release_tagger.rb
CHANGED
@@ -149,8 +149,17 @@ module ReleaseTagger
|
|
149
149
|
exit 1
|
150
150
|
end
|
151
151
|
|
152
|
-
log "Adding release tag"
|
153
152
|
commits = changelog
|
153
|
+
|
154
|
+
log "Creating release commit"
|
155
|
+
commit_output = %x{git commit --allow-empty -m "#{release_message(new_version)}\n\n#{commits}" 2>&1}
|
156
|
+
unless $?.success?
|
157
|
+
err "Error committing release"
|
158
|
+
err commit_output
|
159
|
+
exit 1
|
160
|
+
end
|
161
|
+
|
162
|
+
log "Adding release tag"
|
154
163
|
tag_output = %x{git tag -a #{new_version}#{release_tag} -m "#{release_message(new_version)}\n\n#{commits}" 2>&1}
|
155
164
|
unless $?.success?
|
156
165
|
err "Error adding version tag #{new_version}#{release_tag}:"
|
@@ -158,10 +167,10 @@ module ReleaseTagger
|
|
158
167
|
exit 1
|
159
168
|
end
|
160
169
|
|
161
|
-
log "Pushing
|
170
|
+
log "Pushing release to origin"
|
162
171
|
# Separate `push` and `push --tags` here, because only relatively recent
|
163
172
|
# versions of git push both refs and tags with the single command.
|
164
|
-
push_output = %x{git push --tags 2>&1}
|
173
|
+
push_output = %x{git push && git push --tags 2>&1}
|
165
174
|
unless $?.success?
|
166
175
|
err "Error pushing release tag to origin:"
|
167
176
|
err push_output
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: release_tagger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Coffey
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-10-
|
12
|
+
date: 2015-10-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|