pem 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/bin/pem +12 -2
- data/lib/pem/cert_manager.rb +2 -5
- data/lib/pem/developer_center.rb +3 -3
- data/lib/pem/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d12ab8bf44ad8467e32200e2b77d60e0406d6254
|
4
|
+
data.tar.gz: 5379f10009de542b8ad113da8d0906d1c9ab86ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49ae6ed9e1b5439c20360591550734ee320b4ddc3842f4d9f0e36da12dd172ea899b5262c9c33f288179a9aee296c7c6420db5698575b1af67a99589d5b1389a
|
7
|
+
data.tar.gz: 94d1036a54d9e728a8ec498fd48cb6f934bb2754c85e9a76e4820b563789e9ba7145148e1ebf98d3757d95ba246c3c04a135212c7a71340d735f6db81f7a36ef
|
data/README.md
CHANGED
@@ -52,7 +52,7 @@ Alexander Schuch ([@schuchalexander](https://twitter.com/schuchalexander)) who a
|
|
52
52
|
|
53
53
|
-------
|
54
54
|
|
55
|
-
<h5 align="center"><code>PEM</code> is part of <a href="
|
55
|
+
<h5 align="center"><code>PEM</code> is part of <a href="https://fastlane.tools">fastlane</a>: connect all deployment tools into one streamlined workflow.</h5>
|
56
56
|
|
57
57
|
# Features
|
58
58
|
Well, it's actually just one: Generate the ```pem``` file for your server.
|
@@ -99,6 +99,7 @@ In case you prefer environment variables:
|
|
99
99
|
- ```PEM_USERNAME```
|
100
100
|
- ```PEM_APP_IDENTIFIER```
|
101
101
|
- ```PEM_TEAM_ID```
|
102
|
+
- ```PEM_SAVE_PRIVATEKEY``` - Set to "1" to save the private RSA key
|
102
103
|
|
103
104
|
# How does it work?
|
104
105
|
There are 2 actions involved:
|
@@ -113,9 +114,9 @@ There are 2 actions involved:
|
|
113
114
|
|
114
115
|
# Tips
|
115
116
|
|
116
|
-
## [`fastlane`](
|
117
|
+
## [`fastlane`](https://fastlane.tools) Toolchain
|
117
118
|
|
118
|
-
- [`fastlane`](
|
119
|
+
- [`fastlane`](https://fastlane.tools): Connect all deployment tools into one streamlined workflow
|
119
120
|
- [`deliver`](https://github.com/KrauseFx/deliver): Upload screenshots, metadata and your app to the App Store using a single command
|
120
121
|
- [`snapshot`](https://github.com/KrauseFx/snapshot): Automate taking localized screenshots of your iOS app on every device
|
121
122
|
- [`frameit`](https://github.com/KrauseFx/frameit): Quickly put your screenshots into the right device frames
|
data/bin/pem
CHANGED
@@ -16,7 +16,7 @@ class PemApplication
|
|
16
16
|
program :version, PEM::VERSION
|
17
17
|
program :description, 'CLI for \'PEM\' - Automatically generate and renew your push notification profiles'
|
18
18
|
program :help, 'Author', 'Felix Krause <pem@krausefx.com>'
|
19
|
-
program :help, 'Website', '
|
19
|
+
program :help, 'Website', 'https://fastlane.tools'
|
20
20
|
program :help, 'GitHub', 'https://github.com/krausefx/PEM'
|
21
21
|
program :help_formatter, :compact
|
22
22
|
|
@@ -34,7 +34,7 @@ class PemApplication
|
|
34
34
|
app = app_identifier(options)
|
35
35
|
username(options)
|
36
36
|
|
37
|
-
path = PEM::CertManager.new.run(app, !options.development)
|
37
|
+
path, rsa_file = PEM::CertManager.new.run(app, !options.development)
|
38
38
|
|
39
39
|
if path
|
40
40
|
file_name = File.basename(path)
|
@@ -42,6 +42,16 @@ class PemApplication
|
|
42
42
|
FileUtils.mv(path, output)
|
43
43
|
puts output.green
|
44
44
|
end
|
45
|
+
|
46
|
+
if ENV["PEM_SAVE_PRIVATEKEY"]
|
47
|
+
file_name = File.basename(rsa_file)
|
48
|
+
output = "./#{file_name}"
|
49
|
+
FileUtils.mv(rsa_file, output)
|
50
|
+
puts output.green
|
51
|
+
else
|
52
|
+
File.delete(rsa_file)
|
53
|
+
end
|
54
|
+
|
45
55
|
end
|
46
56
|
end
|
47
57
|
|
data/lib/pem/cert_manager.rb
CHANGED
@@ -7,7 +7,7 @@ module PEM
|
|
7
7
|
|
8
8
|
Helper.log.info "Refreshing push notification profiles for app '#{app_identifier}'"
|
9
9
|
|
10
|
-
dev =
|
10
|
+
dev = PEM::DeveloperCenter.new
|
11
11
|
|
12
12
|
cert_file = dev.fetch_cer_file(app_identifier, production)
|
13
13
|
rsa_file = File.join(TMP_FOLDER, 'private_key.key')
|
@@ -22,10 +22,7 @@ module PEM
|
|
22
22
|
content = File.read(pem_temp) + File.read(rsa_file)
|
23
23
|
File.write(pem_file, content)
|
24
24
|
|
25
|
-
|
26
|
-
File.delete(rsa_file)
|
27
|
-
|
28
|
-
return pem_file
|
25
|
+
return pem_file, rsa_file
|
29
26
|
end
|
30
27
|
|
31
28
|
private
|
data/lib/pem/developer_center.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'fastlane_core/developer_center/developer_center'
|
2
2
|
|
3
|
-
module
|
4
|
-
class DeveloperCenter
|
3
|
+
module PEM
|
4
|
+
class DeveloperCenter < FastlaneCore::DeveloperCenter
|
5
5
|
APP_IDS_URL = "https://developer.apple.com/account/ios/identifiers/bundle/bundleList.action"
|
6
6
|
|
7
7
|
|
@@ -49,7 +49,7 @@ module FastlaneCore
|
|
49
49
|
|
50
50
|
return true
|
51
51
|
else
|
52
|
-
raise DeveloperCenterGeneralError.new("Could not find app with identifier '#{app_identifier}' on apps page.")
|
52
|
+
raise DeveloperCenterGeneralError.new("Could not find app with identifier '#{app_identifier}' on apps page. The identifier is case sensitive.")
|
53
53
|
end
|
54
54
|
rescue => ex
|
55
55
|
error_occured(ex)
|
data/lib/pem/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane_core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,7 +139,7 @@ files:
|
|
139
139
|
- lib/pem/developer_center.rb
|
140
140
|
- lib/pem/signing_request.rb
|
141
141
|
- lib/pem/version.rb
|
142
|
-
homepage:
|
142
|
+
homepage: https://fastlane.tools
|
143
143
|
licenses:
|
144
144
|
- MIT
|
145
145
|
metadata: {}
|