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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2c70ce0c3bafef9ad20545cf85f89216dfafe10
4
- data.tar.gz: cecc46135b21dfb46616f7e9cb6d38e796e8089f
3
+ metadata.gz: ff1b1011057012de5de4bb7d34083bcc819d9072
4
+ data.tar.gz: 798b6e7eb21deead33e1515febbb216b09891854
5
5
  SHA512:
6
- metadata.gz: b18cec274f7bad33c972686a90234c9d54cce012cca2f08334fac72194bf48318f2da95ccdc2f6d5351c2e4df16e90441bac2134c4de1152911f85d03d950acd
7
- data.tar.gz: e5dcd1974f5e55f5e8a7c43b51efe8fce2ea078da5eb6c6fb174ab49e8c4964ebd6bc764a1fcbac1fed4aad98f67ef9210b80f06b9395e7e6522e77fdd41ec3e
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('&nbsp;', ' '))
65
- content = truncate(sanitize(strip_tags(content)), :length => options[:length], :omission => options[:omission]).html_safe
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={})
@@ -1,3 +1,3 @@
1
1
  module Polyblock
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
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.1
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-01 00:00:00.000000000 Z
11
+ date: 2014-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails