appload 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +7 -2
- data/lib/appload/runner.rb +14 -10
- data/lib/appload/version.rb +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: 3ed75f3537a0816919a9f8526114857d7370b305
|
4
|
+
data.tar.gz: afe40591f22627c2524c83b2b83c8556f8700768
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d28c1b7a2a2aeb311bf164bfdaac6e872095b7c57e80c6833e4294285cefb3306e444d502e3e630b89d0c7785adefc309bfdbfdf16a29b779105475caf60422
|
7
|
+
data.tar.gz: ac54196df61eb943488f150d838a8987a99e96a9818a36ac72b07af00901664d29a71ad5177230067e7a045f8514fe88eb8ae775c791bb75f9875ae883f34359
|
data/.rubocop_todo.yml
CHANGED
@@ -1,11 +1,16 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2016-03-
|
3
|
+
# on 2016-03-20 14:52:20 -0700 using RuboCop version 0.38.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
+
# Offense count: 1
|
10
|
+
Lint/ParenthesesAsGroupedExpression:
|
11
|
+
Exclude:
|
12
|
+
- 'lib/appload/runner.rb'
|
13
|
+
|
9
14
|
# Offense count: 2
|
10
15
|
Metrics/AbcSize:
|
11
16
|
Max: 23
|
@@ -16,7 +21,7 @@ Metrics/AbcSize:
|
|
16
21
|
Metrics/LineLength:
|
17
22
|
Max: 104
|
18
23
|
|
19
|
-
# Offense count:
|
24
|
+
# Offense count: 2
|
20
25
|
# Configuration parameters: CountComments.
|
21
26
|
Metrics/MethodLength:
|
22
27
|
Max: 20
|
data/lib/appload/runner.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'awesome_print'
|
2
2
|
require 'colored'
|
3
3
|
require 'pliney'
|
4
|
+
require 'yaml'
|
4
5
|
|
5
6
|
module Appload
|
6
7
|
class Runner
|
@@ -17,8 +18,6 @@ module Appload
|
|
17
18
|
Pliney::IPA.from_path(options[:ipa_path]) do |ipa|
|
18
19
|
@ipa = ipa
|
19
20
|
|
20
|
-
actions = [:check_ipa, :check_info_plist, :check_mpp]
|
21
|
-
|
22
21
|
actions.each do |action|
|
23
22
|
send(action)
|
24
23
|
prompt_user
|
@@ -28,17 +27,22 @@ module Appload
|
|
28
27
|
submit!
|
29
28
|
end
|
30
29
|
|
31
|
-
def
|
32
|
-
|
33
|
-
|
34
|
-
|
30
|
+
def actions
|
31
|
+
[:check_ipa_action, :check_info_plist_action, :check_mpp_action]
|
32
|
+
end
|
33
|
+
|
34
|
+
def check_ipa_action
|
35
|
+
puts 'Please verify the following .ipa information:'
|
36
|
+
ap ({ path: @options[:ipa_path],
|
37
|
+
bundle_id: @ipa.bundle_identifier,
|
38
|
+
bundle_version: @ipa.bundle_version })
|
35
39
|
end
|
36
40
|
|
37
|
-
def
|
41
|
+
def check_info_plist_action
|
38
42
|
ap(@ipa.info_plist, index: false)
|
39
43
|
end
|
40
44
|
|
41
|
-
def
|
45
|
+
def check_mpp_action
|
42
46
|
profile = @ipa.provisioning_profile
|
43
47
|
|
44
48
|
if !profile
|
@@ -53,7 +57,7 @@ module Appload
|
|
53
57
|
fingerprint = OpenSSL::Digest::SHA1.new(cert.to_der).to_s.upcase
|
54
58
|
|
55
59
|
ap 'Please verify the following provisioning profile information:'
|
56
|
-
sleep(1
|
60
|
+
sleep(1)
|
57
61
|
|
58
62
|
ap({
|
59
63
|
name: profile.name,
|
@@ -81,7 +85,7 @@ module Appload
|
|
81
85
|
end
|
82
86
|
end
|
83
87
|
|
84
|
-
def prompt_user(message = 'Continue?', fail_hard = true
|
88
|
+
def prompt_user(message = 'Continue?', fail_hard = true)
|
85
89
|
print "#{message} ".green
|
86
90
|
|
87
91
|
if yes?
|
data/lib/appload/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Chang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|