slowlane 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/slowlane/portal/profile.rb +33 -3
- data/slowlane.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 978a4ff29eadfafa1cbb947721dd90e54cb463de
|
4
|
+
data.tar.gz: 81d03c4e0498d83d5dda817c31e60088984ee9cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f74e224a470a0e375cde8bdf9e02c4f02cd0d2ff463141a116c01d2a7721da0de3ac7d1b6c958361b849ccae65a775800a4f551b497a4c2ac38e6fa9a593efe
|
7
|
+
data.tar.gz: 3f8f62a6c87a44fa09571d3365dd0e66b1624f8f03205bc3a535e3861662457a796135a102562fdb282a94053d451fe3ff149796dd199c92eade7d604dd26a39
|
data/README.md
CHANGED
@@ -32,6 +32,7 @@ results in binaries:
|
|
32
32
|
- `slowlane-ipa` (NOTE: this might change to a more generic `slowlane-ios` command)
|
33
33
|
|
34
34
|
## Changes
|
35
|
+
- 1.2.5: (portal) fix download of adhoc & store profiles, create profiles
|
35
36
|
- 1.2.4: (fabric) invite tester
|
36
37
|
- 1.2.3: (fabric) resend_invitation tester
|
37
38
|
- 1.2.2: (portal) add_device to provisioning profile
|
@@ -67,7 +68,8 @@ results in binaries:
|
|
67
68
|
- `slowlane-portal profile list`
|
68
69
|
- `slowlane-portal profile decode <provisioningfile>`
|
69
70
|
- `slowlane-portal profile add_device <bundle_id> <udid>`
|
70
|
-
- `slowlane-portal profile download
|
71
|
+
- `slowlane-portal profile download --distribution-type=<adhoc|store|limited>`
|
72
|
+
- `slowlane-portal profile create <bundle_id>
|
71
73
|
- `slowlane-portal psn list`
|
72
74
|
- `slowlane-portal team list`
|
73
75
|
|
@@ -69,7 +69,7 @@ module Slowlane
|
|
69
69
|
|
70
70
|
profiles = Spaceship.provisioning_profile.find_by_bundle_id(bundle_id)
|
71
71
|
distribution_profiles = profiles.select do |profile|
|
72
|
-
profile.type == "iOS Distribution" and profile.
|
72
|
+
profile.type == "iOS Distribution" and profile.is_adhoc?
|
73
73
|
end
|
74
74
|
|
75
75
|
if distribution_profiles.size() == 0
|
@@ -92,7 +92,7 @@ module Slowlane
|
|
92
92
|
|
93
93
|
#option :platform,:default => 'ios', :banner => '<adhoc,limited,store>'
|
94
94
|
desc "download", "download provisioning profile <bundle_id>"
|
95
|
-
option :
|
95
|
+
option :distribution_type,:required => true , :banner => '<adhoc,limited,store>'
|
96
96
|
def download(bundle_id)
|
97
97
|
|
98
98
|
c=Utils.credentials(options)
|
@@ -102,8 +102,17 @@ module Slowlane
|
|
102
102
|
Spaceship::Portal.client.team_id=t
|
103
103
|
|
104
104
|
profiles = Spaceship.provisioning_profile.find_by_bundle_id(bundle_id)
|
105
|
+
|
105
106
|
distribution_profiles = profiles.select do |profile|
|
106
|
-
profile.distribution_method ==
|
107
|
+
if profile.distribution_method == "store"
|
108
|
+
if options[:distribution_type] == "adhoc"
|
109
|
+
profile.is_adhoc?
|
110
|
+
else
|
111
|
+
!profile.is_adhoc?
|
112
|
+
end
|
113
|
+
else
|
114
|
+
return false
|
115
|
+
end
|
107
116
|
end
|
108
117
|
|
109
118
|
if distribution_profiles.size() == 0
|
@@ -124,6 +133,27 @@ module Slowlane
|
|
124
133
|
|
125
134
|
end
|
126
135
|
|
136
|
+
desc "create", "Create a new profile <bundle_id>"
|
137
|
+
def create(bundle_id)
|
138
|
+
|
139
|
+
c=Utils.credentials(options)
|
140
|
+
Spaceship::Portal.login(c.username,c.password)
|
141
|
+
|
142
|
+
t=Utils.team(options)
|
143
|
+
Spaceship::Portal.client.team_id=t
|
144
|
+
|
145
|
+
cert = Spaceship.certificate.production.all.first
|
146
|
+
#require 'pp'
|
147
|
+
#pp cert
|
148
|
+
|
149
|
+
profile = Spaceship.provisioning_profile.AdHoc.create!(bundle_id: bundle_id, certificate: cert)
|
150
|
+
# Print the name and download the new profile
|
151
|
+
puts "Created Profile " + profile.name
|
152
|
+
profile.download
|
153
|
+
|
154
|
+
|
155
|
+
end
|
156
|
+
|
127
157
|
desc "list", "List profiles"
|
128
158
|
def list()
|
129
159
|
|
data/slowlane.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slowlane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Debois
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|