texttable 1.1.11 → 1.1.12
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 +4 -4
 - data/lib/texttable.rb +2 -2
 - data/texttable.gemspec +1 -1
 - metadata +3 -4
 - data/.ruby-version +0 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 87e25e891adb38fb970af89bcde4da535c6358a56e5174ecf7672e0b4b08bf38
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 371c68f35b9dd4a489db7f60401a1613b8a1a49a1ba8bf61ea4e7ae318bac74c
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 3f21e246ab40d03a44b8c57c53e5f98383fc716b8dca109015fd3f9153ad69810d368d8c63b4da05115fe1e150b6ec152b002772562567cff46ba2a82f603230
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: b1e542914ee61d821dfcfacb9fe83aa734fc919b1bbe76a37f8581d61d47973fd6596d80e64b887949a05799efa8e73a047601ba9b3e47b7748b1b229dfe27ba
         
     | 
    
        data/lib/texttable.rb
    CHANGED
    
    | 
         @@ -170,7 +170,7 @@ class TextTable 
     | 
|
| 
       170 
170 
     | 
    
         | 
| 
       171 
171 
     | 
    
         
             
              def show!(list=nil)
         
     | 
| 
       172 
172 
     | 
    
         
             
                meth = list.is_a?(Array) ? list.method(:push) : method(:puts)
         
     | 
| 
       173 
     | 
    
         
            -
                join = "  
     | 
| 
      
 173 
     | 
    
         
            +
                join = " │ "
         
     | 
| 
       174 
174 
     | 
    
         
             
                size = @cols.size
         
     | 
| 
       175 
175 
     | 
    
         
             
                full = [@cols.keys] + rows
         
     | 
| 
       176 
176 
     | 
    
         
             
                full.each_with_index do |vals, i| # only when asymmetric
         
     | 
| 
         @@ -181,7 +181,7 @@ class TextTable 
     | 
|
| 
       181 
181 
     | 
    
         
             
                lens = full.map {|r| r.map {|c| c.to_s.size}}.transpose.map(&:max)
         
     | 
| 
       182 
182 
     | 
    
         
             
                pict = lens.map {|len| "%-#{len}.#{len}s" }.join(join)
         
     | 
| 
       183 
183 
     | 
    
         
             
                pict = [join, pict, join].join.strip
         
     | 
| 
       184 
     | 
    
         
            -
                line = (pict % ([""] * size)).tr(" 
     | 
| 
      
 184 
     | 
    
         
            +
                line = (pict % ([""] * size)).tr("│ ", "•─")
         
     | 
| 
       185 
185 
     | 
    
         
             
                seen = -1
         
     | 
| 
       186 
186 
     | 
    
         
             
                meth["", line]
         
     | 
| 
       187 
187 
     | 
    
         
             
                full.each do |vals|
         
     | 
    
        data/texttable.gemspec
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: texttable
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.1.12
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Steve Shreeve
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2023-02-22 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       13 
13 
     | 
    
         
             
            description: This gem will auto-size based on column widths.
         
     | 
| 
       14 
14 
     | 
    
         
             
            email: steve.shreeve@gmail.com
         
     | 
| 
         @@ -16,7 +16,6 @@ executables: [] 
     | 
|
| 
       16 
16 
     | 
    
         
             
            extensions: []
         
     | 
| 
       17 
17 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
       18 
18 
     | 
    
         
             
            files:
         
     | 
| 
       19 
     | 
    
         
            -
            - ".ruby-version"
         
     | 
| 
       20 
19 
     | 
    
         
             
            - Gemfile
         
     | 
| 
       21 
20 
     | 
    
         
             
            - LICENSE
         
     | 
| 
       22 
21 
     | 
    
         
             
            - README.md
         
     | 
| 
         @@ -41,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       41 
40 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       42 
41 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       43 
42 
     | 
    
         
             
            requirements: []
         
     | 
| 
       44 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 43 
     | 
    
         
            +
            rubygems_version: 3.4.6
         
     | 
| 
       45 
44 
     | 
    
         
             
            signing_key:
         
     | 
| 
       46 
45 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       47 
46 
     | 
    
         
             
            summary: An easy way to work with rows and columns as simple tables
         
     | 
    
        data/.ruby-version
    DELETED
    
    | 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            3.1.2
         
     |