releasinator 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/releasinator/version.rb +1 -1
- data/lib/tasks/releasinator.rake +5 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab00cae0a63186d6b3e84eb7ce327e61b782d020
|
4
|
+
data.tar.gz: 73351d0123b24a2b6ba7fde3551264df93721a3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f754981496e5bef65d1ea26a1423fbac25649197bac297f72c6c87316055d69999a5942892454bdd4a9d01d4fac52a702bb62a020ff32e46d2ab2aa7cfdd223e
|
7
|
+
data.tar.gz: 94bc361bbd760291cd451a8965293ce7db5b94e20daa10a25c183f533d758e0519af9abff8a620c33144f5c20b8f192e1ec2bad3c6a131da6236f7feed63bf82
|
data/CHANGELOG.md
CHANGED
data/lib/releasinator/version.rb
CHANGED
data/lib/tasks/releasinator.rake
CHANGED
@@ -174,12 +174,13 @@ end
|
|
174
174
|
|
175
175
|
desc "release all"
|
176
176
|
task :release => [:"validate:all"] do
|
177
|
-
|
177
|
+
last_tag_raw = GitUtil.tagged_versions(remote=true, raw_tags=true).last
|
178
178
|
|
179
|
-
if !
|
180
|
-
commits_since_tag = GitUtil.commits(
|
179
|
+
if !last_tag_raw.nil? # If last tag is nil, at this point, there must be changelog entry, but this is the first releasinator release, proceed.
|
180
|
+
commits_since_tag = GitUtil.commits(last_tag_raw)
|
181
|
+
last_tag = Semantic::Version.new(GitUtil.tagged_versions(remote=true).last)
|
181
182
|
if commits_since_tag.size > 0 # There are new commits to be released
|
182
|
-
if @current_release.version >
|
183
|
+
if @current_release.version > last_tag # CHANGELOG.md version is ahead of last tag. The releaser has already updated the changelog, and we've validated it
|
183
184
|
if !Printer.ask_binary("The version from CHANGELOG.md '#{@current_release.version}' is greater than the last tagged version '#{last_tag}'. Have you already updated your version and CHANGELOG.md?")
|
184
185
|
Printer.fail("Update your version and CHANGELOG.md and re-run rake release.")
|
185
186
|
abort()
|