minimum_viable_product 0.0.18 → 0.0.19

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
  SHA1:
3
- metadata.gz: 31737af10c467521f27292195ec86d64396fcc8e
4
- data.tar.gz: f1b4b73d70eaf4a7b79e080e3fa5202353620e32
3
+ metadata.gz: 92cceaa31dfbb0bb7be9390120ca08feda8532a4
4
+ data.tar.gz: 045e7d274b9fb8d4f611282b58e65fc5fb0b7174
5
5
  SHA512:
6
- metadata.gz: 69558bfe5e919f1b00722f980f4da59b28f41f937ce83b40395148e0dfb6b60a071093b94d48f7252408b60a96d5473c806aa066a08217a744b87557710fe398
7
- data.tar.gz: 2d6dc3fe6a0494a75ff470387d09443b9d389e1fa4e96349ece35ce39485d298ae27066325b39458c7352fe6b7cd3047bf2165b20c726bff3b67bafd0bdade61
6
+ metadata.gz: 2396ca5bebb8dbd1a296eaccb2d1cbb309f30b22efbe277cbb816f0a81acb9e85599b8c8428e97311c18933bdbe3babd636243ad6917d00b5ee6318bb455b0cc
7
+ data.tar.gz: 7908bbe7c47391a537f83abb667d6b5ce86683473e98e3f29550ef85cfcf27f5d851503aff9ee6a807407f90eb2991a04b1cc5f9d2cd9c9547f9b671cec1256f
@@ -23,10 +23,13 @@ module MinimumViableProduct
23
23
  })
24
24
  end
25
25
 
26
- def slack!(message)
26
+ def slack!(message, properties=nil)
27
27
  if ENV['SLACK_WEBHOOK_URL']
28
+ _msg = [message]
29
+ _msg << "(#{properties.inspect})" if properties
30
+
28
31
  begin
29
- slack_notifier.ping message
32
+ slack_notifier.ping _msg.join(' ')
30
33
  rescue
31
34
  slack_notifier.ping "Tried to use slack messaging but failure happened"
32
35
  end
@@ -62,8 +65,7 @@ module MinimumViableProduct
62
65
 
63
66
  def slack_notifier
64
67
  Slack::Notifier.new ENV['SLACK_WEBHOOK_URL'], channel: ENV['SLACK_WEBHOOK_URL'],
65
- username: ENV['SLACK_POST_USERNAME'],
66
- channel: ENV['SLACK_POST_CHANNEL']
68
+ username: ENV['SLACK_POST_USERNAME']
67
69
  end
68
70
 
69
71
  def analytics_id
@@ -1,3 +1,3 @@
1
1
  module MinimumViableProduct
2
- VERSION = "0.0.18"
2
+ VERSION = "0.0.19"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimum_viable_product
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Hunter