fastlane-plugin-testbm 0.1.5 → 0.1.10
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6540016f53662b498131abd58fdf25bc456d70245514bd31d74ed737af3387bb
|
4
|
+
data.tar.gz: b4596467e5739633a676f4417952dae65d2da3ba298c4ad98a15d0d4d7d6fafe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0a60040b935f80843f029e90f448b0f61bc20d133ca204daa060d667316b7bcfb15a301375047a60316303baab0ea1d15c005c672c6a58124d991bf634ff407
|
7
|
+
data.tar.gz: f875741c7b66c30832842220056b5c198600a2f876835b6c6296f531323f92d5312395c16ac40e9408bebf41bc993334af9fe865450c81d2772c7f094b05b953
|
@@ -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
|
-
|
9
|
-
|
10
|
-
|
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: :
|
40
|
-
env_name: "
|
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 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
|
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.
|
4
|
+
version: 0.1.10
|
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-
|
11
|
+
date: 2021-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|