smart_excerpt 0.1.4 → 0.1.5

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: 1030e6791609813f86fbddb62230288bc284da2a
4
- data.tar.gz: 7da1ff34432fae665f1ed103c1cb00ab57ab188f
3
+ metadata.gz: 1e579ce0ae17c57d6c8eb9252dc61333b33ac8df
4
+ data.tar.gz: 3ac5e53e47260f6f82f08d16c25f54d983175d78
5
5
  SHA512:
6
- metadata.gz: dcd5703df6a4878197600218d86d60d591bd31756171b6de1b4a788df4c1b7cd16bfee3aadaaa4ac6f91d4a3a1bd365f34fb4d445a744d58c3b81ccd1e65da13
7
- data.tar.gz: 79774148a0db326c9c98effb087467529716f63997943fc5c0341d44ddbce59001db0a36216c45ca6a404c543e8f368b3e5fdee5eac7f40d8fe956a999cd4f21
6
+ metadata.gz: 415216da0096f0380bd62e6b551113e363145e08dc5c7c782813c0ad244a34f446642d70e2a22f8003645f52ae33c8fe3191d2d43532ce56fdfbd09adfac4bf0
7
+ data.tar.gz: 41c04f78cf6d7d25617779765bc8620ff6a06e208426404fd296bab667bbf900d94b59ef614d942571b77587d6f288e60d0faecba64dde6335c6418bc68aa3c0
@@ -16,6 +16,10 @@ module SmartExcerpt
16
16
  self.strip_tags(self.decode(str))
17
17
  end
18
18
 
19
+ def simple_format(str)
20
+ SmartExcerpt.h.simple_format(str)
21
+ end
22
+
19
23
  def truncate(str, opts = {})
20
24
  return '' if str.blank?
21
25
  tx = str.gsub(/<h\d[^>]*?>(.*)<\/h\d>/mi, '').gsub("\n", ' ').gsub("\r", '').gsub("\t", '').strip
@@ -1,3 +1,3 @@
1
1
  module SmartExcerpt
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_excerpt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebtv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-25 00:00:00.000000000 Z
11
+ date: 2014-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport