fastlane-plugin-better_semantic_release 2.0.12 → 2.0.14

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: 142599a4d25ff2dd47428c8de7684bba89a392e0f2e6786c8195cb9956f3c21f
4
- data.tar.gz: c9151dee2b0fd22d54e35def74031e9a70e658c2958daa6985ef3d333f8669ea
3
+ metadata.gz: 19a890d733a45d8e5d82ec1468f37ccf37287781ff5dbcb41756ddb204d58890
4
+ data.tar.gz: 629bc72565fa04e7acfb0fcde47c39424807202c478903ffaa3ae2a84bfc2205
5
5
  SHA512:
6
- metadata.gz: 03ba6831f38b10712fb28f1b412c2742e9ff194f196ec178b847b50066b97979a88f8dfbf8fd5180290af5e36a0bb6f97f30816817c0b8626484de9984c33903
7
- data.tar.gz: c25bc5f97209c6a9a52c6ccd33e85dbe1507db458e23a358db315d521f11a47c8da26b620b1bd853af54533c1fd65144b17db6296ec30f005e2de8388c8e53a5
6
+ metadata.gz: d641ac1f4c5d17ca4ba3f786e782ae96d8ef98a227ed8bb4c4d7ce4bc1903d2f60709a981d56e33969431f7ce6852ed319b380fec19539cfb77cb0be9a130bea
7
+ data.tar.gz: fdaa280615a047254253391921ab1b58305ba1e5d796689bc2a0390131346581058c0039db9dcdfe4074951c6c0f03ba396da4a1a9687a66330bd091eab398e6
data/README.md CHANGED
@@ -87,7 +87,7 @@ To run the test suite (contained in `./spec`), call `bundle exec rake`
87
87
 
88
88
  # Publishing Update
89
89
 
90
- Increment version number and run:
90
+ Increment version number, commit changes, run:
91
91
 
92
92
  `bundle install && rake install && rake release`
93
93
 
@@ -144,7 +144,7 @@ module Fastlane
144
144
  # conventional commits are in format
145
145
  # type: subject (fix: app crash - for example)
146
146
  commit = Helper::BetterSemanticReleaseHelper.parse_commit(
147
- commit_subject: line,
147
+ commit_subject: line.strip,
148
148
  commit_body: parts[1].strip,
149
149
  releases: releases,
150
150
  pattern: format_pattern
@@ -6,6 +6,7 @@ module Fastlane
6
6
  module SharedValues
7
7
  end
8
8
 
9
+ # TODO Add version_override param
9
10
  class ConventionalChangelogAction < Action
10
11
  def self.get_commits_from_hash(params)
11
12
  commits = Helper::BetterSemanticReleaseHelper.git_log(
@@ -28,7 +29,7 @@ module Fastlane
28
29
  end
29
30
 
30
31
  last_tag_hash = lane_context[SharedValues::RELEASE_LAST_TAG_HASH]
31
- version = lane_context[SharedValues::RELEASE_NEXT_VERSION]
32
+ version = params[:version_override] ? params[:version_override] : lane_context[SharedValues::RELEASE_NEXT_VERSION]
32
33
 
33
34
  # Get commits log between last version and head
34
35
  commits = get_commits_from_hash(
@@ -337,6 +338,11 @@ module Fastlane
337
338
  default_value: false,
338
339
  type: Boolean,
339
340
  optional: true
341
+ ),
342
+ FastlaneCore::ConfigItem.new(
343
+ key: :version_override,
344
+ description: "Allow overriding version number rather than letting it be calculated here. Useful for prod build matching beta version",
345
+ optional: true
340
346
  )
341
347
  ]
342
348
  end
@@ -1 +1 @@
1
- module Fastlane module BetterSemanticRelease VERSION = "2.0.12" end end
1
+ module Fastlane module BetterSemanticRelease VERSION = "2.0.14" end end
metadata CHANGED
@@ -1,14 +1,14 @@
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.12
4
+ version: 2.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Greco
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-31 00:00:00.000000000 Z
11
+ date: 2023-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry