fastlane-plugin-hockey_devices 1.0.0 → 1.0.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 241107a0708b787ed41062b530cdab91d25237a3
|
4
|
+
data.tar.gz: 03ecc0c8ee00592ce92ee4d75976060c283b6a5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35b21b2c96758b4f072ca70eb0269bcce813a672bdf7562ea467c17ed60cddc647d688d4c85e31fc112aac2d6c390f3e9b227c1237a5b37bcc0eb57af0342b17
|
7
|
+
data.tar.gz: 76293191552cc590772cb38c1e21dcde7e3fc1aefd3fbdaa6eec27a5b0aa0b21c54db0919fba892b92750377cd0787d1b943f8e357e9d2cbd037cd4cd3705d42
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# hockey_devices plugin
|
2
2
|
|
3
3
|
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-hockey_devices)
|
4
|
+
[![CircleCI](https://circleci.com/gh/viktorasl/fastlane-plugin-hockey_devices.svg?style=svg)](https://circleci.com/gh/viktorasl/fastlane-plugin-hockey_devices)
|
4
5
|
|
5
6
|
## Getting Started
|
6
7
|
|
@@ -30,9 +30,9 @@ module Fastlane
|
|
30
30
|
def self.get_devices_hash(devices)
|
31
31
|
devices_hash = {}
|
32
32
|
used_names = {}
|
33
|
-
|
33
|
+
devices.each do |d|
|
34
34
|
agg_name = d["name"]
|
35
|
-
if used_names[agg_name]
|
35
|
+
if used_names[agg_name]
|
36
36
|
num = used_names[agg_name] + 1
|
37
37
|
used_names[agg_name] = num
|
38
38
|
agg_name += " (#{num})"
|
@@ -49,7 +49,7 @@ module Fastlane
|
|
49
49
|
api_token = values.delete(:api_token)
|
50
50
|
|
51
51
|
values.delete_if { |k, v| v.nil? }
|
52
|
-
|
52
|
+
|
53
53
|
response = self.get_devices(api_token, values)
|
54
54
|
case response.status
|
55
55
|
when 200...300
|