term-ansicolor 1.2.0 → 1.2.1

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: af8a2335a9c7525731899d81ed738d42f1476acf
4
- data.tar.gz: 39ad9bcec2cc2cb6e35e751abe0a9dcb1a874df3
3
+ metadata.gz: c04b3b1a85095b216dce5b1147d04a524d550faa
4
+ data.tar.gz: e6f3673a2300f5c1e17696d61c14c6940ea43e7e
5
5
  SHA512:
6
- metadata.gz: 4cf91d3f8b52f8440741ba9e84f3f436fedfaa27d10ffa52a95782e8e044c103e4fbfa423e349368afa88dedcaee11ca2b4672a448144c2b2f7336f961c9c2b0
7
- data.tar.gz: dd425666ea88970b3da1ca256892e8c2da08a5c37a1f48328f452d5e41204392ac5f5d0a6611d3cb758601d58cbbefd74e50597152a71822ffce82836ac646b0
6
+ metadata.gz: c6bb6229dd886080b7e92c50b7e1248ac19d4e5824bb513ccc01414d9ad8a3b5351ee1858bb726f0eb19a715b8ff7e5f08a9d88c9df5ad0375db42840c75dee2
7
+ data.tar.gz: 914fff47e7842018c18c123cb54541ac6c1dd13a6715a04077fb13667717cf5cd2fdfdc520acab032a61fdcb17e00eb65a4182005ce113de094c071d20be26f0
data/CHANGES CHANGED
@@ -1,3 +1,4 @@
1
+ 2013-05-23 - 1.2.1 * Prevent warnings when running in -w mode.
1
2
  2013-05-16 - 1.2.0 * Add term_mandel and term_display executables.
2
3
  * Implement configurable color metrics.
3
4
  * Add gradient functionality for color attributes.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.1
@@ -78,6 +78,8 @@ module Term
78
78
  @rgb = RGBTriple.from_html(html)
79
79
  elsif !options.empty?
80
80
  @rgb = RGBTriple.from_hash(options)
81
+ else
82
+ @rgb = nil # prevent instance variable not initialized warnings
81
83
  end
82
84
  end
83
85
 
@@ -24,7 +24,7 @@ module Term
24
24
  end
25
25
 
26
26
  def normalize_rgb_triple(rgb_triple)
27
- r, g, b = [
27
+ [
28
28
  rgb_triple.red,
29
29
  rgb_triple.green,
30
30
  rgb_triple.blue
@@ -1,6 +1,6 @@
1
1
  module Term::ANSIColor
2
2
  # Term::ANSIColor version
3
- VERSION = '1.2.0'
3
+ VERSION = '1.2.1'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "term-ansicolor"
5
- s.version = "1.2.0"
5
+ s.version = "1.2.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Florian Frank"]
9
- s.date = "2013-05-16"
9
+ s.date = "2013-05-24"
10
10
  s.description = "This library uses ANSI escape sequences to control the attributes of terminal output"
11
11
  s.email = "flori@ping.de"
12
12
  s.executables = ["cdiff", "decolor", "colortab", "term_mandel", "term_display"]
@@ -25,16 +25,16 @@ Gem::Specification.new do |s|
25
25
  s.specification_version = 4
26
26
 
27
27
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
28
- s.add_development_dependency(%q<gem_hadar>, ["~> 0.3.1"])
28
+ s.add_development_dependency(%q<gem_hadar>, ["~> 0.3.2"])
29
29
  s.add_development_dependency(%q<simplecov>, [">= 0"])
30
30
  s.add_runtime_dependency(%q<tins>, ["~> 0.8"])
31
31
  else
32
- s.add_dependency(%q<gem_hadar>, ["~> 0.3.1"])
32
+ s.add_dependency(%q<gem_hadar>, ["~> 0.3.2"])
33
33
  s.add_dependency(%q<simplecov>, [">= 0"])
34
34
  s.add_dependency(%q<tins>, ["~> 0.8"])
35
35
  end
36
36
  else
37
- s.add_dependency(%q<gem_hadar>, ["~> 0.3.1"])
37
+ s.add_dependency(%q<gem_hadar>, ["~> 0.3.2"])
38
38
  s.add_dependency(%q<simplecov>, [">= 0"])
39
39
  s.add_dependency(%q<tins>, ["~> 0.8"])
40
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: term-ansicolor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-16 00:00:00.000000000 Z
11
+ date: 2013-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.1
19
+ version: 0.3.2
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.1
26
+ version: 0.3.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: simplecov
29
29
  requirement: !ruby/object:Gem::Requirement