fastlane-plugin-discord_webhook_notifier 0.1.0 → 0.1.1

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: 6b702ed54c83f8ec1f0da3c1174c68e284cbdcc1bb2a6a13ff855495080c4f27
4
- data.tar.gz: 0f3c65b2d53bf7347729c9a38503b1df4c8035ce3bfbf014b50bd229636a01e7
3
+ metadata.gz: 2f878b80076977508d3a372cd09a470718cdf7868b4260ab82b7d56aa77f29cb
4
+ data.tar.gz: 23719f227acc3fe769a1a859337fe6e920dc191754230b305a989a4f6a424aeb
5
5
  SHA512:
6
- metadata.gz: 9c289ae8adb287005c0edb475fe8ec53ce3e049fdd3366d75ea3f7ec47276b4e11df10819471cdb05b903d43314a8c8fc400186f1b28a5d476de2a6bb918821a
7
- data.tar.gz: aec30bbe49e492351bcc7693116442bdbdb92d2da372f93dc11c03a61dd4efb1d912476f2281f6ebcd5def24d00976683d0798b5a9fca044ca8c55faf79c366f
6
+ metadata.gz: 3d88e5967546d7b5c5ce89c14fe56c633e236f4e1377b939f7e134acf3b9ff59feac8480998fdf29133d494b3803610df7708ac0359299e6363a1e06c614181b
7
+ data.tar.gz: bf4c82358575ecc8a1258b16ebf897204103ce5912101b6d530b014ce52bef3f8f2c6ff55c488a43525d81d571cd2cb3d145d2c07bd8ebe22e3c943df993d33d
data/README.md CHANGED
@@ -12,7 +12,7 @@ fastlane add_plugin discord_webhook_notifier
12
12
 
13
13
  ## About discord_webhook_notifier
14
14
 
15
- Notify a Discord channel easuly when a build breake
15
+ Notify a Discord channel easily when a build breake
16
16
 
17
17
  **Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
18
18
 
@@ -5,13 +5,15 @@ module Fastlane
5
5
  module Actions
6
6
  class DiscordWebhookNotifierAction < Action
7
7
  def self.run(params)
8
- UI.message(params[:webhook_url])
9
8
 
10
9
  # Config paramters
11
10
  webhook_url = params[:webhook_url]
12
11
  message = params[:message]
13
12
  parameters = params[:parameters]
14
- build_url = params[:build_url]
13
+ if (defined?(params[:build_url]) && params[:build_url].instance_of?(String))
14
+ build_url = params[:build_url].to_s
15
+ end
16
+
15
17
 
16
18
  parametersString = ""
17
19
  parameters.each do |key, value|
@@ -25,7 +27,7 @@ module Fastlane
25
27
  '```',
26
28
  parametersString,
27
29
  '```',
28
- defined?(build_url) ? 'Build URL: <' + build_url + '>' : '', ## The <> are used to disable auto embed
30
+ params[:build_url].instance_of?(String) ? 'Build URL: <' + build_url + '>' : '', ## The <> are used to disable auto embed
29
31
  '"}\' --header "Content-Type:application/json" ' + webhook_url
30
32
  ].join
31
33
 
@@ -35,7 +37,7 @@ module Fastlane
35
37
  end
36
38
 
37
39
  def self.description
38
- "Notify a Discord channel easuly when a build breake"
40
+ "Notify a Discord channel easily when a build breake"
39
41
  end
40
42
 
41
43
  def self.authors
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module DiscordWebhookNotifier
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-discord_webhook_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel B Bispo