motion-appstore 1.0.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -0
- data/command/utils.rb +4 -4
- data/ext/extconf.rb +2 -11
- data/ext/installer.rb +15 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4d05d6c94b6d72e493b7dcf789bf2160814bed6
|
4
|
+
data.tar.gz: 67dc0aba29da4ebc8a75fa48c9791ed16c5e9684
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1985ceb887f1a7f6f7f9405ec6ec3ad64ed1cba74d0bf7de84d5fa47997ac4b430dce04a2793e294ff092f7d371d07168706280e142e4f7292c7b04424b80d72
|
7
|
+
data.tar.gz: 082d0c482d5de733f7d923ae14047139ef40160d1d28b7c74764ca77c93fa516ab4385d0ae4d5aa8af9082d6873f8e2bed934c27eebb6a17da8770475b9875fb
|
data/README.md
CHANGED
@@ -2,6 +2,20 @@
|
|
2
2
|
|
3
3
|
This is RubyMotion plugin which provides `validate` and `upload` commands for iTunes Connect.
|
4
4
|
|
5
|
+
## Install
|
6
|
+
|
7
|
+
```
|
8
|
+
$ gem install motion-appstore
|
9
|
+
```
|
10
|
+
|
11
|
+
If you like to install manually,
|
12
|
+
|
13
|
+
```
|
14
|
+
$ git clone https://github.com/Watson1978/motion-appstore.git
|
15
|
+
$ cd motion-appstore
|
16
|
+
$ rake install
|
17
|
+
```
|
18
|
+
|
5
19
|
## Usage
|
6
20
|
|
7
21
|
```
|
data/command/utils.rb
CHANGED
@@ -6,11 +6,11 @@ module Utils
|
|
6
6
|
help! "Run on Root Directoy of RubyMotion Project"
|
7
7
|
end
|
8
8
|
|
9
|
-
# There might be *.ipa in Development and Release directory.
|
10
|
-
# In here, it takes *.ipa in Release with #last method
|
11
|
-
archive = Dir.glob("./build/*/*.ipa").last
|
9
|
+
# There might be *.ipa or *.pkg in Development and Release directory.
|
10
|
+
# In here, it takes *.ipa or *.pkg in Release with #last method
|
11
|
+
archive = Dir.glob("./build/*/*.{ipa,pkg}").last
|
12
12
|
unless archive
|
13
|
-
help! "Can't find *.ipa. First, need to create
|
13
|
+
help! "Can't find *.ipa or *.pkg. First, need to create archive file with `rake archive' or `rake archive:distribution'"
|
14
14
|
end
|
15
15
|
archive
|
16
16
|
end
|
data/ext/extconf.rb
CHANGED
@@ -1,16 +1,7 @@
|
|
1
1
|
# Command-Line Plugin Installer
|
2
|
-
require '
|
2
|
+
require './installer'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
files = ["motion-validate.rb", "motion-upload.rb"]
|
7
|
-
files.each do |file|
|
8
|
-
src = File.expand_path(File.join(File.dirname(__FILE__), "../command/#{file}"))
|
9
|
-
dst = File.join(dir, file)
|
10
|
-
|
11
|
-
FileUtils.mkdir_p(dir) unless File.exist?(dir)
|
12
|
-
FileUtils.ln_sf src, dst
|
13
|
-
end
|
4
|
+
install_plugins()
|
14
5
|
|
15
6
|
### dummy ###
|
16
7
|
require 'mkmf'
|
data/ext/installer.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Command-Line Plugin Installer
|
2
|
+
require 'fileutils'
|
3
|
+
|
4
|
+
def install_plugins
|
5
|
+
dir = File.expand_path("~/Library/RubyMotion/command/")
|
6
|
+
|
7
|
+
Dir.glob(File.join(File.dirname(__FILE__), "../command/motion-*")).each do |path|
|
8
|
+
file = File.basename(path)
|
9
|
+
src = File.expand_path(path)
|
10
|
+
dst = File.join(dir, file)
|
11
|
+
|
12
|
+
FileUtils.mkdir_p(dir) unless File.exist?(dir)
|
13
|
+
FileUtils.ln_sf src, dst
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watson
|
@@ -23,6 +23,7 @@ files:
|
|
23
23
|
- command/motion-validate.rb
|
24
24
|
- command/utils.rb
|
25
25
|
- ext/extconf.rb
|
26
|
+
- ext/installer.rb
|
26
27
|
homepage: https://github.com/Watson1978/motion-appstore
|
27
28
|
licenses:
|
28
29
|
- MIT
|