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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 308cb86fd24ed703222196e7c3848500ff38320a
4
- data.tar.gz: b3826b11fdd994e194cd501ef721789a4f1900b3
3
+ metadata.gz: c4d05d6c94b6d72e493b7dcf789bf2160814bed6
4
+ data.tar.gz: 67dc0aba29da4ebc8a75fa48c9791ed16c5e9684
5
5
  SHA512:
6
- metadata.gz: 17316f490766cdb3e72299619c4ae55790bcabc3e9327e9493df37ec2be5d605d5113302f5a49b6f03ab01b0810267b10f3b32a92f0dd0937c02aea561a9bb47
7
- data.tar.gz: 482ec087290931599714673209ee52d10ca0eceaedf82bcc6059218c5d55527b89d0a6b27e8e1c6a04ac5f0354029bd89426bf0394de64db16694e7073462ea8
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 *.ipa with `rake archive' or `rake archive:distribution'"
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 'fileutils'
2
+ require './installer'
3
3
 
4
- dir = File.expand_path("~/Library/RubyMotion/command/")
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.2
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