in_columns 0.0.1 → 0.1.0

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGIzNmUwZWFjZTE5MDgyN2Y4ZGUzMWRmYTE3MGQ4ODEzMGVkZGRkZQ==
4
+ OWE2ZjQ5NjNmMTBlYjU1NzVkYzAxZjE2MGY2NTY4NGVlOGY3MWUzNw==
5
5
  data.tar.gz: !binary |-
6
- NDljMDg5NTk0NzNkMWM1ODhiMTBiMjc4ZTU2M2E1YTRmN2Y4MjgxZA==
6
+ ZGI3Nzg2ZjQxNzA2ZGVkZjczYjRhY2ZmNzhkZWUxNGQ5N2IwZTkyNQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NGMzZDBiYjg4MDYxODdhNGU4M2M5ODE1NzU1ZDY4NmYxOWRiZjYzZDA3NGM3
10
- NmFlOTA5MzM3ZmRmNjQ2NjVlODE0OGQyMTYyNDM1ZGQwNjZlMzY0OGVkYmQz
11
- MDA5YzM2YTM0ODhkMGExODczODc1ZmM1ODZlMWIwNjFmY2EyYjg=
9
+ YzQ1MTg0Yzk0OWUzNDcxNGMzODAyMjBmYzNmODRlMTg4MzJkODJlODE4NDJk
10
+ MzNmNTJlZGUwY2Q3Y2E4NjNkY2I3YmU5YzMzOGEwNWMxMmZmN2U3NzczM2Q1
11
+ YTNkOTgzN2QwMjViNmZiMDNhZmIxM2MyZjNiNjhmN2JkODQ1MzY=
12
12
  data.tar.gz: !binary |-
13
- OTlhNzkzMjY4NzVhODAxZDliNTAwNjJjMzE3ZWRiZGRmNmNkMWI0ZmJmY2Uw
14
- YzVkMzMwYTZlZjlkMzZhNzQ0YjRhY2UwMWQ5OGM1YzM1MjVkMWI0ZmU5ZjFh
15
- ZjZiMTU5MmVhYmVjODE0MzllZDlkYmU1NGE4YTZiMTY5YjYzMDY=
13
+ NWU1ZDgxZDAzMjZhMTFjN2MzZTQxYzc0NDVmNDI3OTk3MGFkZmU5YzU4MmUw
14
+ MDY0OGY0NWNkNGUyOTI0NjRjNmIwZjViODhmOTcxNDg5OWUxMDE3ZGY3YmM0
15
+ NWIxMDUxMjg0ODkyNDc2NjVjZDg2ZWExN2U0NTdiNDhiOTUyZDI=
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 1.9.3
5
+ - jruby-19mode # JRuby in 1.9 mode
6
+ - rbx-19mode
data/Gemfile CHANGED
@@ -2,3 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in in_columns.gemspec
4
4
  gemspec
5
+
6
+ group :test do
7
+ gem 'coveralls', :require => false
8
+ end
data/README.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  InColumns distributes the elements of an array into a number of equal-height columns.
4
4
 
5
+ This is useful when you want to format a straight array into a number of
6
+ columns - say for displaying it to an end user.
7
+
8
+ [![Build Status](https://travis-ci.org/koppen/in_columns.png?branch=master)](https://travis-ci.org/koppen/in_columns) [![Coverage Status](https://coveralls.io/repos/koppen/in_columns/badge.png)](https://coveralls.io/r/koppen/in_columns) [![Code Climate](https://codeclimate.com/github/koppen/in_columns.png)](https://codeclimate.com/github/koppen/in_columns)
9
+
10
+ ## Usage example
11
+
5
12
  list = ['a', 'b', 'c', 'd', 'e']
6
13
  InColumns.columnize(list, 2)
7
14
  #=> [['a', 'c', 'e'], ['b', 'd']]
@@ -9,9 +16,6 @@ InColumns distributes the elements of an array into a number of equal-height col
9
16
  InColumns.columnize(list, 3)
10
17
  #=> [['a', 'd'], ['b', 'e'], ['c']]
11
18
 
12
- This is useful when you want to format a straight array into a number of
13
- columns - say for displaying it to an end user.
14
-
15
19
  ## Extension to Array
16
20
 
17
21
  If you feel so inclined, InColumns comes with a module that can be included
data/Rakefile CHANGED
@@ -5,3 +5,5 @@ Rake::TestTask.new do |t|
5
5
  t.libs << "test"
6
6
  t.test_files = FileList['test/**/*_test.rb']
7
7
  end
8
+
9
+ task :default => [:test]
data/in_columns.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["jakob@mentalized.net"]
11
11
  spec.description = %q{InColumns distributes the elements of an array into a number of equal-height columns.}
12
12
  spec.summary = %q{Distributes array elements into columns.}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/koppen/in_columns"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
@@ -1,3 +1,3 @@
1
1
  module InColumns
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -34,9 +34,3 @@ class ColumnizerTest < MiniTest::Unit::TestCase
34
34
  end
35
35
 
36
36
  end
37
-
38
- class CoreExtensionTest < MiniTest::Unit::TestCase
39
- def test_does_not_extend_array_by_default
40
- assert ![].respond_to?(:in_columns)
41
- end
42
- end
data/test/test_helper.rb CHANGED
@@ -4,3 +4,8 @@ require 'minitest/autorun'
4
4
  require 'minitest/pride'
5
5
 
6
6
  require 'in_columns'
7
+
8
+ if ENV['TRAVIS'] == "true"
9
+ require 'coveralls'
10
+ Coveralls.wear!
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: in_columns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakob Skjerning
@@ -47,6 +47,7 @@ extensions: []
47
47
  extra_rdoc_files: []
48
48
  files:
49
49
  - .gitignore
50
+ - .travis.yml
50
51
  - Gemfile
51
52
  - LICENSE.txt
52
53
  - README.md
@@ -60,7 +61,7 @@ files:
60
61
  - test/in_columns/columnizer_test.rb
61
62
  - test/in_columns_test.rb
62
63
  - test/test_helper.rb
63
- homepage: ''
64
+ homepage: https://github.com/koppen/in_columns
64
65
  licenses:
65
66
  - MIT
66
67
  metadata: {}