android-publisher 0.0.12 → 0.0.13

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: 36264d7fda37049e4713c2bc1e0f48975225fb1e
4
- data.tar.gz: 2348a733a293ce839486c9282f3d9e6a41ffe204
3
+ metadata.gz: f5aa8b776e103d2f4052ad143f40c0374f4b48d8
4
+ data.tar.gz: 305bbf66b06be634e359e112ec617d81cc5acfda
5
5
  SHA512:
6
- metadata.gz: 8c65d4f9384185738bd07dd80c7585e3c0626ae56fde46296e772d6c40ce3c4ca5d9f654d3998d1d5a0b4b09934b036a0b69ea764d8cf238dc0c2e17fcd8c697
7
- data.tar.gz: 20ff87744997c1eaa4eea865c11af1e427dfddfeb969372c0fedda3b071b98e0b10749656b03b68b4946ba3e6893847c491baeda46f7b0217e017af08ca8ef9d
6
+ metadata.gz: 3dbc690766924e827d05134394624fbd3ec8711d8f7bb543cf460f88bf69cdbbf697563a15113d8fd45c69001f40ced8d39dc766a89788a5ce5edc1ab797ff9d
7
+ data.tar.gz: 5c4b26fb07d81da8f0eec31b0ddfb2afaa0bf636a696feb9c53bcf8644b307707c9a51af3c5eeb0356c6caa5c8452c6da1339f80a8bc8bec93e865f4d6820650
@@ -40,6 +40,8 @@ else
40
40
  publisher.rollout
41
41
  elsif params[:track] == 'rollout' && params[:fraction] == 0
42
42
  publisher.clear_rollout
43
+ elsif params[:track] == 'rollout' && params[:fraction] == 1
44
+ publisher.finish_rollout
43
45
  elsif params[:track] == 'rollout' && params[:fraction]
44
46
  publisher.update_rollout(params[:fraction])
45
47
  end
@@ -29,6 +29,13 @@ module Android
29
29
  edit.commit
30
30
  end
31
31
 
32
+ def finish_rollout
33
+ edit.insert
34
+ edit.assign_to_production_track
35
+ edit.clear_rollout
36
+ edit.commit
37
+ end
38
+
32
39
  def deploy_to_alpha
33
40
  edit.insert
34
41
  edit.upload_apk(@apk_path) unless @apk_path.nil?
@@ -1,5 +1,5 @@
1
1
  module Android
2
2
  class Publisher
3
- VERSION = "0.0.12"
3
+ VERSION = "0.0.13"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: android-publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Slawomir Smiechura