fastlane-plugin-testbm 0.1.0 → 0.1.5

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: 7f5a7882e7720971dc3fa745ae6303bd71c4b0d6e32b457d3fd2695a7a123c72
4
- data.tar.gz: 704bb3392f73cb66b3819b42ff3cc61b9806007b2ed83861a64655d17ccd74f9
3
+ metadata.gz: 4c1e70e9c2d4d4e8334df77d0627165b1620b5756fd736b1771083200e2bd1bc
4
+ data.tar.gz: 7967cb52eedc3cef357e3066695a03a84801aed2df42b4c1cc3a4f252ebcb274
5
5
  SHA512:
6
- metadata.gz: 8ee6823cf034ab3557afffe08c4eaeba33a902e5131c2c201eb4f4e1d92c64eba00e176ae9ef0deee1f490846673f81a541d640b41fe988cef61e0edc899858e
7
- data.tar.gz: 061ed4e5b0669748691a11a135a9d303e55db4d66fe054d596d9bfb444b55f8411ee75d373fea03b54a0349f338ada38c1f3cdbdd1e8c32a19005f172995f7f5
6
+ metadata.gz: 36c8e0f2b609e22ac67245bddbdad66719750fc3b2ae3e6c47b84837b74a15a9d8da7492a635e2da0d159a5ce683025a598cae17404120dab316e102de74c213
7
+ data.tar.gz: f83ab5d7604297e357547f67f58b78f66809291d03b9e826b22921116ad60f34436efcb0bea7c3e79ebbde9ec19221bba4d859e2ab533135f2ac9c044915ab79
@@ -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
@@ -0,0 +1,46 @@
1
+ require 'fastlane/action'
2
+
3
+ module Fastlane
4
+ module Actions
5
+ class SalutationAction < Action
6
+ def self.run(params)
7
+ UI.message("Hello World!" + params[:person_name])
8
+ end
9
+
10
+ def self.description
11
+ "Returns hello world"
12
+ end
13
+
14
+ def self.authors
15
+ ["Bemobile"]
16
+ end
17
+
18
+ def self.return_value
19
+ # If your method provides a return value, you can describe here what it does
20
+ end
21
+
22
+ def self.details
23
+ # Optional:
24
+ "Just a test plugin"
25
+ end
26
+
27
+ def self.available_options
28
+ [
29
+ FastlaneCore::ConfigItem.new(key: :person_name,
30
+ env_name: "PERSON_NAME",
31
+ description: "The person's name",
32
+ optional: false,
33
+ type: String)
34
+ ]
35
+ end
36
+
37
+ def self.is_supported?(platform)
38
+ # Adjust this if your plugin only works for a particular platform (iOS vs. Android, for example)
39
+ # See: https://docs.fastlane.tools/advanced/#control-configuration-by-lane-and-by-platform
40
+ #
41
+ # [:ios, :mac, :android].include?(platform)
42
+ true
43
+ end
44
+ end
45
+ end
46
+ end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Testbm
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.5"
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.0
4
+ version: 0.1.5
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-14 00:00:00.000000000 Z
11
+ date: 2021-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -145,6 +145,8 @@ files:
145
145
  - LICENSE
146
146
  - README.md
147
147
  - lib/fastlane/plugin/testbm.rb
148
+ - lib/fastlane/plugin/testbm/actions/chat_action.rb
149
+ - lib/fastlane/plugin/testbm/actions/salutation_action.rb
148
150
  - lib/fastlane/plugin/testbm/actions/testbm_action.rb
149
151
  - lib/fastlane/plugin/testbm/helper/testbm_helper.rb
150
152
  - lib/fastlane/plugin/testbm/version.rb