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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDRkZTM4M2U1YTA1ODU5MTkzMmVkZTI3Nzk2MmUzZmVkNjU2ZGQ5Ng==
4
+ ZjQ2NWZhMGNhMWE3NThkNTljYjZiMGQ0NTNmNTUzMjVkNWIxMzYyNA==
5
5
  data.tar.gz: !binary |-
6
- NTczYmJjZDYzMGQ5NTg2ZTJjNjMzM2QzNzAzZmVmOGQ4ODY1ZDk2Zg==
6
+ N2U2YTg0OWFjMTU1ZjRkNjk0NzI3YjE5YTk2MzBjZTYyMjE0YTAzMA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NTU3ZTgyY2E0OGFlZWQwNWQyNWIxY2I4MmYxNTQyMTk2OTEwZGU1YjkxNDdj
10
- OTRlNzQwZjAzNWMwYmVmNmE3ODI4MmM2NDk5M2UyMjU1YjI4NWE4NzZiZmEy
11
- NmM4MmE2NDA4Y2M4MGRkZTQyODE3NDYyMmQ5ODc2ODEwMGRmNmQ=
9
+ N2I5MDEyNDFiZjljNjYwMWQxODRlNzBjNmM4M2ZmOWIyNTAwYjZkMjVmNzdl
10
+ NmYyNjZlNzc1MWJjOWNkYzdmZDA5ZDJkMTBjYmNhNTg4NjZmODM3MTA2MGFi
11
+ ZGJlNDc4NGM0YTI3MDBkNmM1MDkzYTIwZTkxNjg4MGZmMzIwMGI=
12
12
  data.tar.gz: !binary |-
13
- MWIzZDJiNzFkNzFkOGU1ZDQwOWQwMDhkYjAzYTg2NGFkYzg0NTI1MzZjZTY4
14
- NTM1NjgyNGZmYzA4ZTUxZmRkYjAyMGNhYTQ5NzFlNGViZTY1YjZiMjRlYTg4
15
- Njg2OGNjNWIyNTBhODE1YWQxMTE4YzVlOWI3YWZhZWJmZmZmMmE=
13
+ MjIwNWJlYzk2M2NlZDMyNDE3MDZjZmQ4NzdhMWVlODEzMjQ1YWYwNjliNDc4
14
+ ZDYzOWI0MmM0MzI5ZjU4Mjg2NmU3N2I4OGEzZmQyMzc0MjcwZDBlYmRiODE1
15
+ MTRlNTk2OTc1MzJjZmJkNjliZjlmMDE4NDc0YTk4NTgwZTIzNmY=
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class Workers
3
- VERSION = '0.6.3'
3
+ VERSION = '0.6.4'
4
4
  end
5
5
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fanforce-workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark