tco 0.1.4 → 0.1.5

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: 7855a328ecfda6385c65b4ad9ef8945d2ddb07e9
4
- data.tar.gz: 94967d9ed4d9fbe718ff0477b1bbc8e36020a95c
3
+ metadata.gz: fdfbac6ae8ea111dfb782e0d149df10ce836e738
4
+ data.tar.gz: cbd63146bd36c9ee51022515706aea070ce1c332
5
5
  SHA512:
6
- metadata.gz: 123aa1226971a310e86d69e258a742f5cc04855a9962bbfb794b81ba5b4a2d2d82bea11dfcee1468755c34df30526b6fe59e63646f0b4ff648747aabe09816bb
7
- data.tar.gz: d7df16214c894953b7f16ef3962c884cb6195edff262ec060fae0e00783167affb6281ea5f6a0f6ac79c83c911f679a8cc5e4d5f62787eadd504d339e357aa5b
6
+ metadata.gz: 7a4fe789d96cead271a765c44a7f66c9d67bb06ef4e41483873a67848c6098ecee69a4b7502f5dad6abf3f70e40d4ea23c39dbb0e6d7685ea902369c7293eb1a
7
+ data.tar.gz: c3289c218898a8a335efff82349008071389ecadb6c32538e337d6d7f13696f53e292455f2037d5632d77af26fd7155112de98f150e48bc3f7696b9cce7a0d03
data/lib/tco.rb CHANGED
@@ -71,10 +71,10 @@ module Tco
71
71
  Style.new
72
72
  end
73
73
 
74
- style.fg = seg.params[:fg]
75
- style.bg = seg.params[:bg]
76
- style.bright = seg.params[:bright]
77
- style.underline = seg.params[:underline]
74
+ style.fg = seg.params[:fg] if seg.params[:fg]
75
+ style.bg = seg.params[:bg] if seg.params[:bg]
76
+ style.bright = seg.params[:bright] if seg.params[:bright]
77
+ style.underline = seg.params[:underline] if seg.params[:underline]
78
78
 
79
79
  output << decorate(seg.to_s, style)
80
80
  end
@@ -181,8 +181,8 @@ module Tco
181
181
  params[:base_style] = df
182
182
  params[:fg] = nil
183
183
  params[:bg] = nil
184
- params[:bright] = false
185
- params[:underline] = false
184
+ params[:bright] = nil
185
+ params[:underline] = nil
186
186
  end
187
187
  when :end
188
188
  if stack.length > 0
@@ -22,5 +22,5 @@
22
22
  # THE SOFTWARE.
23
23
 
24
24
  module Tco
25
- VERSION = "0.1.4"
25
+ VERSION = "0.1.5"
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Radek Pazdera
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-20 00:00:00.000000000 Z
11
+ date: 2014-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler