slowlane 0.0.6 → 0.0.8

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: 8e2c3e1c9c65dd882a5088daf22bf155a937e9f9
4
- data.tar.gz: 4a5b74477034b1b94b3422a2565c0c2a56c86cea
3
+ metadata.gz: 821bfcac403bdde18abdf794fde058fb99e37698
4
+ data.tar.gz: 7ecdfb6d6d05ed4878c6585b1bfc568eb086a2da
5
5
  SHA512:
6
- metadata.gz: 6d5e4a8a55b60ad99fcfdea6d6494938f64aba75af1dc0a895373246465a2696c8bdd12cc03ea1a4c5633f8b64e61d230d5ef40510f845ae319a4a8d06500a2c
7
- data.tar.gz: 475ca8666a5efa6e4116e509ff0ef123685cb26ba2ecf9d1c433e8e04d81864872ac9255073b48433dc1d1d08718ded8afa77ffb995f0ae219efe7ec952a8a58
6
+ metadata.gz: a4386e37d4525678cf4047f384aac86948d4ff1e9f4810e2133084dadabf73f897ea6c621611ab93944da7a55064750a12c723e189c01e9d6ac8694acf9fcd84
7
+ data.tar.gz: 992d295d24bb13dc3b6c45287b656243ae71298371ee125f74703e57922030ee08a6bc96706258b869ddfb80499b562a049d723e01f56c58822f6d3c41bc00b6
data/.gitignore CHANGED
@@ -4,3 +4,4 @@ trial/
4
4
  Gemfile.lock
5
5
  pkg/*
6
6
  *.itmsp
7
+ *.swp
data/README.md CHANGED
@@ -48,6 +48,7 @@ results in binaries:
48
48
  - `slowlane-portal certificate list`
49
49
  - `slowlane-portal device list`
50
50
  - `slowlane-portal profile list`
51
+ - `slowlane-portal profile decode`
51
52
  - `slowlane-portal psn list`
52
53
  - `slowlane-portal team list`
53
54
 
@@ -78,7 +79,6 @@ A lot is still focusing on the happy path , we need to catch better the errors a
78
79
  - download certificate
79
80
  - create|delete device
80
81
  - create|delete profile
81
- - decode profile to list cert & devices
82
82
  - download profile
83
83
  - combine priv & public profile -> pem,pk12
84
84
  - add device to profile
@@ -1,13 +1,57 @@
1
1
  require_relative './util.rb'
2
2
  require "spaceship"
3
3
  require 'terminal-table'
4
-
4
+ require 'openssl'
5
5
 
6
6
  module Slowlane
7
7
  module Portal
8
8
  class Profile < Thor
9
9
 
10
- desc "add_device","add_device <bundle_id> <device>"
10
+ # https://gist.github.com/mlaster/2854189
11
+ desc "decode", "decode <filename>"
12
+ def decode(filename)
13
+
14
+ require 'plist'
15
+ profile = `security cms -D -i '#{filename}'`
16
+ xml = Plist::parse_xml(profile)
17
+ rows = []
18
+ headings = [ 'Key', 'Value']
19
+
20
+ rows << [ 'AppIDName', xml['AppIDName'] ]
21
+ rows << [ 'Name', xml['Name'] ]
22
+ rows << [ 'TeamName', xml['TeamName'] ]
23
+ rows << [ 'UUID', xml['UUID'] ]
24
+ rows << [ 'ApplicationIdentifierPrefix', xml['ApplicationIdentifierPrefix'].join(',') ]
25
+ rows << [ 'TeamIdentifier', xml['TeamIdentifier'].join(',') ]
26
+ rows << [ 'Version', xml['Version'] ]
27
+ rows << [ 'TimeToLive', xml['TimeToLive'] ]
28
+ rows << [ 'get-task-allow', xml['Entitlements']['get-task-allow'] ]
29
+ rows << [ 'keychain-access-groups', xml['Entitlements']['keychain-access-groups'].join(',') ]
30
+ rows << [ 'application-identifier', xml['Entitlements']['application-identifier']]
31
+ rows << [ 'aps-environment', xml['Entitlements']['aps-environment']]
32
+ rows << [ 'beta-reports-active', xml['Entitlements']['beta-reports-active']]
33
+ rows << [ 'get-task-allow', xml['Entitlements']['get-task-allow']]
34
+ rows << [ 'com.apple.developer.team-identifier', xml['Entitlements']['com.apple.developer.team-identifier']]
35
+ rows << [ 'CreationDate', xml['CreationDate']]
36
+ rows << [ 'ExpirationDate', xml['ExpirationDate']]
37
+ rows << [ 'ProvisionedDevices', xml['ProvisionedDevices'].join("\n") ] unless xml['ProvisionedDevices'].nil?
38
+
39
+ devcerts = xml['DeveloperCertificates']
40
+
41
+ decoded_certs = []
42
+
43
+ devcerts.each do |data|
44
+ cert = OpenSSL::X509::Certificate.new(data.read)
45
+ decoded_certs << "#{cert.subject},#{cert.not_before}"
46
+ end
47
+
48
+ rows << [ 'Certificates', decoded_certs.join("\n") ]
49
+ table = Terminal::Table.new :headings => headings, :rows => rows
50
+ puts table
51
+
52
+ end
53
+
54
+ desc "device::add","device::add <bundle_id> <device>"
11
55
  def add_device(bundle_id,device)
12
56
  puts bundle_id
13
57
  puts device
data/slowlane.gemspec CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "slowlane"
5
- s.version = "0.0.6"
5
+ s.version = "0.0.8"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.license = 'MIT'
8
8
  s.authors = ["Patrick Debois"]
9
9
  s.email = ["patrick.debois@jedi.be"]
10
10
  s.homepage = "http://github.com/jedi4ever/slowlane/"
11
- s.summary = %q{Fastlane without the magic - managing ios deployment}
12
- s.description = %q{Cli version without supprises}
11
+ s.summary = %q{Fastlane without the magic}
12
+ s.description = %q{Fastlane Cli without supprises}
13
13
 
14
14
  s.required_rubygems_version = ">= 2.0.6"
15
15
  s.rubyforge_project = "slowlane"
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
21
21
  s.add_dependency 'rubyzip', '~> 1.1'
22
22
  s.add_dependency 'zip-zip'
23
23
  s.add_dependency 'CFPropertyList'
24
+ s.add_dependency 'openssl'
24
25
 
25
26
  s.files = `git ls-files`.split("\n")
26
27
  s.executables = `git ls-files`.split("\n").map { |f| f =~ /^bin\/(.*)/ ? $1 : nil }.compact
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slowlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Debois
@@ -108,7 +108,21 @@ dependencies:
108
108
  - - '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- description: Cli version without supprises
111
+ - !ruby/object:Gem::Dependency
112
+ name: openssl
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: Fastlane Cli without supprises
112
126
  email:
113
127
  - patrick.debois@jedi.be
114
128
  executables:
@@ -161,5 +175,5 @@ rubyforge_project: slowlane
161
175
  rubygems_version: 2.2.2
162
176
  signing_key:
163
177
  specification_version: 4
164
- summary: Fastlane without the magic - managing ios deployment
178
+ summary: Fastlane without the magic
165
179
  test_files: []