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: 4c1e70e9c2d4d4e8334df77d0627165b1620b5756fd736b1771083200e2bd1bc
4
- data.tar.gz: 7967cb52eedc3cef357e3066695a03a84801aed2df42b4c1cc3a4f252ebcb274
3
+ metadata.gz: 6540016f53662b498131abd58fdf25bc456d70245514bd31d74ed737af3387bb
4
+ data.tar.gz: b4596467e5739633a676f4417952dae65d2da3ba298c4ad98a15d0d4d7d6fafe
5
5
  SHA512:
6
- metadata.gz: 36c8e0f2b609e22ac67245bddbdad66719750fc3b2ae3e6c47b84837b74a15a9d8da7492a635e2da0d159a5ce683025a598cae17404120dab316e102de74c213
7
- data.tar.gz: f83ab5d7604297e357547f67f58b78f66809291d03b9e826b22921116ad60f34436efcb0bea7c3e79ebbde9ec19221bba4d859e2ab533135f2ac9c044915ab79
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
- 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
 
@@ -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.5"
3
+ VERSION = "0.1.10"
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.5
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-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