slack-notifier 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slack-notifier.rb +6 -0
- data/lib/slack-notifier/version.rb +1 -1
- data/spec/lib/slack-notifier_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79b056b73685dbdd4d4172685ec26bbcc2d56b44
|
4
|
+
data.tar.gz: ff1568f0280763fe1079512389b7cba3e34a48aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc041be0c332e467e1cee9e59ea1e2f688c780c1886c2cbf25205e96f8c21714a23352d5649645fa86dfe32ce68958394f564bdb82d92b14655d8ba29caea44d
|
7
|
+
data.tar.gz: 88c2002407abbb61df56cfbd4d3554d9f2676e86aebab6c7cce890d1b065b5948986d6c1fd6e0ad3bc8dc3eebef8297bf54cd498f1963ae848284a3bd2276942
|
data/lib/slack-notifier.rb
CHANGED
@@ -109,4 +109,12 @@ describe Slack::Notifier do
|
|
109
109
|
expect( subject.username ).to eq "foo"
|
110
110
|
end
|
111
111
|
end
|
112
|
+
|
113
|
+
describe "#escape" do
|
114
|
+
it "escapes sequences of < > &, but not quotes" do
|
115
|
+
message = %q(I've heard "Do > with <" & that sounds ridiculous.)
|
116
|
+
expected = %q(I've heard "Do > with <" & that sounds ridiculous.)
|
117
|
+
expect( subject.escape(message) ).to eq expected
|
118
|
+
end
|
119
|
+
end
|
112
120
|
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: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Sloan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: ' A slim ruby wrapper for posting to slack webhooks '
|
14
14
|
email:
|