fir-cli-xsl 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eeef6926f6443ad2b31a7ddd0a93a18cd3c8dcdc949c8334d81525f4503e1161
4
- data.tar.gz: 8636697ecf8312500396d143c09e156f0b90350c7d7e242033c4ff9c3affb4ea
3
+ metadata.gz: 035701c86220b189a88daaa51f57c6dd974fd41f1eec54c4428613ed6f1b5ac9
4
+ data.tar.gz: f314c861426bbab0c56d14c5da39d8a50d56eaa23baca8a2ee3c5ea8581f423c
5
5
  SHA512:
6
- metadata.gz: a44af9459519d521d1898c1b3625d3d96a13ed43051e1eee5e090cf25ed79cc78efdaa1fb8b09bf23e609aef4f54f42795a0258e7bd855f60720ab36acb8895a
7
- data.tar.gz: 1492faf33e1670529528fcb5e66af3f0480d50653e5168d6ff06044b4fede30068892175487707fe29c56bdffa5abc3bf47fd0d71e9635da6faeac6743c743b3
6
+ metadata.gz: d0260caa8d91fdffabdcb04fb4b95029f4719b30d94d2ba6ed24facc9bc8bf0f118f8944a00743877a75b3923e11f4b3ee8617316e4f4f4eb4945e35ab6e19d6
7
+ data.tar.gz: bd8907191af8526ba7c2e954fcf6f601e266a9058ec208619c6305f51e48d45f8efa24fe8bbc9f0905298725ef245d6feb36f6e3474b3dd80bd662d309779af1
@@ -116,6 +116,7 @@ module FIR
116
116
 
117
117
  method_option :open, type: :boolean, desc: 'true/false if open for everyone'
118
118
  method_option :password, type: :string, desc: 'Set password for app'
119
+ method_option :dingtalk_notify, type: :boolean, aliases: '-dn', desc: 'enable dingtalk robot notify', default: true
119
120
 
120
121
  def publish(*args)
121
122
  prepare :publish
@@ -36,7 +36,11 @@ module FIR
36
36
  logger_info_dividing_line
37
37
  logger_info_app_short_and_qrcode(options)
38
38
 
39
- dingtalk_notifier(options)
39
+ # logger.info ">>>> #{options[:dingtalk_notify]}"
40
+ if options[:dingtalk_notify]
41
+ dingtalk_notifier(options)
42
+ end
43
+
40
44
  upload_mapping_file_with_publish(options)
41
45
  logger_info_blank_line
42
46
  clean_files
@@ -236,12 +240,12 @@ module FIR
236
240
 
237
241
  def dingtalk_notifier(options)
238
242
  if options[:dingtalk_access_token]
239
- title = "#{@app_info[:name]}-#{@app_info[:version]}(Build #{@app_info[:build]})"
243
+ title = "#{@app_info[:name]}"
240
244
  payload = {
241
245
  "msgtype": 'markdown',
242
246
  "markdown": {
243
- "title": "#{title} uploaded",
244
- "text": "#{title} uploaded at #{Time.now}\nurl: #{@download_url}\n ![app二维码](data:image/png;base64,#{Base64.strict_encode64(File.read(open(@qrcode_path)))})"
247
+ "title": "#{title}",
248
+ "text": "#{title}\n \n版本: #{@app_info[:build]}\n \n更新时间: #{Time.now}\n \n下载链接: [#{@download_url}](#{@download_url})\n \n更新内容: #{@changelog}"
245
249
  }
246
250
  }
247
251
  url = "https://oapi.dingtalk.com/robot/send?access_token=#{options[:dingtalk_access_token]}"
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module FIR
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fir-cli-xsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - NaixSpirit
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-07-31 00:00:00.000000000 Z
12
+ date: 2019-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler