fastlane-plugin-semantic_versioning 3.0.0 → 3.0.2

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: c974c8e59adc155a1442566a6198e81d8192a85c2f0822cf20acccf8d3c6a320
4
- data.tar.gz: 61060c47ebc660fdec7999392e05b7ee7303212b14cee2f414058579d7ee0840
3
+ metadata.gz: 8c140874adef71e79de8611605a1729bce035a1618d8ba87e9344b3b34188d88
4
+ data.tar.gz: b24fd70c25c5f35c822d4f2f96ba74208a48fe48ed82816140960ff8270b2147
5
5
  SHA512:
6
- metadata.gz: bca9ec5b145f927fab9a16bf6483b988133a30c7e4032ff756d3acbc24dffb3eae18b86ff02d1dcaa17293fd4077eab28a5f23ee3734401303fb1092dd2027e1
7
- data.tar.gz: 4f04bc1f080a83b49d548a4e011692d0482c60dbc95e3601781f0239e672924ee1495ee4ebf114461dbef5cdbf627bbf1f24e75fc0fb70eb0b91816742080584
6
+ metadata.gz: f3ca8011cb704bff1a77bd021d0c5f7a00a893feb2b756e1b2abddc464fcf0ee49bc6828d3df431db495a33138c29db1bf967650360134274b6817ff4f5d75f3
7
+ data.tar.gz: c3bb306b4e6b3f9d280cfc628ea6b43af4d138c6c2bbfee0512d8fc27e64a3828a09ac2ca1bc42605cc1ededd63afa2fb3af32441ac67b29971b8a3aca3f790b
@@ -145,14 +145,12 @@ module Fastlane
145
145
  UI.user_error!("Parameter 'bump_map' must be a Hash.") unless value.is_a?(Hash)
146
146
  end
147
147
 
148
- # :nocov:
149
- def self.is_supported?(_platform)
148
+ def self.is_supported?(platform)
150
149
  # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
151
150
  # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
152
151
  #
153
152
  %i[ios mac].include?(platform)
154
153
  end
155
- # :nocov:
156
154
  end
157
155
  end
158
156
  end
@@ -84,14 +84,12 @@ module Fastlane
84
84
  ]
85
85
  end
86
86
 
87
- # :nocov:
88
87
  def self.is_supported?(platform)
89
88
  # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
90
89
  # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
91
90
  #
92
91
  %i[ios mac].include?(platform)
93
92
  end
94
- # :nocov:
95
93
  end
96
94
  end
97
95
  end
@@ -91,14 +91,12 @@ module Fastlane
91
91
  ]
92
92
  end
93
93
 
94
- # :nocov:
95
- def self.is_supported?(_platform)
94
+ def self.is_supported?(platform)
96
95
  # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
97
96
  # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
98
97
  #
99
98
  %i[ios mac].include?(platform)
100
99
  end
101
- # :nocov:
102
100
  end
103
101
  end
104
102
  end
@@ -123,6 +123,7 @@ module Fastlane
123
123
 
124
124
  def self.increase_version(current_version:, bump_type:)
125
125
  version_array = current_version.split(".").map(&:to_i)
126
+ version_array = version_array.unshift(0, 0)[-3..] # pad from left with zeros when version is not 3-digits.
126
127
 
127
128
  case bump_type
128
129
  when :major
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Fastlane
4
4
  module SemanticVersioning
5
- VERSION = "3.0.0"
5
+ VERSION = "3.0.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-semantic_versioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karsten Silkenbäumer