caboose-cms 0.4.101 → 0.4.102
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/caboose/engine.rb +3 -3
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTZlZWIwZjY1MGRlZDVkMDRjZDg5ODIwMzJmNjA4ZmViNTMwMmYzMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODFlZDIyODJhOTc2YmIxOWM1ZWIxN2U5MzIzMTY2NThjNGIyYTNlYw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTA0MTM4YTY4MTljZWVkODZkNzBkYzk0Y2IxZjMyZGZlYTEyNzk1YWY2Yzdm
|
10
|
+
Y2VhYjU5MzVjZThmMjczNTQ4ZjdhNzRjYTZkZDM1ZDk2MDQyMWJiZDI5Y2E1
|
11
|
+
Zjk1MTRiZDAxOTU1OWNkZDZkODQyNGY1NTVkZjM5ZTk0YjE3YWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Yjk4Y2MzN2YxNzU2MGU2ZGYwNmJlZGY2NDA2ZDc2MTQ5M2NhMzJhMWE3NWRh
|
14
|
+
YzEwZTkzNWZlZjkzMTc0ZGEwZGRmOTgwYmY4ZmNmZjI1ZjMwNDk3MTk4OTU2
|
15
|
+
OTJlYmFjZGY4MGQ2Njg5NzRlMzAyZjM3ZjAwOTU1MDJkMWQxYWY=
|
data/lib/caboose/engine.rb
CHANGED
@@ -57,9 +57,9 @@ module Caboose
|
|
57
57
|
def Caboose.teaser_text(str, length = 100)
|
58
58
|
return "" if str.nil?
|
59
59
|
str2 = ActionController::Base.helpers.strip_tags(str)
|
60
|
-
if str2.length >
|
61
|
-
i = str2.index(' ',
|
62
|
-
i =
|
60
|
+
if str2.length > length
|
61
|
+
i = str2.index(' ', length) - 1
|
62
|
+
i = length if i.nil?
|
63
63
|
str2 = str2[0..i]
|
64
64
|
str2[str2.length-1] = "" if str2.ends_with?(",")
|
65
65
|
str2 = "#{str2}..."
|
data/lib/caboose/version.rb
CHANGED