fastlane-plugin-testbm 0.1.6 → 0.1.11

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: ebe326410ea68d6f193dd046897077b6a49b74a2300033d3b3c3bbed6f05fe02
4
- data.tar.gz: 52a49fdbea8f52e7ed1dfb60b6172f02ac1d825c5f4319a127a2fd51f27c5823
3
+ metadata.gz: 7263fa915363c5ea53a3a42ed7e781515a6420bd0203804e6fb7b1db91c9ded3
4
+ data.tar.gz: 3aa0718ac6b8684e27e6ba179f4956330a1c887332b0769ef5424ca3481f18a7
5
5
  SHA512:
6
- metadata.gz: e2d77a7ba0f800a0c24a818acd547a4f56b12a9469711dda2b16b55dce1e87e8cd4056353d480d206717a9bfddc9a9a36ab54092114f78d72b40660f711713a2
7
- data.tar.gz: a8667b1a2d3f54dfbde1835876ad8d6192f08834801fad0ee060cf5bbb3abc99c55441dc8f1b7d71284c0c4aac5adfb3614a6dfab1b9506ca6b0a8b9ca7635dc
6
+ metadata.gz: 3112a212023aaeb452f33795243cc57fa62b448818e4b9ffac995281f8bec12ee7edceb6a679f0405965254f1d04b5480b34b723af9b29e5da6611fb8c99b955
7
+ data.tar.gz: da198eda72c72f3c0e22d536167ce8cb4a2ee044e507f3c6df4e9e66f25c1e47ef7580665ea618d48516c14e7b52ef8b2f620bf8c4ff20013150bf012e3a335a
@@ -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.6"
3
+ VERSION = "0.1.11"
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.6
4
+ version: 0.1.11
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