asca 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
  SHA256:
3
- metadata.gz: 25521b3515ec08549f4a8ce4c57409aac872fb6a8af04cf9eee552f5914dcd51
4
- data.tar.gz: dbb027e0c460e924d503453956d2cd137b4a16c09a29446b69f01efaee3f1755
3
+ metadata.gz: 5c715bb7395fb39231c5a0b4fb07151135e8b03a7858f19bfcf3a012bd11ebc7
4
+ data.tar.gz: 474d92c7138cd5473670be1d98b01379da3e59ccfb7ec96abccab9171e0eeba2
5
5
  SHA512:
6
- metadata.gz: 8af488785e26181c5a0c0b1658cf2abeced7259701ed6cbb3360cc03247f54c0a273a9c4c42acf30145d5305b973a0e4434f725bba4360a3f4c28006697a0568
7
- data.tar.gz: b56b913346604813f1e4fd72e5add24850fab739bee9805c29c626f8ee684daccfb2545a2ff53219f403281a415e450f07bbda42597e8c6b7f2db2962bdd4f55
6
+ metadata.gz: 53d468d7e463bf67ec9be6ba55a5156eae1545e73d6a5793a8ddc282e140fb98800e1735be49aa8551a31129f6c3d0eb8fdda65ef0bf500f02516278448cbfb7
7
+ data.tar.gz: a057952623638f3bd984b8e96fc8b801b37abfcb877004c460200c2810e2e37b72e80595f3c21ab29be91678e79f58302f2f950559d379297c5acc64bb62b455
@@ -143,6 +143,7 @@ module Asca
143
143
  response = HTTP.auth('Bearer ' + Asca::Tools::Token.new_token).get(profile["relationships"]["certificates"]["links"]["self"])
144
144
  certificate_ids = JSON.parse(response.body)["data"].map { |cer| cer["id"] }
145
145
 
146
+ # get all device ids
146
147
  device_ids = Asca::REST::Provisioning::Devices.list_devices.map { |device|
147
148
  device["id"]
148
149
  }
@@ -150,7 +151,12 @@ module Asca
150
151
  # delete old prifile
151
152
  delete_profile :name => options[:name]
152
153
 
153
- create_new_profile :name => options[:name], :type => profile_type, :bundle_id => bundle_id, :device_ids => device_ids, :certificate_ids => certificate_ids
154
+ if profile_type.include? 'APP_STORE'
155
+ create_new_profile :name => options[:name], :type => profile_type, :bundle_id => bundle_id, :certificate_ids => certificate_ids
156
+ else
157
+ create_new_profile :name => options[:name], :type => profile_type, :bundle_id => bundle_id, :device_ids => device_ids, :certificate_ids => certificate_ids
158
+ end
159
+
154
160
  return true
155
161
  end
156
162
  end
@@ -1,3 +1,3 @@
1
1
  module Asca
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asca
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - xueminghao