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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f17fc6c5835de05207956fd35a3f0d084066afb
4
- data.tar.gz: 1d538a2574f787c91d48883dfe07e08042c816f5
3
+ metadata.gz: 70b105043b926d8fe9982dd151dbd89b807acb9f
4
+ data.tar.gz: b17932bb401b9d61306b5051d4117737e9352e40
5
5
  SHA512:
6
- metadata.gz: 72b7895cec242dca32f1c5522de0877b162c39f5cb1413973ccac7f3d73e8155836b21751a8ec120071f07127b8796e7c8898b19fb9f98e3181dc93354c7fd18
7
- data.tar.gz: 6e853ae616c1c93387d509cd520767ce070590f8ac8ac8b9ea84e31fa33f82368849baf49433618c85fb3a946e8739cc9a44b0b1d0c325ae69c3d8b03e20a3e1
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 releast thanks to a contribution from [Josh Brown](https://github.com/tobijb) allows you
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
- support it. Here is an example of output you can generate easily with "the reporter":
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
 
@@ -14,7 +14,6 @@ module CommandLineReporter
14
14
  self.color = options[:color]
15
15
  self.bold = options[:bold] || false
16
16
  self.encoding = options[:encoding] || :unicode
17
-
18
17
  end
19
18
 
20
19
  def add(column)
@@ -114,7 +114,7 @@ module CommandLineReporter
114
114
  # keep default
115
115
  elsif row.color
116
116
  c.color = row.color
117
- else
117
+ elsif inherit_from != 1
118
118
  c.color = self.rows[inherit_from].columns[i].color
119
119
  end
120
120
  end
@@ -1,3 +1,3 @@
1
1
  module CommandLineReporter
2
- VERSION = '3.3.1'
2
+ VERSION = '3.3.2'
3
3
  end
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.1
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-02-26 00:00:00.000000000 Z
12
+ date: 2014-06-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler