fastlane-plugin-wpmreleasetoolkit 12.3.3 → 12.3.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: 041f45f2654eb686e2730d5e33adf6023c10649a12d0a31cdd93795e96660a95
4
- data.tar.gz: 9c95db0f646fb9879c908a9234bbb764f334195ad84a3ba274baf53ce967544d
3
+ metadata.gz: b59d8ce8652d5491809fc8a80bf3e08b35a3d65f244eb9f7f8faccb212ba9c81
4
+ data.tar.gz: aea9e1d13eb564f07088120c9f763aa2042bc34c0672ca938670b0ee1e698209
5
5
  SHA512:
6
- metadata.gz: 3ed5eb05f72b84b22e60c85acbb7787623ffc3d76efa077d1197934e01191afca394d2ec5ae92974e603dd2955f22ae2a36866a2ca751ae0e300f01bb01453b2
7
- data.tar.gz: aa314297334366742f676bdd2d0cc96ff609e975bb0a75ab4fc5ce62b676de89dd6065fc0e6e9383bdb519f381255b261f1f0555539568148f03f842c42cc660
6
+ metadata.gz: c3dca2f486e3ff752f89b8b27a36d5f2287dc9c529eb46efe10ca6c6168ebfa595489921ae4a550c80e6b1f10f616401ba53e8e1ce102210f478c79f16bbde6a
7
+ data.tar.gz: 3dc7792faa4d46efabde9c7075f198dae635b15be7a9cc9a157610c23fec524ed3a5ebb28e6e3377cb0e5313a313579debcc1ee41abb10308eaafcb063b0c427
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fastlane
4
4
  module Wpmreleasetoolkit
5
- VERSION = '12.3.3'
5
+ VERSION = '12.3.4'
6
6
  end
7
7
  end
@@ -8,19 +8,18 @@ module Fastlane
8
8
  class DateVersionCalculator < AbstractVersionCalculator
9
9
  # Calculate the next date-based release version.
10
10
  #
11
- # If the current month is December, the method prompts the user to determine if the next
12
- # release will be the first release of the next year. If so, it increments the major version
13
- # and sets the minor version to 1, resetting the patch and build number components to zero.
14
- # Otherwise, it calculates the next minor version.
11
+ # When increment_to_next_year is true, increments the major version (representing the year) and resets all other
12
+ # components (minor to 1, patch and build number to 0). Otherwise, calculates the
13
+ # next minor version using the parent class implementation.
15
14
  #
16
15
  # @param [AppVersion] version The version to calculate the next date-based release version for.
16
+ # @param [Boolean] increment_to_next_year Whether to increment the version to the next year. Defaults to false.
17
17
  #
18
18
  # @return [AppVersion] The next date-based release version.
19
19
  #
20
- def next_release_version(version:)
21
- new_version = version.dup
22
- first_release_of_year = FastlaneCore::UI.confirm('Is this release the first release of next year?') if Time.now.month == 12
23
- if first_release_of_year
20
+ def next_release_version(version:, increment_to_next_year: false)
21
+ if increment_to_next_year
22
+ new_version = version.dup
24
23
  new_version.major += 1
25
24
  new_version.minor = 1
26
25
  new_version.patch = 0
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: 12.3.3
4
+ version: 12.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Automattic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-21 00:00:00.000000000 Z
11
+ date: 2024-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport