justify 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e93602aa3f82abab176d2441516117aad2992849
4
- data.tar.gz: 418023a69e731cf1ea4fe64bcfb9abbdb37413f4
3
+ metadata.gz: 962daf490bcb8c152ff8840369e9f71d14417a1d
4
+ data.tar.gz: e4dd2639751235015dc471a0de801071a7c6d0a8
5
5
  SHA512:
6
- metadata.gz: b38adae5fef0e17a387133cbe77c9d6b7a31efa5bae28f56f92ab9993de44f5e74f97ae8b3196268d747701237171b5affdf7121311d5120069d380b1015dd12
7
- data.tar.gz: a44362dc6230be5f9f6a1581a362c448e418cb2d7ee4e3f4418616d54e6bf016dda219133d9c54848b37f6bfbdfb3fd709ab4edbdbf3d9a04b2c68cfbb67c88f
6
+ metadata.gz: b1b19ab8b636384229a625e325efd2bead01d48fd244f9b54883f076f51bdeda3d0662d215e7cdc3138ac019458b841032102379bf769eec5b4df7f58a64985a
7
+ data.tar.gz: 551eaba15d819722c7ce418ea2267bae00ce6bd7cbeb42aa74a30a6c0f4bea638c172ef3a51bad617947997a41e7b969d395919620dd196a7ffc64e4306bc6c0
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -4,7 +4,7 @@ class String
4
4
  def justify(len = 80)
5
5
  unless self.length < len
6
6
 
7
- words = self.gsub("\n", " ").scan(/\w.+/)
7
+ words = self.gsub("\n", " ").scan(/[\w.-]+/)
8
8
  actual_len = 0
9
9
  output = ""
10
10
  words.each do |w|
@@ -1,3 +1,3 @@
1
1
  module Justify
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: justify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paolo Perego
metadata.gz.sig CHANGED
Binary file