s-3po 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/s-3po/events.rb +7 -0
- data/s-3po.gemspec +1 -1
- 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: ea996306d4bbf71f44cb6aff778588ae3b86560f
|
4
|
+
data.tar.gz: c5328ff3e19921a8e05649ec9ef515b8079933bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e67ec5529278ce9885aeedfb52a6728d4f7648b1955b15ebb2ff782106c7281b126c09725859b12fee344994ef9a76b244fad2a3dca2e68b4365b43c8b051c5
|
7
|
+
data.tar.gz: c644c02339d1adf6a59a3bae24616889ff40aa0af326f5a6bca5f794bb82406221071c3840a7a952c44fd6b8ff0eb0432e57ee2e4da4433406624222e20ef688
|
data/lib/s-3po/events.rb
CHANGED
@@ -61,6 +61,12 @@ module S3PO
|
|
61
61
|
object[:ts]
|
62
62
|
end
|
63
63
|
|
64
|
+
# Is it a hidden event?
|
65
|
+
# @return [Boolean]
|
66
|
+
def is_hidden?
|
67
|
+
object[:hidden] ? true : false
|
68
|
+
end
|
69
|
+
|
64
70
|
end
|
65
71
|
|
66
72
|
|
@@ -78,6 +84,7 @@ module S3PO
|
|
78
84
|
end
|
79
85
|
|
80
86
|
def plain
|
87
|
+
return nil if text.nil?
|
81
88
|
@plain ||= Parser.plain_from_text(text)
|
82
89
|
end
|
83
90
|
|
data/s-3po.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s-3po
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken J.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Slack message formatter gem
|
14
14
|
email:
|