fastlane 2.76.0.beta.20180110010004 → 2.76.0.beta.20180111010004
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 +4 -4
- data/fastlane/lib/fastlane/actions/slack.rb +12 -12
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/precheck/lib/precheck.rb +1 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27919bd61546ff3153358786ed67746eb04f2e70
|
4
|
+
data.tar.gz: 9d8cb488b0a8efa4f2b8302d43993ef21d1d5d30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66476f36335b5aefa473afede8701fe77513f64e84fcb6938d7a3438e892c6f1553fc4edaed4d82294ece314c34eb0d22401e73b0597c736d5883d92735d9609
|
7
|
+
data.tar.gz: 4d55b97de4491ca1f17afd695e85977c08a921a513750c81bfcc7e8b612e1a19fbba58d9e09b73c4c4e8a8d96014149f4c1a0b26c3e7b51428a0bc31eb10777f
|
@@ -22,29 +22,29 @@ module Fastlane
|
|
22
22
|
require 'slack-notifier'
|
23
23
|
|
24
24
|
options[:message] = self.trim_message(options[:message].to_s || '')
|
25
|
-
options[:message] = Slack::Notifier::LinkFormatter.format(options[:message])
|
26
|
-
|
27
|
-
notifier = Slack::Notifier.new(options[:slack_url])
|
28
|
-
|
29
|
-
notifier.username = options[:use_webhook_configured_username_and_icon] ? nil : options[:username]
|
30
|
-
icon_url = options[:use_webhook_configured_username_and_icon] ? nil : options[:icon_url]
|
25
|
+
options[:message] = Slack::Notifier::Util::LinkFormatter.format(options[:message])
|
31
26
|
|
32
27
|
if options[:channel].to_s.length > 0
|
33
|
-
|
34
|
-
|
28
|
+
channel = options[:channel]
|
29
|
+
channel = ('#' + options[:channel]) unless ['#', '@'].include?(channel[0]) # send message to channel by default
|
35
30
|
end
|
36
31
|
|
32
|
+
username = options[:use_webhook_configured_username_and_icon] ? nil : options[:username]
|
33
|
+
|
34
|
+
notifier = Slack::Notifier.new(options[:slack_url], channel: channel, username: username)
|
35
|
+
|
36
|
+
icon_url = options[:use_webhook_configured_username_and_icon] ? nil : options[:icon_url]
|
37
|
+
|
37
38
|
slack_attachment = generate_slack_attachments(options)
|
38
39
|
|
39
40
|
return [notifier, slack_attachment] if Helper.is_test? # tests will verify the slack attachments and other properties
|
40
41
|
|
41
42
|
begin
|
42
|
-
|
43
|
-
icon_url: icon_url,
|
44
|
-
attachments: [slack_attachment])
|
43
|
+
results = notifier.ping('', icon_url: icon_url, attachments: [slack_attachment])
|
45
44
|
rescue => exception
|
46
45
|
UI.error("Exception: #{exception}")
|
47
46
|
ensure
|
47
|
+
result = results.first
|
48
48
|
if !result.nil? && result.code.to_i == 200
|
49
49
|
UI.success('Successfully sent Slack notification')
|
50
50
|
else
|
@@ -186,7 +186,7 @@ module Fastlane
|
|
186
186
|
slack_attachment[:fields] += options[:payload].map do |k, v|
|
187
187
|
{
|
188
188
|
title: k.to_s,
|
189
|
-
value: Slack::Notifier::LinkFormatter.format(v.to_s),
|
189
|
+
value: Slack::Notifier::Util::LinkFormatter.format(v.to_s),
|
190
190
|
short: false
|
191
191
|
}
|
192
192
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Fastlane
|
2
|
-
VERSION = '2.76.0.beta.
|
2
|
+
VERSION = '2.76.0.beta.20180111010004'.freeze
|
3
3
|
DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
|
4
4
|
MINIMUM_XCODE_RELEASE = "7.0".freeze
|
5
5
|
RUBOCOP_REQUIREMENT = '0.49.1'.freeze
|
data/precheck/lib/precheck.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.76.0.beta.
|
4
|
+
version: 2.76.0.beta.20180111010004
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date: 2018-01-
|
18
|
+
date: 2018-01-11 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: slack-notifier
|
@@ -23,20 +23,20 @@ dependencies:
|
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.0.0
|
27
27
|
- - "<"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 3.0.0
|
30
30
|
type: :runtime
|
31
31
|
prerelease: false
|
32
32
|
version_requirements: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
34
|
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
36
|
+
version: 2.0.0
|
37
37
|
- - "<"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 3.0.0
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: xcodeproj
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|