fastlane-plugin-discord_webhook_notifier 0.1.1 → 0.1.2

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: 2f878b80076977508d3a372cd09a470718cdf7868b4260ab82b7d56aa77f29cb
4
- data.tar.gz: 23719f227acc3fe769a1a859337fe6e920dc191754230b305a989a4f6a424aeb
3
+ metadata.gz: ff32ad8b9bd968f5bd5867b5df6eb5a79684035be89ba58c7e814d5545071d91
4
+ data.tar.gz: 7fae92396a4186bca2bc7d8dd64dcd4f2925c99575bdff82cc387ba73dea7286
5
5
  SHA512:
6
- metadata.gz: 3d88e5967546d7b5c5ce89c14fe56c633e236f4e1377b939f7e134acf3b9ff59feac8480998fdf29133d494b3803610df7708ac0359299e6363a1e06c614181b
7
- data.tar.gz: bf4c82358575ecc8a1258b16ebf897204103ce5912101b6d530b014ce52bef3f8f2c6ff55c488a43525d81d571cd2cb3d145d2c07bd8ebe22e3c943df993d33d
6
+ metadata.gz: faa1ca67617d6a634acf2ea86c0e2fb47a8608507672e5db2bbc0eceb64ac3686156c6740d1ccac4d4e771a82e4ae3df05c994263792bac0e8c2f8169d894c02
7
+ data.tar.gz: 1abc3ef0640f9a21c6fbc7933f61f2875181be2e37d182a1363dc1eae50c11f0d266433081564107c0aca6669cdc2f2655c3b4710e9a94f5e89a24ca68b1afb1
data/README.md CHANGED
@@ -12,16 +12,34 @@ fastlane add_plugin discord_webhook_notifier
12
12
 
13
13
  ## About discord_webhook_notifier
14
14
 
15
- Notify a Discord channel easily when a build breake
15
+ Notify a Discord channel easily when a build breaks.
16
+
17
+ Quick sample:
18
+ ```ruby
19
+ lastCommit = last_git_commit
20
+
21
+ discord_webhook_notifier(
22
+ webhook_url: "https://discord.com/api/webhooks/CHANNEL/KEY",
23
+ message: "🔥 Ohhh no! An error ocurred when building!",
24
+ parameters: {
25
+ "platform" => "iOS",
26
+ "commit_author" => lastCommit[:commit_author].to_s,
27
+ "commit_hash" => lastCommit[:commit_hash].to_s,
28
+ "commit_message" => lastCommit[:message][0,20].delete("\n").to_s,
29
+ "commit_count" => number_of_commits.to_s
30
+ },
31
+ build_url: ENV['BITRISE_BUILD_URL']
32
+ )
33
+ ```
34
+
35
+ ![Notification on Discord](sample/sample.png "Title")
36
+
16
37
 
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
38
 
19
39
  ## Example
20
40
 
21
41
  Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
22
42
 
23
- **Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
24
-
25
43
  ## Run tests for this plugin
26
44
 
27
45
  To run both the tests, and code style validation, run
@@ -18,7 +18,7 @@ module Fastlane
18
18
  parametersString = ""
19
19
  parameters.each do |key, value|
20
20
  parametersString += " \\n #{key}:"
21
- parametersString +=" #{value}"
21
+ parametersString +=" #{value.gsub(/[\'\"\:\{\}\[\]\(\)]/, "")}"
22
22
  end
23
23
 
24
24
  # Create cURL command
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module DiscordWebhookNotifier
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel B Bispo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-18 00:00:00.000000000 Z
11
+ date: 2022-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -167,8 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubygems_version: 3.0.3
170
+ rubygems_version: 3.0.3.1
171
171
  signing_key:
172
172
  specification_version: 4
173
- summary: Notify a Discord channel easuly when a build breake
173
+ summary: Notify a Discord channel easily when a build breaks
174
174
  test_files: []