fastlane-plugin-report 0.2.0 → 0.2.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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24c2a079584542fcd1b2c0aaa9f565cdff62e614
|
|
4
|
+
data.tar.gz: 3d55509f58e8c32e1c4684eb06552096b8bbdb22
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9bba7409f6d710905b89a9a2a8f42f0ef603f39bf55953d4c2c84aa09a8c9b7eaf33611bd3af018bc58c26a5e925fe162832d081dc6306ce984cd68ba0f408b9
|
|
7
|
+
data.tar.gz: 8d318f119199a1f79b175d40cdceeaf0f7bd0117c999e5a3320e5e462a1228c3d6c794c56ffdfd3075cc3340b8e3f0aa52595541b44e3ff6c40df265deae4aa3
|
|
@@ -7,7 +7,7 @@ module Fastlane
|
|
|
7
7
|
require 'slack-ruby-client'
|
|
8
8
|
|
|
9
9
|
if options.nil?
|
|
10
|
-
UI.
|
|
10
|
+
UI.error "Is mandatory to provide a 'Slack API Token'."
|
|
11
11
|
else
|
|
12
12
|
|
|
13
13
|
token = options[:slack_api_token] ||= ''
|
|
@@ -29,15 +29,17 @@ module Fastlane
|
|
|
29
29
|
path = pdf(path: path)
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
if !token.empty?
|
|
33
|
+
client = Slack::Web::Client.new
|
|
34
|
+
client.files_upload(
|
|
35
|
+
channels: channel,
|
|
36
|
+
as_user: false,
|
|
37
|
+
file: Faraday::UploadIO.new(path, path_type),
|
|
38
|
+
title: title,
|
|
39
|
+
filename: file_name,
|
|
40
|
+
initial_comment: message
|
|
41
|
+
)
|
|
42
|
+
end
|
|
41
43
|
|
|
42
44
|
UI.success("Report successfully uploaded and sent to Slack channel '" + channel + "'.")
|
|
43
45
|
UI.success("Title: " + title + " and messsage: " + options[:message])
|