fastlane-plugin-testbm 0.1.4 → 0.1.9

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: 03e39df7b0b6b84f20c95e0339028a25654fb841301d7811da2c44ec90ca6a87
4
- data.tar.gz: f6ccd62d5ba584fbae0d48eb05d2742f8065b7e3fd51801e294f4bdfffa7dd81
3
+ metadata.gz: 28701adcc3be5cf4d3346f9d339599fc47eb7b525658efb9d5a3cd25056ced7b
4
+ data.tar.gz: 87269fc3ff27be4156a9712ebe82f0b138308645c838bae3d14023a8c489a93c
5
5
  SHA512:
6
- metadata.gz: 3b46f816d4479eb26c15052faf754be550901d721ecbd92e55e3d81b6116241926afa0d45f288b43424a9ddee90fb565bf87550595607466963b225cc73aed0f
7
- data.tar.gz: edfcaf051fb560d5a138c4909fe9aecf4e6a5f3ae4f7f6cdd05d649ad96bb0dc8e7bb645f35effac0c50fb596fca400cea1d38d25cea496bfad2a64f244d4176
6
+ metadata.gz: 38e384494416c52b26d13498b45b5cc8999240d51c97447a97b7ecb3ce6c304be55e5219c9102303ad3fd8201b5bb3f771e6af2abe8323ccde960078856244ae
7
+ data.tar.gz: e2977228122429e186caf7b726be6e3aad53cf5a87b670e24d68e7edfc9c6f8b4535abd61d4ce78e7c17740c117e0a9985be660e4a2ee14fa6e56c2c067c76a9
@@ -1,20 +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
- default_payloads: [:lane, :git_branch, :git_author],
15
13
  icon_url: slack_icon,
16
- username: "Bemobile Fastlane Plugin"
17
- )
14
+ username: "Bemobile Fastlane Plugin - #{ENV["PRIVATE_APP_NAME"]}"
15
+ )
16
+ Helper::TestbmHelper.slack_func_notify("Message from helper.")
18
17
  UI.message("Message sent to Slack!")
19
18
  end
20
19
 
@@ -38,7 +37,7 @@ module Fastlane
38
37
  def self.available_options
39
38
  [
40
39
  FastlaneCore::ConfigItem.new(key: :chat_message,
41
- env_name: "CHAT_MESSAGE",
40
+ env_name: "MESSAGE_TEXT",
42
41
  description: "The chat message to be sent to Slack",
43
42
  optional: false,
44
43
  type: String),
@@ -46,12 +45,7 @@ module Fastlane
46
45
  env_name: "SLACK_ICON",
47
46
  description: "The icon to be posted to Slack",
48
47
  optional: false,
49
- type: String),
50
- FastlaneCore::ConfigItem.new(key: :slack_url,
51
- env_name: "SLACK_URL",
52
- description: "The webhook's url to where we will post in Slack",
53
- optional: false,
54
- type: String),
48
+ type: String)
55
49
  ]
56
50
  end
57
51
 
@@ -5,6 +5,7 @@ module Fastlane
5
5
  class SalutationAction < Action
6
6
  def self.run(params)
7
7
  UI.message("Hello World!" + params[:person_name])
8
+ UI.message("#{ENV["TEST_VALUE"]} text from local ENV")
8
9
  end
9
10
 
10
11
  def self.description
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Testbm
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.9"
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.4
4
+ version: 0.1.9
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