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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjQ2NWZhMGNhMWE3NThkNTljYjZiMGQ0NTNmNTUzMjVkNWIxMzYyNA==
4
+ Njc4ZjRmOTI3Yjg5MDE4NGUwNjNjMTcwYjdlZTIyNzJhMTI0ZWM2Nw==
5
5
  data.tar.gz: !binary |-
6
- N2U2YTg0OWFjMTU1ZjRkNjk0NzI3YjE5YTk2MzBjZTYyMjE0YTAzMA==
6
+ OWRiMmM3NDYxNGI2YzU4ZTIxM2JkZWQ3YzZmZDhkZmFiNzYyNDBhMQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- N2I5MDEyNDFiZjljNjYwMWQxODRlNzBjNmM4M2ZmOWIyNTAwYjZkMjVmNzdl
10
- NmYyNjZlNzc1MWJjOWNkYzdmZDA5ZDJkMTBjYmNhNTg4NjZmODM3MTA2MGFi
11
- ZGJlNDc4NGM0YTI3MDBkNmM1MDkzYTIwZTkxNjg4MGZmMzIwMGI=
9
+ YmU1MjJjM2ZlYzU1MGU5MTI5YjQzMGU1OTQ1NzFhZDE3NDVmNDE5ZGZiMzY4
10
+ NGRjNzNkMjRlZmI5ZWNiMDJjNjRiZjE0YjdlMTFiM2E2MTA3NmE0NWVlNzUx
11
+ ZGFmZDA4MjE2ZmEwM2I1MDA5ZTUzNzBmZDM3ZTAzN2UwZGY3YzU=
12
12
  data.tar.gz: !binary |-
13
- MjIwNWJlYzk2M2NlZDMyNDE3MDZjZmQ4NzdhMWVlODEzMjQ1YWYwNjliNDc4
14
- ZDYzOWI0MmM0MzI5ZjU4Mjg2NmU3N2I4OGEzZmQyMzc0MjcwZDBlYmRiODE1
15
- MTRlNTk2OTc1MzJjZmJkNjliZjlmMDE4NDc0YTk4NTgwZTIzNmY=
13
+ NzhiMWQ3YWQ0ZjFiZTNkY2IzZTRmYjk3M2FiMmFhMWFkNmMyNDhmMTM5Yzg2
14
+ YjY1ZGRlNTJhZmUxM2RhZThlNzY3NzNjYTdhZDUwNDFmNWMwNWMzMDRlMjM0
15
+ NGViZDg5YmUwY2ZiMGE1MzlkOWU3MGVlYjQ2YzE2ZmY0OGZmZWI=
@@ -1,5 +1,5 @@
1
1
  class Fanforce
2
2
  class Workers
3
- VERSION = '0.6.4'
3
+ VERSION = '0.6.5'
4
4
  end
5
5
  end
@@ -55,8 +55,7 @@ class Fanforce::Workers
55
55
 
56
56
  def truncate(text, length=130, truncate_string="...")
57
57
  if text
58
- puts truncate_string.chars.class.name
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
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.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Clark