motion-appstore 1.0.6 → 1.0.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 +12 -0
- data/command/motion-upload.rb +25 -0
- data/command/motion-validate.rb +25 -0
- data/command/utils.rb +37 -5
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8a65a84ee6910510ea145b84216cd7f759439cd
|
4
|
+
data.tar.gz: c04031e039852f9f72f50016025086d755288c35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14ba9c16ccf9efcb61883986e6f33b14cf0ce03c7448c2b32ed17b0322b6ca3a4b847be342ce561071d3cd51ed2015bb6a5ca6f379150d3c97183c99da8ae230
|
7
|
+
data.tar.gz: 4c6a99cf40d9ee6e4f93e8fa324a219b167fcda0cd1042003fb4b1155abca28ef14509917bede2b1eeb75b90d7bd559ac3cfe04d02fc2fa3f949a33838749916
|
data/README.md
CHANGED
@@ -56,3 +56,15 @@ $ motion upload watson1978@gmail.com
|
|
56
56
|
Upload: ./build/iPhoneOS-8.1-Release/HelloActions.ipa
|
57
57
|
✓ No errors uploading ./build/iPhoneOS-8.1-Release/HelloActions.ipa
|
58
58
|
```
|
59
|
+
|
60
|
+
## Password management
|
61
|
+
|
62
|
+
motion-appstore attempts to retrieve your password from the keychain automatically. However, in certain circumstances, this may not work, like for example if you have not used Apple's AppLoader application before or if you are using iCloud's keychain. If motion-appstore keeps asking you for your password repeatedly, type the following command:
|
63
|
+
|
64
|
+
```
|
65
|
+
$ security add-internet-password -a <your-email-address> -j default -r htps -s idmsa.apple.com -w <your-password> -T /usr/bin/security
|
66
|
+
```
|
67
|
+
|
68
|
+
Your password will then be safely stored in the keychain and accessible by motion-appstore.
|
69
|
+
|
70
|
+
If you like GUI, you can add your password into the keychain by adding account via Xcode [Preferences...]->[Accounts] configuration.
|
data/command/motion-upload.rb
CHANGED
@@ -1,4 +1,29 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
+
|
3
|
+
# Copyright (c) 2015, HipByte SPRL and Contributors
|
4
|
+
# All rights reserved.
|
5
|
+
#
|
6
|
+
# Redistribution and use in source and binary forms, with or without
|
7
|
+
# modification, are permitted provided that the following conditions are met:
|
8
|
+
#
|
9
|
+
# 1. Redistributions of source code must retain the above copyright notice,
|
10
|
+
# this list of conditions and the following disclaimer.
|
11
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
12
|
+
# this list of conditions and the following disclaimer in the documentation
|
13
|
+
# and/or other materials provided with the distribution.
|
14
|
+
#
|
15
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
16
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
17
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
18
|
+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
19
|
+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
20
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
21
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
22
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
23
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
24
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
25
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
26
|
+
|
2
27
|
require_relative 'utils'
|
3
28
|
|
4
29
|
module Motion; class Command
|
data/command/motion-validate.rb
CHANGED
@@ -1,4 +1,29 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
+
|
3
|
+
# Copyright (c) 2015, HipByte SPRL and Contributors
|
4
|
+
# All rights reserved.
|
5
|
+
#
|
6
|
+
# Redistribution and use in source and binary forms, with or without
|
7
|
+
# modification, are permitted provided that the following conditions are met:
|
8
|
+
#
|
9
|
+
# 1. Redistributions of source code must retain the above copyright notice,
|
10
|
+
# this list of conditions and the following disclaimer.
|
11
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
12
|
+
# this list of conditions and the following disclaimer in the documentation
|
13
|
+
# and/or other materials provided with the distribution.
|
14
|
+
#
|
15
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
16
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
17
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
18
|
+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
19
|
+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
20
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
21
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
22
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
23
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
24
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
25
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
26
|
+
|
2
27
|
require_relative 'utils'
|
3
28
|
|
4
29
|
module Motion; class Command
|
data/command/utils.rb
CHANGED
@@ -1,4 +1,29 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
+
|
3
|
+
# Copyright (c) 2015, HipByte SPRL and Contributors
|
4
|
+
# All rights reserved.
|
5
|
+
#
|
6
|
+
# Redistribution and use in source and binary forms, with or without
|
7
|
+
# modification, are permitted provided that the following conditions are met:
|
8
|
+
#
|
9
|
+
# 1. Redistributions of source code must retain the above copyright notice,
|
10
|
+
# this list of conditions and the following disclaimer.
|
11
|
+
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
12
|
+
# this list of conditions and the following disclaimer in the documentation
|
13
|
+
# and/or other materials provided with the distribution.
|
14
|
+
#
|
15
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
16
|
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
17
|
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
18
|
+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
19
|
+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
20
|
+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
21
|
+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
22
|
+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
23
|
+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
24
|
+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
25
|
+
# POSSIBILITY OF SUCH DAMAGE.
|
26
|
+
|
2
27
|
module Utils
|
3
28
|
ALTOOL = "/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool"
|
4
29
|
|
@@ -16,7 +41,7 @@ module Utils
|
|
16
41
|
end
|
17
42
|
|
18
43
|
# select *.ipa or *.pkg in Release directory.
|
19
|
-
archive = Dir.glob("./build/{iPhoneOS,MacOSX}*-Release/*.{ipa,pkg}").first
|
44
|
+
archive = Dir.glob("./build/{iPhoneOS,MacOSX,AppleTVOS}*-Release/*.{ipa,pkg}").first
|
20
45
|
unless archive
|
21
46
|
help! "Can't find *.ipa or *.pkg. First, need to create archive file with `rake archive:distribution'."
|
22
47
|
end
|
@@ -40,22 +65,29 @@ module Utils
|
|
40
65
|
prompt = bold("Enter your password: ")
|
41
66
|
if STDIN.respond_to?(:noecho)
|
42
67
|
print prompt
|
43
|
-
STDIN.noecho(&:gets).strip
|
68
|
+
pass = STDIN.noecho(&:gets).strip
|
44
69
|
else
|
45
|
-
`read -s -p "#{prompt}" password; echo $password`.strip
|
70
|
+
pass = `read -s -p "#{prompt}" password; echo $password`.strip
|
46
71
|
end
|
72
|
+
puts ""
|
73
|
+
pass
|
47
74
|
end
|
48
75
|
|
49
76
|
def parse_nslog_message(message)
|
50
77
|
messages = []
|
51
|
-
message.split("\n")
|
78
|
+
tmp = message.split("\n")
|
79
|
+
tmp.shift if tmp[0].end_with?("Error: (")
|
80
|
+
tmp.each do |msg|
|
52
81
|
msg.strip!
|
53
82
|
if m = msg.match(/(No errors.+)/)
|
54
83
|
# success
|
55
84
|
messages << m[1]
|
56
|
-
elsif m = msg.match(
|
85
|
+
elsif m = msg.match(/NSLocalizedDescription=(.+), NSLocalizedFailureReason=/)
|
57
86
|
# error
|
58
87
|
messages << m[1]
|
88
|
+
elsif m = msg.match(/(Error:.+)/)
|
89
|
+
# other errors
|
90
|
+
messages << m[1]
|
59
91
|
end
|
60
92
|
end
|
61
93
|
messages
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-30 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:
|
@@ -24,7 +24,7 @@ files:
|
|
24
24
|
- command/utils.rb
|
25
25
|
- ext/extconf.rb
|
26
26
|
- ext/installer.rb
|
27
|
-
homepage: https://github.com/
|
27
|
+
homepage: https://github.com/HipByte/motion-appstore
|
28
28
|
licenses:
|
29
29
|
- MIT
|
30
30
|
metadata: {}
|
@@ -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.4.5
|
47
|
+
rubygems_version: 2.4.5.1
|
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:
|