fir-cli-batch 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +8 -8
- data/fir-cli-batch.gemspec +3 -2
- data/lib/fir-cli-batch/version.rb +7 -0
- data/lib/fir-cli-commands/batpub.rb +2 -2
- data/lib/fir-cli-commands/batres.rb +2 -2
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c20e6d61ec6ea4d0bcef4e80fbd936b9e5d28e0
|
4
|
+
data.tar.gz: 9737c05390871e013658b2622d3ae0f9f904f8b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d70adcf15ea4784e10203833fd9b39ec74be3a5d0d8375218014171de88305f371d203d6afc68789cdb4a5a079a140b5ce0e4e2f289227b4e94c2d63ee2d8848
|
7
|
+
data.tar.gz: 5c2c809d4bc33352b41d50cec6babfbfd5f39cbaa8d2c4842a0544ddb86d8f47f3a4914e35e4cdc40565a7ee89406ba58ad321b1376a74dc7b0cf69e324e4f58
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fir-cli-batch (0.0.
|
5
|
-
fir-cli
|
4
|
+
fir-cli-batch (0.0.3)
|
5
|
+
fir-cli (~> 0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://ruby.taobao.org/
|
9
9
|
specs:
|
10
10
|
CFPropertyList (2.2.8)
|
11
|
-
fir-cli (0.1.
|
12
|
-
highline (~> 1.6
|
11
|
+
fir-cli (0.1.4)
|
12
|
+
highline (~> 1.6)
|
13
13
|
lagunitas (= 0.0.1)
|
14
|
-
paint (~> 0.9
|
14
|
+
paint (~> 0.9)
|
15
15
|
pngdefry (= 0.1.1)
|
16
|
-
rest_client (~> 1.8
|
17
|
-
ruby_apk (~> 0.7
|
18
|
-
thor (~> 0.19
|
16
|
+
rest_client (~> 1.8)
|
17
|
+
ruby_apk (~> 0.7)
|
18
|
+
thor (~> 0.19)
|
19
19
|
user_config (= 0.0.4)
|
20
20
|
highline (1.6.21)
|
21
21
|
lagunitas (0.0.1)
|
data/fir-cli-batch.gemspec
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'fir-cli-batch/version'
|
4
5
|
|
5
6
|
Gem::Specification.new do |s|
|
6
7
|
s.name = 'fir-cli-batch'
|
7
|
-
s.version =
|
8
|
+
s.version = Fir::Cli::Batch::VERSION
|
8
9
|
s.date = '2014-11-25'
|
9
10
|
s.summary = 'FIR.im 批量处理工具'
|
10
11
|
s.description = 'FIR.im 批量处理工具,支持 ios 和 android'
|
@@ -14,5 +15,5 @@ Gem::Specification.new do |s|
|
|
14
15
|
s.files = `git ls-files -z`.split("\x0")
|
15
16
|
s.require_paths = ['./']
|
16
17
|
|
17
|
-
s.add_dependency 'fir-cli'
|
18
|
+
s.add_dependency 'fir-cli', '~> 0'
|
18
19
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fir
|
2
|
-
class Cli
|
2
|
+
class Cli
|
3
3
|
desc 'batpub FOLDER_1, FOLDER_2, ...', '批量上传指定文件夹中的全部文件'
|
4
4
|
option :resign, :aliases => '-r', :desc => '是否以企业签名发布', :type => :boolean
|
5
5
|
option :token, :aliases => '-t', :desc => '用户令牌'
|
@@ -7,7 +7,7 @@ module Fir
|
|
7
7
|
option :verbose, :aliases => '-v', :desc => '设置输出级别 v, vv, vvv'
|
8
8
|
option :quiet, :aliases => '-q', :desc => '安静模式,不输出任何选项'
|
9
9
|
def batpub(*dirs)
|
10
|
-
|
10
|
+
_puts "! #{ Paint['至少需要输入提供一个文件夹', :red] }" if dirs.length == 0
|
11
11
|
dirs.each do |dir|
|
12
12
|
Dir.foreach(dir) do |f|
|
13
13
|
if _is_ipa(f) || _is_apk(f)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fir
|
2
|
-
class Cli
|
2
|
+
class Cli
|
3
3
|
desc 'batres FOLDER_1, FOLDER_2, ...', '批量上传指定文件夹中的全部文件'
|
4
4
|
option :email, :aliases => '-e', :desc => '邮件地址'
|
5
5
|
option :prefix, :aliases => '-p', :desc => '为签名后的文件添加前缀'
|
@@ -7,7 +7,7 @@ module Fir
|
|
7
7
|
option :verbose, :aliases => '-v', :desc => '设置输出级别 v, vv, vvv'
|
8
8
|
option :quiet, :aliases => '-q', :desc => '安静模式,不输出任何选项'
|
9
9
|
def batres(*dirs)
|
10
|
-
|
10
|
+
_puts "! #{ Paint['至少需要输入提供一个文件夹', :red] }" if dirs.length == 0
|
11
11
|
dirs.each do |dir|
|
12
12
|
Dir.foreach(dir) do |f|
|
13
13
|
extname = File.extname f
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fir-cli-batch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FIR.im
|
@@ -14,14 +14,14 @@ dependencies:
|
|
14
14
|
name: fir-cli
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
description: FIR.im 批量处理工具,支持 ios 和 android
|
@@ -30,13 +30,14 @@ executables: []
|
|
30
30
|
extensions: []
|
31
31
|
extra_rdoc_files: []
|
32
32
|
files:
|
33
|
-
- .gitignore
|
33
|
+
- ".gitignore"
|
34
34
|
- Gemfile
|
35
35
|
- Gemfile.lock
|
36
36
|
- LICENSE.txt
|
37
37
|
- README.md
|
38
38
|
- fir-cli-batch.gemspec
|
39
39
|
- fir-cli-batch.rb
|
40
|
+
- lib/fir-cli-batch/version.rb
|
40
41
|
- lib/fir-cli-commands/batpub.rb
|
41
42
|
- lib/fir-cli-commands/batres.rb
|
42
43
|
homepage:
|
@@ -46,20 +47,20 @@ metadata: {}
|
|
46
47
|
post_install_message:
|
47
48
|
rdoc_options: []
|
48
49
|
require_paths:
|
49
|
-
- ./
|
50
|
+
- "./"
|
50
51
|
required_ruby_version: !ruby/object:Gem::Requirement
|
51
52
|
requirements:
|
52
|
-
- -
|
53
|
+
- - ">="
|
53
54
|
- !ruby/object:Gem::Version
|
54
55
|
version: '0'
|
55
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
57
|
requirements:
|
57
|
-
- -
|
58
|
+
- - ">="
|
58
59
|
- !ruby/object:Gem::Version
|
59
60
|
version: '0'
|
60
61
|
requirements: []
|
61
62
|
rubyforge_project:
|
62
|
-
rubygems_version: 2.
|
63
|
+
rubygems_version: 2.2.2
|
63
64
|
signing_key:
|
64
65
|
specification_version: 4
|
65
66
|
summary: FIR.im 批量处理工具
|