fastlane-plugin-better_semantic_release 2.0.3 → 2.0.4

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
  SHA256:
3
- metadata.gz: 341589aa015b10e3fd18cd7fb26c82bd2dffddeee287f3b60b0ae1daff092cb5
4
- data.tar.gz: a3130fdb916f361a3d61b3712551b3d3aa24976f6a416b01dd04e7d9eeb93ff1
3
+ metadata.gz: 07f8f88f0e9ce157b5e16d2b00101b143b94390d6e0f1806a5c3942464a61718
4
+ data.tar.gz: eea2ce50bd0aef6f0b6df4aa3a403fd5198321cc5f8f38e8c3546721433fe75a
5
5
  SHA512:
6
- metadata.gz: b35e90d226aa36105a48c41556fadcf934e7de7c774add9b936a8d73ffe9104830915fcebd46a6ffec9b49a1c9c7c114e1cd7bfa1c0b15e0c7825ff2415d9f12
7
- data.tar.gz: 0c7226e613d3fb258b454f305f157a4e6f01db25b7d076db2c0f0fc13579109fd49015b9000d478a0d323d056a2c63592857db5eb1949b81bce99da503f5358c
6
+ metadata.gz: 0cd4041df9ed124c554f262ddfef436c4074de685bad1cf21295fe23e4bc1a1b92251eb65bc16de7eff733e51a47f35b0dfb6aa0b252613b00e868b3dc589801
7
+ data.tar.gz: 040b4d517911c0af92f27cbf56119cfb3b5ba2afc600739220bb26b1aa516eab0d7112fcaa8bb1195b2070cb78cd8b49405d5521b3f7d6dc7464d1bdbe1c86a6
@@ -136,40 +136,43 @@ module Fastlane
136
136
  splitted.each do |squashed_commit|
137
137
  commits = squashed_commit.split("*")
138
138
  commits.drop(1).each do |line|
139
- # conventional commits are in format
140
- # type: subject (fix: app crash - for example)
141
- commit = Helper::BetterSemanticReleaseHelper.parse_commit(
142
- commit_subject: line,
143
- commit_body: line.split(":")[1].strip,
144
- releases: releases,
145
- pattern: format_pattern
146
- )
139
+ parts = line.split(":")
140
+ if parts.length > 1
141
+ # conventional commits are in format
142
+ # type: subject (fix: app crash - for example)
143
+ commit = Helper::BetterSemanticReleaseHelper.parse_commit(
144
+ commit_subject: line,
145
+ commit_body: parts[1].strip,
146
+ releases: releases,
147
+ pattern: format_pattern
148
+ )
149
+
150
+ unless commit[:scope].nil?
151
+ # if this commit has a scope, then we need to inspect to see if that is one of the scopes we're trying to exclude
152
+ scope = commit[:scope]
153
+ scopes_to_ignore = params[:ignore_scopes]
154
+ # if it is, we'll skip this commit when bumping versions
155
+ next if scopes_to_ignore.include?(scope) #=> true
156
+ end
147
157
 
148
- unless commit[:scope].nil?
149
- # if this commit has a scope, then we need to inspect to see if that is one of the scopes we're trying to exclude
150
- scope = commit[:scope]
151
- scopes_to_ignore = params[:ignore_scopes]
152
- # if it is, we'll skip this commit when bumping versions
153
- next if scopes_to_ignore.include?(scope) #=> true
154
- end
158
+ if commit[:release] == "major" || commit[:is_breaking_change]
159
+ next_major += 1
160
+ next_minor = 0
161
+ next_patch = 0
162
+ elsif commit[:release] == "minor"
163
+ next_minor += 1
164
+ next_patch = 0
165
+ elsif commit[:release] == "patch"
166
+ next_patch += 1
167
+ end
155
168
 
156
- if commit[:release] == "major" || commit[:is_breaking_change]
157
- next_major += 1
158
- next_minor = 0
159
- next_patch = 0
160
- elsif commit[:release] == "minor"
161
- next_minor += 1
162
- next_patch = 0
163
- elsif commit[:release] == "patch"
164
- next_patch += 1
165
- end
169
+ unless commit[:is_codepush_friendly]
170
+ is_next_version_compatible_with_codepush = false
171
+ end
166
172
 
167
- unless commit[:is_codepush_friendly]
168
- is_next_version_compatible_with_codepush = false
173
+ next_version = "#{next_major}.#{next_minor}.#{next_patch}"
174
+ UI.message("#{next_version}") if params[:show_version_path]
169
175
  end
170
-
171
- next_version = "#{next_major}.#{next_minor}.#{next_patch}"
172
- UI.message("#{next_version}") if params[:show_version_path]
173
176
  end
174
177
  end
175
178
 
@@ -1 +1 @@
1
- module Fastlane module BetterSemanticRelease VERSION = "2.0.3" end end
1
+ module Fastlane module BetterSemanticRelease VERSION = "2.0.4" end end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-better_semantic_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Greco