fastlane 2.47.0.beta.20170713010003 → 2.47.0.beta.20170714010002

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
  SHA1:
3
- metadata.gz: 87fdbf460eea76afd41b155d334da48b710b2d4f
4
- data.tar.gz: 19ca586cb7f4f518383e8a293c3251a49b22ae49
3
+ metadata.gz: bb501af3bf16d7e81c4daebcc61af1d6690c82cf
4
+ data.tar.gz: e12fb9d713d3d23c845f164db81916e0babd6476
5
5
  SHA512:
6
- metadata.gz: 966fac603239f16233f92dbea02d932a4fc01191ec03d84c3d5a69434aeb8245fab59c050d81fe441e0f611154402899f142b2eab2c17487f27c37c1944783f8
7
- data.tar.gz: a3b6baab3fd47dbb4b36594300e7446ffbc1cacbf9b575ab1feb015c6c45b2f18a98b2d57cf027a3ecda33e7f683aaa509f0211c2ab0182825f27901e886e80b
6
+ metadata.gz: 1da8ce91656dde38c50a695eef82424196272f357d911aae6199eb4a257e2cc166489b03bd5253535b8af88da8bee3a47c9c9446cdf9fa231ab6e23f00a80cb1
7
+ data.tar.gz: a13e835314b6667d17d5d990830963b722979c9e6b7abaca86ac779622512cc857cae53f572710d8fd9814cf29d42dd5b026bcc2d7831c0d33792aabd86f18e0
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.47.0.beta.20170713010003'.freeze
2
+ VERSION = '2.47.0.beta.20170714010002'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  end
@@ -26,9 +26,9 @@ module Supply
26
26
  description: "The percentage of the user fraction when uploading to the rollout track",
27
27
  default_value: '0.1',
28
28
  verify_block: proc do |value|
29
- min = 0.01
30
- max = 0.5
31
- UI.user_error! "Invalid value '#{value}', must be between #{min} and #{max}" unless value.to_f.between?(min, max)
29
+ min = 0.0
30
+ max = 1.0
31
+ UI.user_error! "Invalid value '#{value}', must be greater than #{min} and less than #{max}" unless value.to_f > min && value.to_f < max
32
32
  end),
33
33
  FastlaneCore::ConfigItem.new(key: :metadata_path,
34
34
  env_name: "SUPPLY_METADATA_PATH",
@@ -41,7 +41,7 @@ module Supply
41
41
  def promote_track
42
42
  version_codes = client.track_version_codes(Supply.config[:track])
43
43
  # the actual value passed for the rollout argument does not matter because it will be ignored by the Google Play API
44
- # but it has to be between 0.01 and 0.5 to pass the validity check. So we are passing the default value 0.1
44
+ # but it has to be between 0.0 and 1.0 to pass the validity check. So we are passing the default value 0.1
45
45
  client.update_track(Supply.config[:track], 0.1, nil)
46
46
  client.update_track(Supply.config[:track_promote_to], Supply.config[:rollout], version_codes)
47
47
  end
@@ -155,10 +155,11 @@ module Supply
155
155
 
156
156
  def update_track(apk_version_codes)
157
157
  UI.message("Updating track '#{Supply.config[:track]}'...")
158
+ check_superseded_tracks(apk_version_codes) if Supply.config[:check_superseded_tracks]
159
+
158
160
  if Supply.config[:track].eql? "rollout"
159
161
  client.update_track(Supply.config[:track], Supply.config[:rollout], apk_version_codes)
160
162
  else
161
- check_superseded_tracks(apk_version_codes) if Supply.config[:check_superseded_tracks]
162
163
  client.update_track(Supply.config[:track], 1.0, apk_version_codes)
163
164
  end
164
165
  end
@@ -171,7 +172,7 @@ module Supply
171
172
  max_apk_version_code = apk_version_codes.max
172
173
  max_tracks_version_code = nil
173
174
 
174
- tracks = ["production", "beta", "alpha"]
175
+ tracks = ["production", "rollout", "beta", "alpha"]
175
176
  config_track_index = tracks.index(Supply.config[:track])
176
177
 
177
178
  tracks.each_index do |track_index|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.47.0.beta.20170713010003
4
+ version: 2.47.0.beta.20170714010002
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-07-13 00:00:00.000000000 Z
18
+ date: 2017-07-14 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier