fastlane 2.76.0.beta.20180110010004 → 2.76.0.beta.20180111010004

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: 30c22daaa7ac36879e3d6f5b17809a0944c7b73a
4
- data.tar.gz: 0db4bcebf71912f485ab5f7c56c3fa364200e203
3
+ metadata.gz: 27919bd61546ff3153358786ed67746eb04f2e70
4
+ data.tar.gz: 9d8cb488b0a8efa4f2b8302d43993ef21d1d5d30
5
5
  SHA512:
6
- metadata.gz: e53f8c9828ff0128baa84f200f40e331ea1dcd6f08838da30243883ee4c2ebb741cc79a22f6695ed86e5ffbeb33e7ee20e5c61b6e8ce085d1fabc9e0c386525a
7
- data.tar.gz: 5fef039c28cb018ff3cd6f975092751cade7bb4cd201fc2b8f33aed1144c069db0dfdf0f5bc12430f6e01257f48b6001d2965f01ff43124b0c6234c4af2916d5
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
- notifier.channel = options[:channel]
34
- notifier.channel = ('#' + notifier.channel) unless ['#', '@'].include?(notifier.channel[0]) # send message to channel by default
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
- result = notifier.ping('',
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.20180110010004'.freeze
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
@@ -1,2 +1,3 @@
1
1
  require_relative 'precheck/runner'
2
2
  require_relative 'precheck/options'
3
+ require 'spaceship'
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.20180110010004
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-10 00:00:00.000000000 Z
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: '1.3'
26
+ version: 2.0.0
27
27
  - - "<"
28
28
  - !ruby/object:Gem::Version
29
- version: 2.0.0
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: '1.3'
36
+ version: 2.0.0
37
37
  - - "<"
38
38
  - !ruby/object:Gem::Version
39
- version: 2.0.0
39
+ version: 3.0.0
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: xcodeproj
42
42
  requirement: !ruby/object:Gem::Requirement