fastlane-plugin-testbm 0.1.1 → 0.1.6

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: '09f62411bbdadf254beec1dd976890705a9c183bde8cce07d8dfc013047405a6'
4
- data.tar.gz: b76b80b6b544c6f8e46ba84f0a000d71c8be1ed350d9cc71dfb259d5d1ee893a
3
+ metadata.gz: ebe326410ea68d6f193dd046897077b6a49b74a2300033d3b3c3bbed6f05fe02
4
+ data.tar.gz: 52a49fdbea8f52e7ed1dfb60b6172f02ac1d825c5f4319a127a2fd51f27c5823
5
5
  SHA512:
6
- metadata.gz: 249455f9fa36453892bfe91ecf1d66f66dd461fd71f6b87d966154142ddfd07806831ff85e744811710179e8b989d2255591ca2f7364eb74481bf213c42f45f4
7
- data.tar.gz: c6525a5b3728cb143ee01ec5361535849a3ebe71ca1d91eb7c313da49beb3bd1056b805996cf8c9e63cdab7af7d173f0ba5ac5a4760d6d0eaa911a355e932099
6
+ metadata.gz: e2d77a7ba0f800a0c24a818acd547a4f56b12a9469711dda2b16b55dce1e87e8cd4056353d480d206717a9bfddc9a9a36ab54092114f78d72b40660f711713a2
7
+ data.tar.gz: a8667b1a2d3f54dfbde1835876ad8d6192f08834801fad0ee060cf5bbb3abc99c55441dc8f1b7d71284c0c4aac5adfb3614a6dfab1b9506ca6b0a8b9ca7635dc
@@ -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
@@ -26,11 +27,11 @@ module Fastlane
26
27
 
27
28
  def self.available_options
28
29
  [
29
- # FastlaneCore::ConfigItem.new(key: :your_option,
30
- # env_name: "TESTBM_YOUR_OPTION",
31
- # description: "A description of your option",
32
- # optional: false,
33
- # type: String)
30
+ FastlaneCore::ConfigItem.new(key: :person_name,
31
+ env_name: "PERSON_NAME",
32
+ description: "The person's name",
33
+ optional: false,
34
+ type: String)
34
35
  ]
35
36
  end
36
37
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Testbm
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.6"
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.1
4
+ version: 0.1.6
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-15 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,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