fanforce-workers 0.6.3 → 0.6.4
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 +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjQ2NWZhMGNhMWE3NThkNTljYjZiMGQ0NTNmNTUzMjVkNWIxMzYyNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2U2YTg0OWFjMTU1ZjRkNjk0NzI3YjE5YTk2MzBjZTYyMjE0YTAzMA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2I5MDEyNDFiZjljNjYwMWQxODRlNzBjNmM4M2ZmOWIyNTAwYjZkMjVmNzdl
|
10
|
+
NmYyNjZlNzc1MWJjOWNkYzdmZDA5ZDJkMTBjYmNhNTg4NjZmODM3MTA2MGFi
|
11
|
+
ZGJlNDc4NGM0YTI3MDBkNmM1MDkzYTIwZTkxNjg4MGZmMzIwMGI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjIwNWJlYzk2M2NlZDMyNDE3MDZjZmQ4NzdhMWVlODEzMjQ1YWYwNjliNDc4
|
14
|
+
ZDYzOWI0MmM0MzI5ZjU4Mjg2NmU3N2I4OGEzZmQyMzc0MjcwZDBlYmRiODE1
|
15
|
+
MTRlNTk2OTc1MzJjZmJkNjliZjlmMDE4NDc0YTk4NTgwZTIzNmY=
|
@@ -53,8 +53,9 @@ class Fanforce::Workers
|
|
53
53
|
cache.delete and iron_mq.queue("#{queue_id}-ERRORS").delete(msg_id)
|
54
54
|
end
|
55
55
|
|
56
|
-
def truncate(text, length=130, truncate_string=
|
56
|
+
def truncate(text, length=130, truncate_string="...")
|
57
57
|
if text
|
58
|
+
puts truncate_string.chars.class.name
|
58
59
|
l = length - truncate_string.chars.length
|
59
60
|
chars = text.chars
|
60
61
|
(chars.length > length ? chars[0...l] + truncate_string : text).to_s
|