fedux_org-stdlib 0.8.3 → 0.8.4

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
  SHA1:
3
- metadata.gz: cd43ee83a3e06f40712bd01aa5444e63bebc11f0
4
- data.tar.gz: c61db9ef8692a90fc318a68150f4fb3b16ce1f7a
3
+ metadata.gz: 5b853439520dde85108744f24b94463130791d82
4
+ data.tar.gz: 8f97edebdae65cd7cf58fd3a402ad3feb81d98f9
5
5
  SHA512:
6
- metadata.gz: ece8ea8122b2581e43a7611415b9ab9e433e52910fc5f6deebe92b5c330461012167170c74dc5ec42e9e80955eb461bfa4fd2d585906c5fb02cfff9fca39d337
7
- data.tar.gz: db43dacb6082617500e1028f804e7d03231afc0017ba92f548828ce87df8a273072261547a9065220ac762caf143ef23b0b508dcf3d505120f021bf39bad7cf5
6
+ metadata.gz: 09192109cee44cc63e2364cb48954f75779dcf1d5b23bf537bff096c874b52da9ced615594720363e9775eb460da5162d1ad3ee00996e8ed679ae5e0170c77b3
7
+ data.tar.gz: 05671174c5b4691e01b25a364e8471cfbcd093d5d95862a28e068ec810999f8f85372b3d6688df3f6a392e2cfdac05ed68c8877b46ecf7b355b6fa4f0276577b
@@ -36,8 +36,8 @@ module FeduxOrgStdlib
36
36
  #
37
37
  # @param [Hash] options
38
38
  # Options which are supported by Hirb
39
- def to_s(**options)
40
- Hirb::Helpers::Table.render data, header_filter: proc(&:humanize), **options
39
+ def to_s(max_width: ENV['COLUMNS'].to_i, **options)
40
+ Hirb::Helpers::Table.render data, header_filter: proc(&:humanize), max_width: max_width, **options
41
41
  end
42
42
 
43
43
  # Data as array
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  # FeduxOrgStdlib
3
3
  module FeduxOrgStdlib
4
- VERSION = '0.8.3'
4
+ VERSION = '0.8.4'
5
5
  end
data/spec/list_spec.rb CHANGED
@@ -31,9 +31,10 @@ RSpec.describe List do
31
31
  it 'passes options to table helper' do
32
32
  list = List.new(name: 'user1', age: 30)
33
33
  expect_result = <<-EOS.strip_heredoc
34
- ****** 1. row ******
35
- Age: 30
36
- Name: user1
34
+ ****** 1. row ******
35
+ Age: 30
36
+ Name: user1
37
+ 1 row in set
37
38
  EOS
38
39
 
39
40
  expect(list.to_s(style: :vertical)).to include expect_result
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fedux_org-stdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Meyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-21 00:00:00.000000000 Z
11
+ date: 2014-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport