fastlane-plugin-report 0.2.0 → 0.2.1

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: 127b27e9be3ea12dbce435cf9a686459d5bde5ca
4
- data.tar.gz: af6eb611d7fb468a923b3162dfd2d793324f720e
3
+ metadata.gz: 24c2a079584542fcd1b2c0aaa9f565cdff62e614
4
+ data.tar.gz: 3d55509f58e8c32e1c4684eb06552096b8bbdb22
5
5
  SHA512:
6
- metadata.gz: 9f8ba86923d78e1ff1f33176b469f0cdfee9b62dcd33807b8af47b0dcd1869f3a96f97e349d8440a57b1b35f96d7848157a4e81285c8bea7ad2572b9c46e8296
7
- data.tar.gz: 44bf6c5eecc6ff6d7e9370d254d0a35743b14fcb2936a5761e6e6c9acb8e9400dee91dbb2bbfc4547812e78ec2f5349e4bf335fad4c14cfe6d1dcdd6ffb2410c
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.user_error!("Is mandatory to provide a 'Slack API Token'.")
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
- client = Slack::Web::Client.new
33
- client.files_upload(
34
- channels: channel,
35
- as_user: false,
36
- file: Faraday::UploadIO.new(path, path_type),
37
- title: title,
38
- filename: file_name,
39
- initial_comment: message
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])
@@ -1,6 +1,6 @@
1
1
  module Fastlane
2
2
  module Report
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  DESCRIPTION = "Try to fix a bug on installation process."
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-report
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Miguêns