appload 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a2952d6c0fcc678a064d5658ea25f62ba089aef
4
- data.tar.gz: 45d7baab200d2f4924c1ad016dca46f7507e0136
3
+ metadata.gz: 3ed75f3537a0816919a9f8526114857d7370b305
4
+ data.tar.gz: afe40591f22627c2524c83b2b83c8556f8700768
5
5
  SHA512:
6
- metadata.gz: 4aed45cc8a09ea43509a69e8eaef01b3c8dcd99beb18f44c8b9b80fae2dbcb33a06c3bb5f776d5c7be682a1488930093b5d4759ddde8cd8018a5e2b109c4b0ee
7
- data.tar.gz: a24bf23ddcb17027e64fc4ee71c91ee8926e335c7e4208c6a639558cb4e6f5577df4c913da47386720063e6f9c7c0b29c6e4994eee5f9b1f62b87b0e9cff76ac
6
+ metadata.gz: 8d28c1b7a2a2aeb311bf164bfdaac6e872095b7c57e80c6833e4294285cefb3306e444d502e3e630b89d0c7785adefc309bfdbfdf16a29b779105475caf60422
7
+ data.tar.gz: ac54196df61eb943488f150d838a8987a99e96a9818a36ac72b07af00901664d29a71ad5177230067e7a045f8514fe88eb8ae775c791bb75f9875ae883f34359
@@ -1,11 +1,16 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2016-03-18 10:59:36 -0700 using RuboCop version 0.38.0.
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: 3
24
+ # Offense count: 2
20
25
  # Configuration parameters: CountComments.
21
26
  Metrics/MethodLength:
22
27
  Max: 20
@@ -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 check_ipa
32
- ap 'Please verify the following .ipa information:'
33
- ap('path' => @options[:ipa_path],
34
- bundle_id: @ipa.bundle_identifier)
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 check_info_plist
41
+ def check_info_plist_action
38
42
  ap(@ipa.info_plist, index: false)
39
43
  end
40
44
 
41
- def check_mpp
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.5)
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, **_opts)
88
+ def prompt_user(message = 'Continue?', fail_hard = true)
85
89
  print "#{message} ".green
86
90
 
87
91
  if yes?
@@ -1,3 +1,3 @@
1
1
  module Appload
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
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.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-18 00:00:00.000000000 Z
11
+ date: 2016-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print