polyblock 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/polyblock/application_helper.rb +3 -3
- data/lib/polyblock/version.rb +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: ff1b1011057012de5de4bb7d34083bcc819d9072
|
4
|
+
data.tar.gz: 798b6e7eb21deead33e1515febbb216b09891854
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20674b891df39d239c083f81d402c67f9a75c7238804aea4dbd0fbb8a27f613caf2791fbeb2250e21fcd23c02476d03783e0d0b2ccee460a5976a93bf3d76b76
|
7
|
+
data.tar.gz: da2c2d52b5bdf942e9cc017faf72f20b15c29f77aec863afe8ca9799951887fa69fb1993fa2b5556209463d9fe5b2c87341db441ed964e555293338549bd292b
|
@@ -62,10 +62,10 @@ module Polyblock
|
|
62
62
|
if options[:condensed]
|
63
63
|
tag_options[:class] += " polyblock-condensed"
|
64
64
|
content = CGI.unescapeHTML(content.gsub("<br><br>", "<br>").gsub(' ', ' '))
|
65
|
-
|
65
|
+
truncate(sanitize(strip_tags(content)), :length => options[:length], :omission => options[:omission]).html_safe
|
66
|
+
else
|
67
|
+
content_tag(options[:tag], content, tag_options, false)
|
66
68
|
end
|
67
|
-
|
68
|
-
content_tag(options[:tag], content, tag_options, false)
|
69
69
|
end
|
70
70
|
|
71
71
|
def simple_fields_for_polyblock(name, f, options={})
|
data/lib/polyblock/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyblock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MacKinley Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|