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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 143345ccfb16561a6cde5f0d6681a23920b32b31
4
- data.tar.gz: 901b1cf95b1966888f78190c3044cf5b9a0d8e72
3
+ metadata.gz: 3c20e6d61ec6ea4d0bcef4e80fbd936b9e5d28e0
4
+ data.tar.gz: 9737c05390871e013658b2622d3ae0f9f904f8b6
5
5
  SHA512:
6
- metadata.gz: 8e4a495f48f8061210e54e75a7c166ad77e104cda03873e8cf536214b744382507d81ff87273634fd29c7d8c94dd6644583453213eefa08f8f4cb230b6e117fd
7
- data.tar.gz: 6a3a1b7af3dd2fb40478550684beb5a0226678586552e486399a10c4c0a6097a6419fa6dd95097e7e06a0faa88425207c6310ee5625f87daf9ef4df1ecb22374
6
+ metadata.gz: d70adcf15ea4784e10203833fd9b39ec74be3a5d0d8375218014171de88305f371d203d6afc68789cdb4a5a079a140b5ce0e4e2f289227b4e94c2d63ee2d8848
7
+ data.tar.gz: 5c2c809d4bc33352b41d50cec6babfbfd5f39cbaa8d2c4842a0544ddb86d8f47f3a4914e35e4cdc40565a7ee89406ba58ad321b1376a74dc7b0cf69e324e4f58
data/Gemfile CHANGED
@@ -1 +1,2 @@
1
+ source 'https://ruby.taobao.org/'
1
2
  gemspec
data/Gemfile.lock CHANGED
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fir-cli-batch (0.0.2)
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.2)
12
- highline (~> 1.6.21)
11
+ fir-cli (0.1.4)
12
+ highline (~> 1.6)
13
13
  lagunitas (= 0.0.1)
14
- paint (~> 0.9.0)
14
+ paint (~> 0.9)
15
15
  pngdefry (= 0.1.1)
16
- rest_client (~> 1.8.2)
17
- ruby_apk (~> 0.7.1)
18
- thor (~> 0.19.1)
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)
@@ -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 = '0.0.2'
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
@@ -0,0 +1,7 @@
1
+ module Fir
2
+ class Cli
3
+ class Batch
4
+ VERSION = '0.0.3'
5
+ end
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  module Fir
2
- class Cli < Thor
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
- puts "! #{ Paint['至少需要输入提供一个文件夹', :red] }" if dirs.length == 0
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 < Thor
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
- puts "! #{ Paint['至少需要输入提供一个文件夹', :red] }" if dirs.length == 0
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.2
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.0.14
63
+ rubygems_version: 2.2.2
63
64
  signing_key:
64
65
  specification_version: 4
65
66
  summary: FIR.im 批量处理工具