releasinator 0.7.5 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab00cae0a63186d6b3e84eb7ce327e61b782d020
4
- data.tar.gz: 73351d0123b24a2b6ba7fde3551264df93721a3b
3
+ metadata.gz: 1a30d14364fc2e81873c1a5f018f7af591ef93a3
4
+ data.tar.gz: 5e4e7bb4fa7f969e32a8b0d82367b8de5da02a65
5
5
  SHA512:
6
- metadata.gz: f754981496e5bef65d1ea26a1423fbac25649197bac297f72c6c87316055d69999a5942892454bdd4a9d01d4fac52a702bb62a020ff32e46d2ab2aa7cfdd223e
7
- data.tar.gz: 94bc361bbd760291cd451a8965293ce7db5b94e20daa10a25c183f533d758e0519af9abff8a620c33144f5c20b8f192e1ec2bad3c6a131da6236f7feed63bf82
6
+ metadata.gz: 3765c609dead1c9d638776aeb154afe02a7a413c9ebc89107691f76d1307cc84c49304744523ebb30e02c34f75dfae488fdfa23a27bb7bf0bbbf7d359451f9d2
7
+ data.tar.gz: 3a564922de00563111879e69f2fd88e744723e2c92657ff4d8b9c96d1f796a5b226acd1a0ec60b15b564312418d07712a97aa27cf57e6ac6fa1ec385aa63979c
@@ -1,6 +1,10 @@
1
1
  Releasinator release notes
2
2
  ==========================
3
3
 
4
+ 0.7.6
5
+ -----
6
+ * Add hack to cleanup "vX.Y.Z" to semantic version for CHANGELOG detection.
7
+
4
8
  0.7.5
5
9
  -----
6
10
  * Use clean semantic version for doing comparisions instead of "vX.Y.Z".
@@ -1,3 +1,3 @@
1
1
  module Releasinator
2
- VERSION = "0.7.5"
2
+ VERSION = "0.7.6"
3
3
  end
@@ -175,12 +175,16 @@ end
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
+ last_tag = last_tag_raw
179
+ last_tag = last_tag[1..last_tag.size] if last_tag.start_with? "v"
178
180
 
179
181
  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
182
  commits_since_tag = GitUtil.commits(last_tag_raw)
181
- last_tag = Semantic::Version.new(GitUtil.tagged_versions(remote=true).last)
183
+ last_tag = Semantic::Version.new(last_tag)
182
184
  if commits_since_tag.size > 0 # There are new commits to be released
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
185
+ current_version = @current_release.version
186
+ current_version = current_version[1..current_version.size] if current_version.start_with? "v"
187
+ if current_version > last_tag # CHANGELOG.md version is ahead of last tag. The releaser has already updated the changelog, and we've validated it
184
188
  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?")
185
189
  Printer.fail("Update your version and CHANGELOG.md and re-run rake release.")
186
190
  abort()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: releasinator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayPal