fastlane-plugin-semantic_release 1.19.3 → 1.19.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ce1113769c465612e01e3881aa8227c5c5bc9f20c91c7ae6cb47b8124a82ac8
4
- data.tar.gz: 7330bf213de14b9fc2555c731069f55e78e725205212a2bbb80ca27380cbce0f
3
+ metadata.gz: 01b27d55095447fde70e3e0d4c0ca215b7473cb123723e01e6022d5a55e065a0
4
+ data.tar.gz: 6d7b82296bad8e5d3655f8d428df731f3aaae1aa89ba12bd3e23b2183cafbeaa
5
5
  SHA512:
6
- metadata.gz: 1117593ee5dc4ea4097a6d2c761175977d464d9343a9c40c6f2451b37c053db2e9ef40b673aface8d2b5eb2a44c76e728be0e9fcf390c54d2e5350c56a37e0bc
7
- data.tar.gz: b34d3e5504ad75f12f00a57f7f11da35d14a12326a2e2e990d428c6668a6485a71cc964a21f3654976fe26f72880ec78381b0c53c1cd2307f90a82eea9b97b30
6
+ metadata.gz: c031c797fd3b19df15f029dd09e17913b2d001b10ef1cd1ac89ccc12ac3b624d43139d3dba7a9a0cea8e35e3d883086c20332d78b8a255109ac1d90e2d1a3fe7
7
+ data.tar.gz: 33ceab41c2c7a0a192402c0dcd019fcf25346d3b65c3bf30f4f1f0cb5269da889c5be4a28b137cb5e646d60420890713dc4a258286d5e466f1d3797fdef3aa71
@@ -53,12 +53,11 @@ module Fastlane
53
53
  }
54
54
  end
55
55
 
56
- # Tag format is v2.3.4-5-g7685948 (see git describe man page)
57
- # Strip the git describe suffix (-<count>-g<hash>) to get the tag name
58
- tag_name = tag
59
- if tag.split('-').length >= 3
60
- tag_name = tag.split('-')[0...-2].join('-').strip
61
- end
56
+ # git describe appends -<N>-g<hash> when HEAD is ahead of a tag.
57
+ # Use a regex to strip this specific suffix rather than splitting on
58
+ # dashes, which breaks when the tag itself contains dashes (e.g. v1.0.0-beta).
59
+ tag_name = tag.strip
60
+ tag_name = tag_name.sub(/-\d+-g[0-9a-f]+$/, '')
62
61
  parsed_version = tag_name.match(params[:tag_version_match])
63
62
 
64
63
  if parsed_version.nil?
@@ -1 +1 @@
1
- module Fastlane module SemanticRelease VERSION = "1.19.3" end end
1
+ module Fastlane module SemanticRelease VERSION = "1.19.4" end end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-semantic_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.3
4
+ version: 1.19.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiří Otáhal