fastlane-plugin-wpmreleasetoolkit 14.2.0 → 14.3.0

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: 241d117047e4a00bf3d1b41521943b6e5d5828b641c55aeac8c904dd3ca779a7
4
- data.tar.gz: bce3b3f69e03d729f06bfd240d260047d3aab8efbf0b07960a864e6621c0486f
3
+ metadata.gz: 25c6754ebf31ec2822f39873e7dc41120dccc614016314951d7fd719938afdb6
4
+ data.tar.gz: 998867593c4e85e833b34569488a1a73a4bf3bd5608dca7661de897102f207a2
5
5
  SHA512:
6
- metadata.gz: 9595b10066856a9eb8610b8bd5847cc6a3a2bb55ee03745ae1856d453b8dce54428f72b45083f6c8e8bc48ba5030439ea3d16e4bf57b9b36e789ec70677e1b75
7
- data.tar.gz: 4e0694d41145a455e58008245b493b4e760de5d35ba39670386179d9ec4963622e20b33998898a59ffcd1d4c69e18f7a2ffdcb3ca0e47cb9545ee91b292500a1
6
+ metadata.gz: 13d215afbde508cd4ff34a2deab433f3410b09171ab1bae6d21f2d52b3d75ea9bdb9fab2137fef37e2c11901876b648e1e7e5a63a05970408eae697fc8d943c9
7
+ data.tar.gz: 20b9641253d9da288801e27bb587ba8489446ff1ab60a43255500820c2a367f9510c6e69ad1bc2b8f001a5800b66d309c8a1fd6733fee84d7158bf9773747d8d
@@ -10,8 +10,11 @@ module Fastlane
10
10
  require_relative '../../helper/release_notes_helper'
11
11
  require_relative '../../helper/git_helper'
12
12
 
13
+ UI.user_error!('You must provide a non-empty value for either `next_version` or `new_version`') if params[:next_version].to_s.strip.empty? && params[:new_version].to_s.strip.empty?
14
+
13
15
  path = params[:release_notes_file_path]
14
- next_version = Fastlane::Helper::Android::VersionHelper.calc_next_release_short_version(params[:new_version])
16
+ next_version = params[:next_version]&.strip
17
+ next_version = Fastlane::Helper::Android::VersionHelper.calc_next_release_short_version(params[:new_version]) if next_version.nil? || next_version.empty?
15
18
 
16
19
  Fastlane::Helper::ReleaseNotesHelper.add_new_section(path: path, section_title: next_version)
17
20
  Fastlane::Helper::GitHelper.commit(message: "Release Notes: add new section for next version (#{next_version})", files: path)
@@ -36,6 +39,18 @@ module Fastlane
36
39
  FastlaneCore::ConfigItem.new(key: :new_version,
37
40
  env_name: 'FL_ANDROID_UPDATE_RELEASE_NOTES_VERSION',
38
41
  description: 'The version we are currently freezing; An empty entry for the _next_ version after this one will be added to the release notes',
42
+ deprecated: 'Deprecated in favor of `next_version`. ' \
43
+ 'The `new_version` parameter computes the next version using a built-in calculator ' \
44
+ 'that assumes the minor version rolls over to the next major at 9, which is incorrect for apps using semantic versioning',
45
+ optional: true,
46
+ conflicting_options: [:next_version],
47
+ type: String),
48
+ FastlaneCore::ConfigItem.new(key: :next_version,
49
+ description: 'The next version to use as the section title in the release notes. ' \
50
+ 'This value is used directly as the section title. ' \
51
+ 'Use this if your app does not follow the default versioning convention (minor capped at 9)',
52
+ optional: true,
53
+ conflicting_options: [:new_version],
39
54
  type: String),
40
55
  FastlaneCore::ConfigItem.new(key: :release_notes_file_path,
41
56
  env_name: 'FL_ANDROID_UPDATE_RELEASE_NOTES_FILE_PATH',
@@ -10,8 +10,11 @@ module Fastlane
10
10
  require_relative '../../helper/release_notes_helper'
11
11
  require_relative '../../helper/git_helper'
12
12
 
13
+ UI.user_error!('You must provide a non-empty value for either `next_version` or `new_version`') if params[:next_version].to_s.strip.empty? && params[:new_version].to_s.strip.empty?
14
+
13
15
  path = params[:release_notes_file_path]
14
- next_version = Fastlane::Helper::Ios::VersionHelper.calc_next_release_version(params[:new_version])
16
+ next_version = params[:next_version]&.strip
17
+ next_version = Fastlane::Helper::Ios::VersionHelper.calc_next_release_version(params[:new_version]) if next_version.nil? || next_version.empty?
15
18
 
16
19
  Fastlane::Helper::ReleaseNotesHelper.add_new_section(path: path, section_title: next_version)
17
20
  Fastlane::Helper::GitHelper.commit(message: "Release Notes: add new section for next version (#{next_version})", files: path)
@@ -36,6 +39,18 @@ module Fastlane
36
39
  FastlaneCore::ConfigItem.new(key: :new_version,
37
40
  env_name: 'FL_IOS_UPDATE_RELEASE_NOTES_VERSION',
38
41
  description: 'The version we are currently freezing; An empty entry for the _next_ version after this one will be added to the release notes',
42
+ deprecated: 'Deprecated in favor of `next_version`. ' \
43
+ 'The `new_version` parameter computes the next version using a built-in calculator ' \
44
+ 'that assumes the minor version rolls over to the next major at 9, which is incorrect for apps using semantic versioning',
45
+ optional: true,
46
+ conflicting_options: [:next_version],
47
+ type: String),
48
+ FastlaneCore::ConfigItem.new(key: :next_version,
49
+ description: 'The next version to use as the section title in the release notes. ' \
50
+ 'This value is used directly as the section title. ' \
51
+ 'Use this if your app does not follow the default versioning convention (minor capped at 9)',
52
+ optional: true,
53
+ conflicting_options: [:new_version],
39
54
  type: String),
40
55
  FastlaneCore::ConfigItem.new(key: :release_notes_file_path,
41
56
  env_name: 'FL_IOS_UPDATE_RELEASE_NOTES_FILE_PATH',
@@ -3,6 +3,6 @@
3
3
  module Fastlane
4
4
  module Wpmreleasetoolkit
5
5
  NAME = 'fastlane-plugin-wpmreleasetoolkit'
6
- VERSION = '14.2.0'
6
+ VERSION = '14.3.0'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-wpmreleasetoolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.2.0
4
+ version: 14.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Automattic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-09 00:00:00.000000000 Z
11
+ date: 2026-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport