conred 0.0.15 → 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Rakefile +5 -0
- data/lib/conred/helpers.rb +1 -3
- data/lib/conred/version.rb +1 -1
- metadata +3 -3
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/lib/conred/helpers.rb
CHANGED
@@ -11,7 +11,6 @@ module Conred
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def sanitize_and_trim(text = "", word_count = nil, omission = '...')
|
14
|
-
text = "" if text == nil
|
15
14
|
text = action_view.strip_tags(text)
|
16
15
|
if word_count
|
17
16
|
action_view.truncate(text, :length => word_count, :omission => omission).html_safe
|
@@ -20,8 +19,7 @@ module Conred
|
|
20
19
|
end
|
21
20
|
end
|
22
21
|
|
23
|
-
def sanitize_body(text
|
24
|
-
text = "" if text == nil
|
22
|
+
def sanitize_body(text)
|
25
23
|
text = action_view.sanitize(text, :tags => %w(p a strong ul ol li blockquote strike u em), :attributes => %w(href))
|
26
24
|
text.html_safe
|
27
25
|
end
|
data/lib/conred/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conred
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.1'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
86
|
rubyforge_project:
|
87
|
-
rubygems_version: 1.8.
|
87
|
+
rubygems_version: 1.8.23
|
88
88
|
signing_key:
|
89
89
|
specification_version: 3
|
90
90
|
summary: ConcepticHQ reusable code
|