fastlane-plugin-testbm 0.1.2 → 0.1.7

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: fe5363aef060d7d58f8bdac471cd563aaa305aab6be793f66f3df774c3dc8de3
4
- data.tar.gz: 6e52c07867e6dbaf783c55573f541ce90e03ae4df5e822cd7a4bd0a49c4302fd
3
+ metadata.gz: 9fe28bb6b76109cd9d014aaa34df41c5becd9d372eba822fe92369dc44373f6b
4
+ data.tar.gz: 1edf9e85127dbf5ffae779d6ea04e00cf6d5b3c0d5163783d27065b5e5c85302
5
5
  SHA512:
6
- metadata.gz: fdd3f654c2987833e8b4efda03cebdd67b125e083e0f091b6510014bb544918130a70fe34ba1c4ebc011599dfb08ec041522e16e6ba7b147bd6b82d557ac09c5
7
- data.tar.gz: d894d91a3e9c89806225d8f04702103e5f79224e905bf7dc39b188b038de9aa0427c555da5a0f077d66df2cbf4d43a2da0a6fdecb44e88ab5a7fd227bd11892b
6
+ metadata.gz: 4bba2bb409325886d59e62c0a63dcc920ba53f14d7e941e8b6d1a63f5cf88d27f7a4e427cde8c70d50a5c1056109334344997d1a80a5900340309d59d7920a28
7
+ data.tar.gz: 50a155d6a044672b6976a1efbf2072a97db382c651f99d354484f5e2be52a6c4f8df690f28d8cb3b224163e94feddb222431fb6ad1466eb0f9e46e084e55c8b2
@@ -0,0 +1,66 @@
1
+ require 'fastlane/action'
2
+
3
+ module Fastlane
4
+ module Actions
5
+ class ChatAction < Action
6
+ def self.run(params)
7
+ slack_icon = params[:slack_icon]
8
+ chat_message = params[:chat_message]
9
+ slack_url = params[:slack_url]
10
+ slack(
11
+ message: chat_message,
12
+ success: true,
13
+ slack_url: slack_url,
14
+ icon_url: slack_icon,
15
+ username: "Bemobile Fastlane Plugin - #{ENV["PRIVATE_APP_NAME"]}"
16
+ )
17
+ UI.message("Message sent to Slack!")
18
+ end
19
+
20
+ def self.description
21
+ "Returns hello world"
22
+ end
23
+
24
+ def self.authors
25
+ ["Bemobile"]
26
+ end
27
+
28
+ def self.return_value
29
+ # If your method provides a return value, you can describe here what it does
30
+ end
31
+
32
+ def self.details
33
+ # Optional:
34
+ "Just a test plugin"
35
+ end
36
+
37
+ def self.available_options
38
+ [
39
+ FastlaneCore::ConfigItem.new(key: :chat_message,
40
+ env_name: "CHAT_MESSAGE",
41
+ description: "The chat message to be sent to Slack",
42
+ optional: false,
43
+ type: String),
44
+ FastlaneCore::ConfigItem.new(key: :slack_icon,
45
+ env_name: "SLACK_ICON",
46
+ description: "The icon to be posted to Slack",
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),
54
+ ]
55
+ end
56
+
57
+ def self.is_supported?(platform)
58
+ # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
59
+ # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
60
+ #
61
+ # [:ios, :mac, :android].include?(platform)
62
+ true
63
+ end
64
+ end
65
+ end
66
+ end
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Testbm
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.7"
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.2
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bemobile
@@ -145,6 +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
149
  - lib/fastlane/plugin/testbm/actions/salutation_action.rb
149
150
  - lib/fastlane/plugin/testbm/actions/testbm_action.rb
150
151
  - lib/fastlane/plugin/testbm/helper/testbm_helper.rb