fastlane-plugin-testbm 0.1.12 → 0.1.13

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: c6445b5dc1e8eaa98a6d15f9bd31231c4a0313c1a0d395807150c01442e89345
4
- data.tar.gz: ded217e7784b1704468304b7455902eec1741a1085c08fa0137988e3427f9a9a
3
+ metadata.gz: 8d51ae44fdcb2eb4ce01781ae9c112d19e331c678eddf087af0907aeda972035
4
+ data.tar.gz: 1960915e2f76f09aeea0655688e13a639a79d20d9ee74969307b11da5ba71542
5
5
  SHA512:
6
- metadata.gz: 12305ef2e94518cfb2c88461af282db02fdc40eae870740aa1afed3d0de0c293f20573249944925d9250f19b65b0887642c6be16a414aad8f3586a6213447d64
7
- data.tar.gz: 41d428876a410aff8104a175d5f67f0c9d632204d7973974660a348dff06adc5801b255919009682ed78c6edd5877191707bd00d55a793a8a3dcb5a7dc45250c
6
+ metadata.gz: 258ce81e49b7177aade18b043cd21245f24126193236c07d295e077637d4753e9deaedbbd7a05db5676fb11178b4658eb88d7edda2630ea35b9538ddadd44149
7
+ data.tar.gz: b45d94f896700da2ccaab3f7d10aff039ad14f067bb1998de7396b5c9e02d14999f7ae2cf379910bf46c899b8a63faf295102d7cf718da15ed6a31545f54674a
@@ -1,9 +1,8 @@
1
1
  require 'fastlane/action'
2
- require_relative '../helper/testbm_helper'
3
2
 
4
3
  module Fastlane
5
4
  module Actions
6
- class ChatAction < Action
5
+ class BmslackAction < Action
7
6
  def self.run(params)
8
7
  slack_icon = params[:slack_icon]
9
8
  message_text = params[:message_text]
@@ -11,18 +10,18 @@ module Fastlane
11
10
  message: message_text,
12
11
  success: true,
13
12
  icon_url: slack_icon,
13
+ default_payloads: [:lane, :git_branch, :git_author],
14
14
  username: "Bemobile Fastlane Plugin - #{ENV["PRIVATE_APP_NAME"]}"
15
15
  )
16
- Helper::TestbmHelper.slack_func_notify("Message from")
17
16
  UI.message("Message sent to Slack!")
18
17
  end
19
18
 
20
19
  def self.description
21
- "Returns hello world"
20
+ "Sends a message to a Slack chat specified in the SLACK_URL environment variable."
22
21
  end
23
22
 
24
23
  def self.authors
25
- ["Bemobile"]
24
+ ["Erick, Legna @ Bemobile."]
26
25
  end
27
26
 
28
27
  def self.return_value
@@ -30,8 +29,10 @@ module Fastlane
30
29
  end
31
30
 
32
31
  def self.details
33
- # Optional:
34
- "Just a test plugin"
32
+ "Sends a message to a Slack webhook. The message must be passed to the function as a parameter named message_text.
33
+ An icon must be specified as a param named slack_icon, or as an environment variable named SLACK_ICON.
34
+ The webhook URL must be specified as an environment variable called SLACK_URL.
35
+ The username which sends the message can be appendend with the environment variable called PRIVATE_APP_NAME."
35
36
  end
36
37
 
37
38
  def self.available_options
@@ -43,17 +44,13 @@ module Fastlane
43
44
  type: String),
44
45
  FastlaneCore::ConfigItem.new(key: :slack_icon,
45
46
  env_name: "SLACK_ICON",
46
- description: "The icon to be posted to Slack",
47
+ description: "The user icon to be posted to Slack",
47
48
  optional: false,
48
49
  type: String)
49
50
  ]
50
51
  end
51
52
 
52
53
  def self.is_supported?(platform)
53
- # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
54
- # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
55
- #
56
- # [:ios, :mac, :android].include?(platform)
57
54
  true
58
55
  end
59
56
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Testbm
3
- VERSION = "0.1.12"
3
+ VERSION = "0.1.13"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-testbm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bemobile
@@ -145,7 +145,7 @@ files:
145
145
  - LICENSE
146
146
  - README.md
147
147
  - lib/fastlane/plugin/testbm.rb
148
- - lib/fastlane/plugin/testbm/actions/chat_action.rb
148
+ - lib/fastlane/plugin/testbm/actions/bmslack_action.rb
149
149
  - lib/fastlane/plugin/testbm/actions/salutation_action.rb
150
150
  - lib/fastlane/plugin/testbm/actions/testbm_action.rb
151
151
  - lib/fastlane/plugin/testbm/helper/testbm_helper.rb