fir-cli-xsl 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fir/cli.rb +1 -0
- data/lib/fir/util/publish.rb +8 -4
- data/lib/fir/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 035701c86220b189a88daaa51f57c6dd974fd41f1eec54c4428613ed6f1b5ac9
|
4
|
+
data.tar.gz: f314c861426bbab0c56d14c5da39d8a50d56eaa23baca8a2ee3c5ea8581f423c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0260caa8d91fdffabdcb04fb4b95029f4719b30d94d2ba6ed24facc9bc8bf0f118f8944a00743877a75b3923e11f4b3ee8617316e4f4f4eb4945e35ab6e19d6
|
7
|
+
data.tar.gz: bd8907191af8526ba7c2e954fcf6f601e266a9058ec208619c6305f51e48d45f8efa24fe8bbc9f0905298725ef245d6feb36f6e3474b3dd80bd662d309779af1
|
data/lib/fir/cli.rb
CHANGED
@@ -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
|
data/lib/fir/util/publish.rb
CHANGED
@@ -36,7 +36,11 @@ module FIR
|
|
36
36
|
logger_info_dividing_line
|
37
37
|
logger_info_app_short_and_qrcode(options)
|
38
38
|
|
39
|
-
|
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]}
|
243
|
+
title = "#{@app_info[:name]}"
|
240
244
|
payload = {
|
241
245
|
"msgtype": 'markdown',
|
242
246
|
"markdown": {
|
243
|
-
"title": "#{title}
|
244
|
-
"text": "#{title}
|
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]}"
|
data/lib/fir/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2019-08-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|