command_line_reporter 3.3.1 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/command_line_reporter/row.rb +0 -1
- data/lib/command_line_reporter/table.rb +1 -1
- data/lib/command_line_reporter/version.rb +1 -1
- data/spec/table_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70b105043b926d8fe9982dd151dbd89b807acb9f
|
4
|
+
data.tar.gz: b17932bb401b9d61306b5051d4117737e9352e40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9db40ad21b9d21c086148e956e837539c7391c2702c8ab013c8cdda1dc88b80b81c6b1590fd900f069d44471f55906691aff4eeaa3819af6981b846d249089a5
|
7
|
+
data.tar.gz: 32fdbf5b68a00ed8dbcc9cd49e9fb8431f7acdca1121f7da8cf830a53579983f96efb83c1a7782bac79a19d1f8d01877da920f787be2e4c6f8b12878e0be665d
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
## Command Line Reporter [![Build Status](https://travis-ci.org/wbailey/command_line_reporter.png)](https://travis-ci.org/wbailey/command_line_reporter) [![Code Climate](https://codeclimate.com/github/wbailey/command_line_reporter.png)](https://codeclimate.com/github/wbailey/command_line_reporter) [![Gem Version](https://badge.fury.io/rb/command_line_reporter.png)](http://badge.fury.io/rb/command_line_reporter)
|
2
2
|
|
3
3
|
This gem provides a DSL that makes it easy to write reports of various types in ruby. It eliminates
|
4
|
-
the need to litter your source with *puts* statements instead providing a more readable, expressive
|
4
|
+
the need to litter your source with *puts* statements, instead providing a more readable, expressive
|
5
5
|
interface to your application. Some of the best features include:
|
6
6
|
|
7
7
|
* Formatters that automatically indicate progress
|
@@ -10,9 +10,9 @@ interface to your application. Some of the best features include:
|
|
10
10
|
* Output suppression that makes it easy for your script to support a _quiet_ flag
|
11
11
|
* Capture report output as a string
|
12
12
|
|
13
|
-
The latest
|
13
|
+
The latest release, thanks to a contribution from [Josh Brown](https://github.com/tobijb), allows you
|
14
14
|
to choose between UTF8 or ASCII for drawing tables. By default it will use UTF8 if your system
|
15
|
-
|
15
|
+
supports it. Here is an example of output you can generate easily with "the reporter":
|
16
16
|
|
17
17
|
![Screenshot](http://i.imgur.com/5izCf.png)
|
18
18
|
|
data/spec/table_spec.rb
CHANGED
@@ -94,7 +94,15 @@ describe CommandLineReporter::Table do
|
|
94
94
|
@table.add(row)
|
95
95
|
end
|
96
96
|
|
97
|
+
it 'color' do
|
98
|
+
expect(@table.rows[1].columns[0].color).to eq('red')
|
99
|
+
expect(@table.rows[1].columns[1].color).to eq('purple')
|
100
|
+
expect(@table.rows[1].columns[2].color).to eq('blue')
|
101
|
+
expect(@table.rows[1].columns[3].color).to eq('red')
|
102
|
+
end
|
103
|
+
|
97
104
|
it 'bold' do
|
105
|
+
expect(@table.rows[1].columns[0].bold).to be_false
|
98
106
|
expect(@table.rows[1].columns[0].bold).to be_false
|
99
107
|
expect(@table.rows[1].columns[1].bold).to be_false
|
100
108
|
expect(@table.rows[1].columns[2].bold).to be_false
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: command_line_reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-06-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|