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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODIzZWU0OGU5NGMxYzM5ZDdhYmNlNmU4MmZiM2I3M2UzYTVhYjM4ZA==
4
+ NTZlZWIwZjY1MGRlZDVkMDRjZDg5ODIwMzJmNjA4ZmViNTMwMmYzMg==
5
5
  data.tar.gz: !binary |-
6
- NDE3Njg1N2M3YWEwYTM3Y2U0NDQ5MWY2NzQ5MmQwOWNjMGM3ZmNjOQ==
6
+ ODFlZDIyODJhOTc2YmIxOWM1ZWIxN2U5MzIzMTY2NThjNGIyYTNlYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZWNhYTZkYjE4NjFmOGZkMWVhZDEwNGVmMTA5ODZmMmJlMmJiNmI1YTI0ZjY1
10
- ZmU0NzEyZDM0OTVhOWFkNTM1YWUxZDE3MTAyNTEwODM5YmY0NGUxOGY4MmVl
11
- MzgzYzZkNmExZWMxNzc5MmVmMDU3OTNiNWRiOWIxMzA1OWU1MGI=
9
+ ZTA0MTM4YTY4MTljZWVkODZkNzBkYzk0Y2IxZjMyZGZlYTEyNzk1YWY2Yzdm
10
+ Y2VhYjU5MzVjZThmMjczNTQ4ZjdhNzRjYTZkZDM1ZDk2MDQyMWJiZDI5Y2E1
11
+ Zjk1MTRiZDAxOTU1OWNkZDZkODQyNGY1NTVkZjM5ZTk0YjE3YWU=
12
12
  data.tar.gz: !binary |-
13
- NzVmYjlmZWNjNzkwOWU0ODkyZWQyYTgwZjE3NzlmMTFjNWI4NWU1MTcwN2E1
14
- ZTE3MjYzZDdlNTZkYmMwOTI2ZGY3ZTdmY2RhOTBlMzk3ZmRlNjNhMTZhNTkx
15
- NGJkYWFhMmQzZWYxYTE1MDNkYTJlNTlmNGFlMTQ1Nzc1ODg1YTE=
13
+ Yjk4Y2MzN2YxNzU2MGU2ZGYwNmJlZGY2NDA2ZDc2MTQ5M2NhMzJhMWE3NWRh
14
+ YzEwZTkzNWZlZjkzMTc0ZGEwZGRmOTgwYmY4ZmNmZjI1ZjMwNDk3MTk4OTU2
15
+ OTJlYmFjZGY4MGQ2Njg5NzRlMzAyZjM3ZjAwOTU1MDJkMWQxYWY=
@@ -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 > 200
61
- i = str2.index(' ', 200) - 1
62
- i = 200 if i.nil?
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}..."
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.4.101'
2
+ VERSION = '0.4.102'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.101
4
+ version: 0.4.102
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry