columnize 0.8.9 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -4
- data/Gemfile.lock +2 -2
- data/NEWS +2 -0
- data/README.md +1 -1
- data/columnize.gemspec +1 -4
- data/lib/columnize/columnize.rb +1 -1
- data/lib/columnize/version.rb +1 -1
- metadata +7 -7
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/NEWS
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[![Build Status](https://travis-ci.org/rocky/columnize.png)](https://travis-ci.org/rocky/columnize)
|
1
|
+
[![Build Status](https://travis-ci.org/rocky/columnize.png)](https://travis-ci.org/rocky/columnize) [![Gem Version](https://badge.fury.io/rb/columnize.svg)](http://badge.fury.io/rb/columnize)
|
2
2
|
|
3
3
|
Columnize - Format an Array as a Column-aligned String
|
4
4
|
============================================================================
|
data/columnize.gemspec
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
# -*- Ruby -*-
|
2
2
|
# -*- encoding: utf-8 -*-
|
3
|
-
require 'rake'
|
4
|
-
require 'rubygems' unless
|
5
|
-
Object.const_defined?(:Gem)
|
6
3
|
require File.dirname(__FILE__) + "/lib/columnize/version" unless
|
7
4
|
Object.const_defined?(:'Columnize')
|
8
5
|
|
@@ -34,5 +31,5 @@ See Examples in the rdoc documentation for examples.
|
|
34
31
|
spec.rdoc_options += ['--title', "Columnize #{Columnize::VERSION} Documentation"]
|
35
32
|
|
36
33
|
spec.add_development_dependency 'rdoc'
|
37
|
-
spec.add_development_dependency 'rake'
|
34
|
+
spec.add_development_dependency 'rake', '~> 10.1.0'
|
38
35
|
end
|
data/lib/columnize/columnize.rb
CHANGED
@@ -60,7 +60,7 @@ module Columnize
|
|
60
60
|
# TODO: make this a method, rather than a function (?)
|
61
61
|
# compute the smallest number of rows and the max widths for each column
|
62
62
|
def min_rows_and_colwidths
|
63
|
-
list = @list.map
|
63
|
+
list = @list.map(&@stringify)
|
64
64
|
cell_widths = list.map(&@term_adjuster).map(&:size)
|
65
65
|
|
66
66
|
# Set default arrangement: one atom per row
|
data/lib/columnize/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: columnize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-12-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdoc
|
@@ -32,17 +32,17 @@ dependencies:
|
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
35
|
-
- -
|
35
|
+
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
37
|
+
version: 10.1.0
|
38
38
|
type: :development
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
45
|
+
version: 10.1.0
|
46
46
|
description: ! '
|
47
47
|
|
48
48
|
In showing a long lists, sometimes one would prefer to see the value
|
@@ -97,7 +97,7 @@ rdoc_options:
|
|
97
97
|
- --main
|
98
98
|
- README
|
99
99
|
- --title
|
100
|
-
- Columnize 0.
|
100
|
+
- Columnize 0.9.0 Documentation
|
101
101
|
require_paths:
|
102
102
|
- lib
|
103
103
|
required_ruby_version: !ruby/object:Gem::Requirement
|