slack-notifier 0.6.0 → 0.6.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64899197a10189dcf547d2145599c9cd2f58dc58
|
4
|
+
data.tar.gz: 760a4379a03ce8171fa78c41f903bd718ee6469e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43b0dba726b3e0d06b8616bbcfe8f3dc4f742f480794c59a4bd6f2c1a4a1fa2e1628bf28258315be502c3ca3248d661e56f34fadc39258b0ccd911ffa4a94a60
|
7
|
+
data.tar.gz: 24a89065f0d7f010c09bd8f71f89989a1b824c6ab483cfeeeed1e6507a362c9acabfd011471ed66cbba7fef584a57fa55cf4ca8b95a6ef33af07dd9adfa3753b
|
@@ -19,6 +19,24 @@ describe Slack::Notifier::LinkFormatter do
|
|
19
19
|
expect( formatted ).to include("<http://example.com>")
|
20
20
|
end
|
21
21
|
|
22
|
+
it "handles multiple html links" do
|
23
|
+
formatted = described_class.format("Hello World, enjoy <a href='http://example.com'>this</a><a href='http://example2.com'>this2</a>.")
|
24
|
+
expect( formatted ).to include("<http://example.com|this>")
|
25
|
+
expect( formatted ).to include("<http://example2.com|this2>")
|
26
|
+
end
|
27
|
+
|
28
|
+
it "handles multiple markdown links" do
|
29
|
+
formatted = described_class.format("Hello World, enjoy [this](http://example.com)[this2](http://example2.com).")
|
30
|
+
expect( formatted ).to include("<http://example.com|this>")
|
31
|
+
expect( formatted ).to include("<http://example2.com|this2>")
|
32
|
+
end
|
33
|
+
|
34
|
+
it "handles mixed html & markdown links" do
|
35
|
+
formatted = described_class.format("Hello World, enjoy [this](http://example.com)<a href='http://example2.com'>this2</a>.")
|
36
|
+
expect( formatted ).to include("<http://example.com|this>")
|
37
|
+
expect( formatted ).to include("<http://example2.com|this2>")
|
38
|
+
end
|
39
|
+
|
22
40
|
end
|
23
41
|
|
24
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Sloan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: " A slim ruby wrapper for posting to slack webhooks "
|
14
14
|
email:
|