motion-appstore 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/command/utils.rb +47 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f7d005be924cde96c65030fb10b8462e814528e
|
4
|
+
data.tar.gz: f5d2fe3ae1d9238d135a7598d55405537a38099b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0209a3a2aba9638f2835c3a6edf1de230e054f9fb1f217f98a4d6d0d59e5980f51e52dbf78799ae012dbabec7a2fa8b6ffb90076d5b28910b8f7e4685134d27
|
7
|
+
data.tar.gz: 720e06b63a944bfa0f5cfdda1039abc4f0441acddb99bab591451353557350eb050801bc0ebf6de4c550e5c9436d1d82db7e32b9d0af40850a57b83e0fdbb931
|
data/command/utils.rb
CHANGED
@@ -28,20 +28,59 @@ module Utils
|
|
28
28
|
ALTOOL = "/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool"
|
29
29
|
|
30
30
|
def altool(arg)
|
31
|
+
if verbose?
|
32
|
+
puts "----------------------------------------"
|
33
|
+
puts " COMMAND : "
|
34
|
+
puts "\"#{ALTOOL}\" #{arg}"
|
35
|
+
end
|
31
36
|
message = `\"#{ALTOOL}\" #{arg} 2>&1`
|
37
|
+
if verbose?
|
38
|
+
puts "----------------------------------------"
|
39
|
+
puts " RETURN : "
|
40
|
+
puts message
|
41
|
+
end
|
42
|
+
|
32
43
|
messages = parse_nslog_message(message)
|
33
44
|
print_messages(messages, $?.exitstatus == 0)
|
34
45
|
|
35
46
|
$?.exitstatus
|
36
47
|
end
|
37
48
|
|
38
|
-
def
|
49
|
+
def config
|
39
50
|
unless File.exist?('Rakefile')
|
40
51
|
help! "Run on root directoy of RubyMotion project."
|
41
52
|
end
|
42
53
|
|
54
|
+
unless @config
|
55
|
+
config = `rake config`.strip
|
56
|
+
if config.empty?
|
57
|
+
# for motion-game/flow
|
58
|
+
config = `rake ios:config`.strip
|
59
|
+
end
|
60
|
+
|
61
|
+
@config = {}
|
62
|
+
config.lines.each do |line|
|
63
|
+
m = line.strip.match(/(.+)\s+: (.+)/)
|
64
|
+
k = $1
|
65
|
+
v = eval($2)
|
66
|
+
@config[k.strip] = v
|
67
|
+
end
|
68
|
+
end
|
69
|
+
@config
|
70
|
+
end
|
71
|
+
|
72
|
+
def build_dir
|
73
|
+
config['build_dir']
|
74
|
+
end
|
75
|
+
|
76
|
+
def deployment_target
|
77
|
+
config['deployment_target']
|
78
|
+
end
|
79
|
+
|
80
|
+
def archive_path
|
43
81
|
# select *.ipa or *.pkg in Release directory.
|
44
|
-
|
82
|
+
target = deployment_target || "*"
|
83
|
+
archive = Dir.glob("./#{build_dir}/{iPhoneOS,MacOSX,AppleTVOS}-#{target}-Release/*.{ipa,pkg}").first
|
45
84
|
unless archive
|
46
85
|
help! "Can't find *.ipa or *.pkg. First, need to create archive file with `rake archive:distribution'."
|
47
86
|
end
|
@@ -50,7 +89,12 @@ module Utils
|
|
50
89
|
|
51
90
|
def password
|
52
91
|
# retrive password from keychain which might be created by Xcode
|
92
|
+
if verbose?
|
93
|
+
puts "----------------------------------------"
|
94
|
+
puts " PASSWORD : "
|
95
|
+
end
|
53
96
|
`security find-internet-password -g -a \"#{@adc_id}\" -s idmsa.apple.com -r htps 2>&1`.each_line { |line|
|
97
|
+
puts line if verbose?
|
54
98
|
if line =~ /^password: "(.+)"$/
|
55
99
|
return $1
|
56
100
|
end
|
@@ -70,6 +114,7 @@ module Utils
|
|
70
114
|
pass = `read -s -p "#{prompt}" password; echo $password`.strip
|
71
115
|
end
|
72
116
|
puts ""
|
117
|
+
puts pass if verbose?
|
73
118
|
pass
|
74
119
|
end
|
75
120
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-appstore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This is RubyMotion plugin which provides commands deal with iTunes Connect.
|
14
14
|
email:
|
@@ -44,9 +44,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
44
44
|
version: '0'
|
45
45
|
requirements: []
|
46
46
|
rubyforge_project:
|
47
|
-
rubygems_version: 2.
|
47
|
+
rubygems_version: 2.6.6
|
48
48
|
signing_key:
|
49
49
|
specification_version: 4
|
50
50
|
summary: This is RubyMotion plugin which provides commands deal with iTunes Connect.
|
51
51
|
test_files: []
|
52
|
-
has_rdoc:
|