fanforce-workers 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/fanforce/workers/version.rb +1 -1
- data/lib/fanforce/workers/workers.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Njc4ZjRmOTI3Yjg5MDE4NGUwNjNjMTcwYjdlZTIyNzJhMTI0ZWM2Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWRiMmM3NDYxNGI2YzU4ZTIxM2JkZWQ3YzZmZDhkZmFiNzYyNDBhMQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmU1MjJjM2ZlYzU1MGU5MTI5YjQzMGU1OTQ1NzFhZDE3NDVmNDE5ZGZiMzY4
|
10
|
+
NGRjNzNkMjRlZmI5ZWNiMDJjNjRiZjE0YjdlMTFiM2E2MTA3NmE0NWVlNzUx
|
11
|
+
ZGFmZDA4MjE2ZmEwM2I1MDA5ZTUzNzBmZDM3ZTAzN2UwZGY3YzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzhiMWQ3YWQ0ZjFiZTNkY2IzZTRmYjk3M2FiMmFhMWFkNmMyNDhmMTM5Yzg2
|
14
|
+
YjY1ZGRlNTJhZmUxM2RhZThlNzY3NzNjYTdhZDUwNDFmNWMwNWMzMDRlMjM0
|
15
|
+
NGViZDg5YmUwY2ZiMGE1MzlkOWU3MGVlYjQ2YzE2ZmY0OGZmZWI=
|
@@ -55,8 +55,7 @@ class Fanforce::Workers
|
|
55
55
|
|
56
56
|
def truncate(text, length=130, truncate_string="...")
|
57
57
|
if text
|
58
|
-
|
59
|
-
l = length - truncate_string.chars.length
|
58
|
+
l = length - truncate_string.chars.to_a.length
|
60
59
|
chars = text.chars
|
61
60
|
(chars.length > length ? chars[0...l] + truncate_string : text).to_s
|
62
61
|
end
|