fastlane-plugin-testbm 0.1.7 → 0.1.12

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
  SHA256:
3
- metadata.gz: 9fe28bb6b76109cd9d014aaa34df41c5becd9d372eba822fe92369dc44373f6b
4
- data.tar.gz: 1edf9e85127dbf5ffae779d6ea04e00cf6d5b3c0d5163783d27065b5e5c85302
3
+ metadata.gz: c6445b5dc1e8eaa98a6d15f9bd31231c4a0313c1a0d395807150c01442e89345
4
+ data.tar.gz: ded217e7784b1704468304b7455902eec1741a1085c08fa0137988e3427f9a9a
5
5
  SHA512:
6
- metadata.gz: 4bba2bb409325886d59e62c0a63dcc920ba53f14d7e941e8b6d1a63f5cf88d27f7a4e427cde8c70d50a5c1056109334344997d1a80a5900340309d59d7920a28
7
- data.tar.gz: 50a155d6a044672b6976a1efbf2072a97db382c651f99d354484f5e2be52a6c4f8df690f28d8cb3b224163e94feddb222431fb6ad1466eb0f9e46e084e55c8b2
6
+ metadata.gz: 12305ef2e94518cfb2c88461af282db02fdc40eae870740aa1afed3d0de0c293f20573249944925d9250f19b65b0887642c6be16a414aad8f3586a6213447d64
7
+ data.tar.gz: 41d428876a410aff8104a175d5f67f0c9d632204d7973974660a348dff06adc5801b255919009682ed78c6edd5877191707bd00d55a793a8a3dcb5a7dc45250c
@@ -1,19 +1,19 @@
1
1
  require 'fastlane/action'
2
+ require_relative '../helper/testbm_helper'
2
3
 
3
4
  module Fastlane
4
5
  module Actions
5
6
  class ChatAction < Action
6
7
  def self.run(params)
7
8
  slack_icon = params[:slack_icon]
8
- chat_message = params[:chat_message]
9
- slack_url = params[:slack_url]
10
- slack(
11
- message: chat_message,
9
+ message_text = params[:message_text]
10
+ other_action.slack(
11
+ message: message_text,
12
12
  success: true,
13
- slack_url: slack_url,
14
13
  icon_url: slack_icon,
15
14
  username: "Bemobile Fastlane Plugin - #{ENV["PRIVATE_APP_NAME"]}"
16
- )
15
+ )
16
+ Helper::TestbmHelper.slack_func_notify("Message from")
17
17
  UI.message("Message sent to Slack!")
18
18
  end
19
19
 
@@ -36,8 +36,8 @@ module Fastlane
36
36
 
37
37
  def self.available_options
38
38
  [
39
- FastlaneCore::ConfigItem.new(key: :chat_message,
40
- env_name: "CHAT_MESSAGE",
39
+ FastlaneCore::ConfigItem.new(key: :message_text,
40
+ env_name: "MESSAGE_TEXT",
41
41
  description: "The chat message to be sent to Slack",
42
42
  optional: false,
43
43
  type: String),
@@ -45,12 +45,7 @@ module Fastlane
45
45
  env_name: "SLACK_ICON",
46
46
  description: "The icon to be posted to Slack",
47
47
  optional: false,
48
- type: String),
49
- FastlaneCore::ConfigItem.new(key: :slack_url,
50
- env_name: "SLACK_URL",
51
- description: "The webhook's url to where we will post in Slack",
52
- optional: false,
53
- type: String),
48
+ type: String)
54
49
  ]
55
50
  end
56
51
 
@@ -11,6 +11,17 @@ module Fastlane
11
11
  def self.show_message
12
12
  UI.message("Hello from the testbm plugin helper!")
13
13
  end
14
+
15
+ #Notify via slack channel a generic message with the default payloads
16
+ def self.slack_func_notify(message_text)
17
+ other_action.slack(
18
+ message: message_text,
19
+ success: true,
20
+ default_payloads: [:lane, :git_branch, :git_author],
21
+ icon_url: ENV["SLACK_ICON"],
22
+ username: "fastlane - #{ENV["PRIVATE_APP_NAME"]}")
23
+ end
24
+
14
25
  end
15
26
  end
16
27
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Testbm
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-testbm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bemobile
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-18 00:00:00.000000000 Z
11
+ date: 2021-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry