justify 1.0.0 → 1.0.1

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: 9a17cf2789829cb6248e9075f0881b5abc418435
4
- data.tar.gz: ccd03699ad1b66986606280cf8e3f96660c514fb
3
+ metadata.gz: e93602aa3f82abab176d2441516117aad2992849
4
+ data.tar.gz: 418023a69e731cf1ea4fe64bcfb9abbdb37413f4
5
5
  SHA512:
6
- metadata.gz: 6088783a62fe564eb33e116cc153f8c922c99a056f6d9e58787dab08bfea4e245b1d34c86011066f081e36c0027ad3cc3bc1321b699360fc78c09b4852817114
7
- data.tar.gz: 96115d02b069929d76e4e64a297b92300d94abe44d8105453475ab43d1ff28bb8e5247812bf332fd8f1ca33f12e5c01eec03dbd09af51e7fb6f78ee6b5925fa0
6
+ metadata.gz: b38adae5fef0e17a387133cbe77c9d6b7a31efa5bae28f56f92ab9993de44f5e74f97ae8b3196268d747701237171b5affdf7121311d5120069d380b1015dd12
7
+ data.tar.gz: a44362dc6230be5f9f6a1581a362c448e418cb2d7ee4e3f4418616d54e6bf016dda219133d9c54848b37f6bfbdfb3fd709ab4edbdbf3d9a04b2c68cfbb67c88f
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.0"
2
+ VERSION = "1.0.1"
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paolo Perego
metadata.gz.sig CHANGED
Binary file