minimum_viable_product 0.0.18 → 0.0.19
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 92cceaa31dfbb0bb7be9390120ca08feda8532a4
|
|
4
|
+
data.tar.gz: 045e7d274b9fb8d4f611282b58e65fc5fb0b7174
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|