squarify 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f41a881f1261cd03b0d307aee02671d0429b8f27cba0767d8ed445be454fabc
4
- data.tar.gz: aadd65bb8509c1983a5b2594af525a0fedb36fa873659fbb949f12e6fbed9cdf
3
+ metadata.gz: 4f4d571459abafa26b7e53d4da2df4cd296d1ec591e0891f196ff1f6646e4369
4
+ data.tar.gz: 1b8158f13d23b657bb112a691a9ae96004ef46da67ae987ddaa6b11472b67eb4
5
5
  SHA512:
6
- metadata.gz: de35e84c1b28e6f4295fba837e4367fc5ebe31f4b478f94d3e59304f2dbb60055855982f20bb5eecd803e5367c18f55af6a574dbaccdf512027a4f4f01f788fd
7
- data.tar.gz: 2710230b2fd1567e49bc54639d024949a7b9282c30b183ff6e2b27074be0994bc93bf568f90614f46759dddd939b5c59b4806ffd2082e02e83b1d054ca62b53b
6
+ metadata.gz: 889a259eb25a2c915e0c8dcdc3b38889994ec2e6d7e2c821be05eb1158fb841375a38853015621011e6875974ae20f20926f20a1eb6225df01bd36d269aa97be
7
+ data.tar.gz: c8f8f53c08fd7bcbe1271999a4ba7ac96f282acb7255df0a82b443d49c3012243aaa4b277410205b05b018f90392e27f9a5e3b98efbacdbd6bc7dd3bcea1dc85
data/lib/squarify.rb CHANGED
@@ -6,11 +6,11 @@ require_relative "squarify/version"
6
6
  module Squarify
7
7
 
8
8
  class Console
9
- attr_accessor :stdout
10
-
9
+ attr_reader :stdout, :size, :record
11
10
  def initialize size, record = false
12
11
  @size = size
13
- stdout = "" if record
12
+ @record = record
13
+ @stdout = "" if record
14
14
  end
15
15
 
16
16
  def line options = nil
@@ -25,7 +25,7 @@ module Squarify
25
25
  sentence = sentence + " " * (@size - sentence.length - 2)
26
26
  end
27
27
 
28
- stdout << sentence + "\n" if record
28
+ @stdout += sentence + "\n" if @record
29
29
  box sentence, options
30
30
  end
31
31
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Squarify
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: squarify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mauro Niewolski