fir-cli 1.2.6 → 1.2.7

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: 5f48c14176fce237d55a83aec0c5b3c4435218fa
4
- data.tar.gz: 11d59615e787d455342963f7acebb1d622ec0752
3
+ metadata.gz: aae37560a32f8148019401781f25a6178eb42928
4
+ data.tar.gz: 9d7ea5da155442ecb9dbb3d403d6fd92d8df2dd5
5
5
  SHA512:
6
- metadata.gz: 79404fa3ae49d5eeac17d98c07565f260b0d9661bca12d7de07b0688575e0b40f0cfd9bbfa07e018a4d405c07677df9bba7cd050fdfcfcf2dcecee8f0148e628
7
- data.tar.gz: 89874e9aaa92023046bdd504150a2e6e07a5d868252410f1069d37ecc9beeae72017e47b17d3234c5c3a2d79455d70fd6f2f90373c5924ae763464ed2725298c
6
+ metadata.gz: 450db2d41ecb6a4387b98da3ff8cd8d7d940dc7dbddb5c8d83a30a9eaf529fd23b4b3d216b4923a24cd23507357f56bf97c1b019f6bcd42bdc41d3d7ceba7cb4
7
+ data.tar.gz: 1f80cf0bf64c316b23a1fbc2b069333caff25b638bd3984e41413e02aa6c605208499914f726533e45c7419c620b1074664391e58c1f18f30136c068495ccf3a
data/.gitignore CHANGED
@@ -18,3 +18,4 @@ mkmf.log
18
18
  *.gem
19
19
  Gemfile.lock
20
20
  .DS_Store
21
+ /test/cases/*.png
data/CHANGELOG CHANGED
@@ -1,5 +1,8 @@
1
1
  ## 更新记录
2
2
 
3
+ ### fir-cli 1.2.7
4
+ - publish 时增加更多信息
5
+
3
6
  ### fir-cli 1.2.6
4
7
  - 增加导出二维码功能
5
8
  - 使用 `fir p <app file path> -Q`
data/fir-cli.gemspec CHANGED
@@ -27,7 +27,8 @@ Gem::Specification.new do |spec|
27
27
  /_/ /___/_/ |_| \____/_____/___/
28
28
 
29
29
  ## 更新记录
30
- ### fir-cli 1.2.6
30
+ ### fir-cli 1.2.7
31
+ - publish 时增加更多信息
31
32
  - 增加导出二维码功能
32
33
  - 使用 `fir p <app file path> -Q`
33
34
  - 或者 `fir bi(ba) <project dir> -p -Q` 即可导出当前 app 的二维码图片
@@ -7,8 +7,7 @@ module FIR
7
7
  initialize_publish_options(args, options)
8
8
  check_supported_file_and_token
9
9
 
10
- logger.info 'Publishing app.......'
11
- logger_info_dividing_line
10
+ logger_info_publishing_message
12
11
 
13
12
  @app_info = send("#{@file_type}_info", @file_path, full_info: true)
14
13
  @uploading_info = fetch_uploading_info
@@ -23,6 +22,16 @@ module FIR
23
22
  logger_info_blank_line
24
23
  end
25
24
 
25
+ def logger_info_publishing_message
26
+ user_info = fetch_user_info(@token)
27
+
28
+ email = user_info.fetch(:email, '')
29
+ name = user_info.fetch(:name, '')
30
+
31
+ logger.info "Publishing app via #{name}<#{email}>......."
32
+ logger_info_dividing_line
33
+ end
34
+
26
35
  def upload_app
27
36
  @icon_cert = @uploading_info[:cert][:icon]
28
37
  @binary_cert = @uploading_info[:cert][:binary]
data/lib/fir/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module FIR
4
- VERSION = '1.2.6'
4
+ VERSION = '1.2.7'
5
5
  end
data/test/publish_test.rb CHANGED
@@ -5,7 +5,8 @@ class PublishTest < Minitest::Test
5
5
  def test_publish
6
6
  options = {
7
7
  token: default_token,
8
- changelog: "test from fir-cli #{Time.now.to_i}"
8
+ changelog: "test from fir-cli #{Time.now.to_i}",
9
+ qrcode: true
9
10
  }
10
11
 
11
12
  assert FIR.publish(default_ipa, options)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fir-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - NaixSpirit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-21 00:00:00.000000000 Z
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -196,9 +196,10 @@ metadata: {}
196
196
  post_install_message: "\n ______________ ________ ____\n /
197
197
  ____/ _/ __ \\ / ____/ / / _/\n / /_ / // /_/ /_____/ / / / /
198
198
  /\n / __/ _/ // _, _/_____/ /___/ /____/ /\n /_/ /___/_/ |_| \\____/_____/___/\n\n
199
- \ ## 更新记录\n ### fir-cli 1.2.6\n - 增加导出二维码功能\n - 使用 `fir p <app file path> -Q`\n
200
- \ - 或者 `fir bi(ba) <project dir> -p -Q` 即可导出当前 app 的二维码图片\n - [fir-cli](https://github.com/FIRHQ/fir-cli)
201
- 已经开源\n - 欢迎 fork, issue 和 pull request\n "
199
+ \ ## 更新记录\n ### fir-cli 1.2.7\n - publish 时增加更多信息\n - 增加导出二维码功能\n - 使用 `fir
200
+ p <app file path> -Q`\n - 或者 `fir bi(ba) <project dir> -p -Q` 即可导出当前 app 的二维码图片\n
201
+ \ - [fir-cli](https://github.com/FIRHQ/fir-cli) 已经开源\n - 欢迎 fork, issue 和 pull
202
+ request\n "
202
203
  rdoc_options: []
203
204
  require_paths:
204
205
  - lib