coloration 0.2.4 → 0.2.5

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.
@@ -1,3 +1,3 @@
1
1
  module Coloration
2
- VERSION = "0.2.4".freeze
2
+ VERSION = "0.2.5".freeze
3
3
  end
@@ -128,8 +128,8 @@ module Coloration
128
128
  style ||= @default_style
129
129
  # normal,selected,bold,italic,strike,underline,bg,bg_selected,---
130
130
  s = []
131
- s << style.foreground.html.gsub('#', '')
132
- s << style.foreground.html.gsub('#', '')
131
+ s << (style.foreground || @default_style.foreground).html.gsub('#', '')
132
+ s << (style.foreground || @default_style.foreground).html.gsub('#', '')
133
133
  s << style.bold.to_i
134
134
  s << style.italic.to_i
135
135
  s << style.strike.to_i
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 4
9
- version: 0.2.4
8
+ - 5
9
+ version: 0.2.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Marcin Kulik