certstepper 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/certstepper.rb +19 -6
- 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: 3b5103fc4e4ea8316b512b5fa98d7cbe7e5ef863
|
4
|
+
data.tar.gz: 61e1812cb40a40492cdcc7d1b7c36b8ac8298e44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bc110892aaae0e43b4a673874447c7904451ebda05ef9d5807f1aac765eed3c87601db847261bdd2860276ea64fd9d3c8af01c3e5bc73e031baf2e26873adda
|
7
|
+
data.tar.gz: 9261c26e68dc58d497595faca6abbdd43cedb91ecc879c6d6d83f1549261524ebbe7d1e7964eb2a83d5ea67ea97028f6d26425268e0ecc15f7de3af6cf73cda2
|
data/lib/certstepper.rb
CHANGED
@@ -24,15 +24,27 @@ module CertStepper
|
|
24
24
|
@@certs.each do |cert|
|
25
25
|
puts "----------- begin #{cert.profile_id} Cert ----------- \n"
|
26
26
|
self.createDir @@root_path + "/#{cert.profile_name}"
|
27
|
-
puts "1. copy
|
27
|
+
puts "1. copy email. <press enter>"
|
28
|
+
self.getUserInput
|
29
|
+
self.copyToClipboard cert.email
|
30
|
+
puts "email coppied : #{cert.email}\n"
|
31
|
+
puts "2. copy password. <press enter>"
|
32
|
+
self.getUserInput
|
33
|
+
self.copyToClipboard cert.password
|
34
|
+
puts "password coppied : #{cert.password}\n"
|
35
|
+
puts "3. copy profile name. <press enter>"
|
28
36
|
self.getUserInput
|
29
37
|
self.copyToClipboard cert.profile_name
|
30
38
|
puts "name coppied : #{cert.profile_name}\n"
|
31
|
-
puts "\
|
39
|
+
puts "\n4. copy profile id. <press enter>"
|
32
40
|
self.getUserInput
|
33
41
|
self.copyToClipboard cert.profile_id
|
34
42
|
puts "id coppied : #{cert.profile_id}"
|
35
|
-
puts "\
|
43
|
+
puts "\n5. copy profile name. <press enter>"
|
44
|
+
self.getUserInput
|
45
|
+
self.copyToClipboard cert.profile_name
|
46
|
+
puts "name coppied : #{cert.profile_name}\n"
|
47
|
+
puts "\n5. move profile to destination from download. <press enter>"
|
36
48
|
self.getUserInput
|
37
49
|
mobileprovision_name = "#{cert.profile_name}.mobileprovision"
|
38
50
|
source_file = "#{File.expand_path('~')}/Downloads/#{mobileprovision_name}"
|
@@ -59,10 +71,9 @@ module CertStepper
|
|
59
71
|
file_content= line_array.join
|
60
72
|
file_content = file_content.gsub /[\r]/,"\n"
|
61
73
|
file_content.each_line do |line|
|
62
|
-
|
63
74
|
cert_prop_index = index%3
|
64
75
|
line_content = line.gsub! /[\s\n\t\r]/ ,""
|
65
|
-
if !line_content.empty?
|
76
|
+
if line_content !=nil && !line_content.empty?
|
66
77
|
case cert_prop_index
|
67
78
|
when 0
|
68
79
|
new_cert = Cert.new
|
@@ -72,7 +83,9 @@ module CertStepper
|
|
72
83
|
new_cert.password = line_content.strip
|
73
84
|
when 2
|
74
85
|
new_cert.profile_id = line_content.strip
|
75
|
-
|
86
|
+
line_content.strip.split(".").each do |comp|
|
87
|
+
new_cert.profile_name = comp if comp =~ /b\d*/
|
88
|
+
end
|
76
89
|
end
|
77
90
|
index+=1
|
78
91
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: certstepper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chengkai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: fetch apple app
|
14
14
|
email: chengkai@1853.com
|