rocketchat-notifier-webhook 0.1.3 → 0.1.5

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: 29737e0f911d1113fec978b89f13701e0db2f9fb1a85fcd5c827aed8af82bbd6
4
- data.tar.gz: 9a35ea22850c3af140a934df5ac181be4ba3d9cbb98b5472b30f055930cc2be9
3
+ metadata.gz: 27750cd916bce553b16547070cc39b6eda9dc7cbddc5a7f0bd4cda30007d1f73
4
+ data.tar.gz: 4ea42c45336b30710f91b69a712133cd0dca853300a4c6cad017dd1e89f84bdd
5
5
  SHA512:
6
- metadata.gz: d8039031d1bee5d1607539ea49f876f5891f033e206298a2132c46fa16315d6c28fe0041481ef56970456402fec673892ad59c86977e225662df4ef5f5190cab
7
- data.tar.gz: a2f5b2a24a4102f175dd79edb8f2639f6c38263ce0861c432868c3b61e60f0371659892dc29e34446e207665c61790e82344ad2889f8dc6e89c1039577d6800b
6
+ metadata.gz: 4856e3c8ed2e4b6cef9cdc3dcfcc15d5ddc7da9914da481105221a275d09eef83ce4a329c5425d5d035820b41cfd4737b9262c7a776ec8e7a8a2ca4af15d6633
7
+ data.tar.gz: a910ee45ca10f4aba2ed6bae57ffcb7d18325c0cb1013c220e9c4aa332cc22201ccecfe21539ece79d8d6356123839f6a9c2b2bdfc2e321d03ecb308bbf28bf2
data/.gitignore CHANGED
@@ -11,6 +11,7 @@ capybara-*.html
11
11
  **.orig
12
12
  rerun.txt
13
13
  pickle-email-*.html
14
+ /pkg
14
15
 
15
16
  # TODO Comment out these rules if you are OK with secrets being uploaded to the repo
16
17
  config/initializers/secret_token.rb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rocketchat-notifier-webhook (0.1.3)
4
+ rocketchat-notifier-webhook (0.1.5)
5
5
  httparty (~> 0.16.2, >= 0.16.2)
6
6
 
7
7
  GEM
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "rocket/chat/notifier"
4
+ require "rocketchat/notifier"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -21,9 +21,9 @@ module RocketChatNotifier
21
21
  message: message
22
22
  }
23
23
 
24
- request_body[:event] = event if event.present?
25
- request_body[:emoji] = emoji if emoji.present?
26
- request_body[:attachment] = attachment if attachment.present?
24
+ request_body[:event] = event
25
+ request_body[:emoji] = emoji
26
+ request_body[:attachment] = attachment
27
27
 
28
28
  begin
29
29
  Rails.logger.debug("\nsending rocket chat notification request to webhook url:\n#{webhook_url}") if verbose_mode == true
@@ -1,5 +1,5 @@
1
1
  module RocketChat
2
2
  module Notifier
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -1,10 +1,10 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
2
+
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'rocketchat/notifier/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "rocketchat-notifier-webhook"
7
+ spec.name = 'rocketchat-notifier-webhook'
8
8
  spec.version = RocketChat::Notifier::VERSION
9
9
  spec.authors = ["Christoph Bajohr"]
10
10
  spec.email = ["christoph@bajohr.org"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocketchat-notifier-webhook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Bajohr