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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/s-3po/events.rb +7 -0
  3. data/s-3po.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5534a0273b457003e6efb4559b03922a54ddb260
4
- data.tar.gz: df93ec41046fd6b6e841e2cf8d3aaf8763543f42
3
+ metadata.gz: ea996306d4bbf71f44cb6aff778588ae3b86560f
4
+ data.tar.gz: c5328ff3e19921a8e05649ec9ef515b8079933bb
5
5
  SHA512:
6
- metadata.gz: 5b10e34853cc749b02f0c9bba592741cdb5eff564562d7611169b4ff62fc7fe74543f9098b2f81143f908f4f3fb888694456a3e9f0e41139b257aa332f263b4a
7
- data.tar.gz: 463c6c21d7a511c74d5ea1bd99e6f3af6cf8d49678b46513b8b3d310583e57ad08fc7936d7fce09cbcc5ced4360fce6c7648e934402ecfb4500d07bbde4952f5
6
+ metadata.gz: 3e67ec5529278ce9885aeedfb52a6728d4f7648b1955b15ebb2ff782106c7281b126c09725859b12fee344994ef9a76b244fad2a3dca2e68b4365b43c8b051c5
7
+ data.tar.gz: c644c02339d1adf6a59a3bae24616889ff40aa0af326f5a6bca5f794bb82406221071c3840a7a952c44fd6b8ff0eb0432e57ee2e4da4433406624222e20ef688
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 's-3po'
3
- s.version = '0.3.0'
3
+ s.version = '0.3.1'
4
4
  s.authors = ['Ken J.']
5
5
  s.email = ['kenjij@gmail.com']
6
6
  s.description = %q{Slack message formatter gem}
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.0
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 00:00:00.000000000 Z
11
+ date: 2015-05-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Slack message formatter gem
14
14
  email: