term-ansicolor 1.3.0 → 1.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: 79c895d6570b2bcf9279e05fd1f4acc818e6e0fc
4
- data.tar.gz: a23fb4ecc245b804e7a824dab1df9affa14d86bf
3
+ metadata.gz: cf83c8a86b10c8400c7ad24e03a6b6de6a44253e
4
+ data.tar.gz: dba42af9939f6135a4f69356e5d7b40dfc2fc1be
5
5
  SHA512:
6
- metadata.gz: be393537b938825645b1e66ce3bdb254c8b010de1f440683a5e037ce50aad675c3ce919d341b315b5d3b6e7b0d833f7b303d6d87b0c79ac86bcb4e9e3b24bd91
7
- data.tar.gz: c4081b39fc07e00ebd6b74e414dfba897b85ad262b2e54081948d1008247da22dd1ac5c197cf1c4d730745efa9922e75c6cc3292fe6e177b947d467e0f55aa52
6
+ metadata.gz: 839476689fc7ff7fd5cd4c81cd56573cc2049acaa3a5c80155ed9bdbfba5b9a211c7589928d4915f950c9a0ea475642c4c4aaa7ce33c06541a4dc8c0250434fd
7
+ data.tar.gz: 27465ee878f5c412ae7158ffb9af5c271a8eeffb5948d7d3aabd992ca668d7957eb9e81304a3bdb31dbf8535492b71584c55c4af7540bf44f2e94bb9e56acd98
@@ -1,11 +1,12 @@
1
1
  rvm:
2
- - 1.8.7
3
- - 1.9.2
4
- - 1.9.3
5
- - 2.0.0
2
+ - 2.0
3
+ - 2.1
4
+ - 2.2
6
5
  - ruby-head
7
- - ree
8
- - rbx-18mode
9
- - rbx-19mode
10
- - jruby-18mode
11
- - jruby-19mode
6
+ - rbx-20mode
7
+ - jruby-head
8
+ matrix:
9
+ allow_failures:
10
+ - rvm: ruby-head
11
+ - rvm: jruby-head
12
+ - rvm: rbx-20mode
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ 2015-06-23 - 1.3.2 * Fix release 1.3.1
2
+ 2014-06-17 - 1.3.1 * This release was a bit premature, yanked it.
3
+ 2014-02-06 - 1.3.0 * Support bright and faint color names.
1
4
  2013-05-30 - 1.2.2 * No more fun and smileys, now you have to call term_display
2
5
  yourself.
3
6
  * term_display can now display image URLs directly.
data/Rakefile CHANGED
@@ -19,6 +19,7 @@ GemHadar do
19
19
 
20
20
  dependency 'tins', '~>1.0'
21
21
  development_dependency 'simplecov'
22
+ development_dependency 'minitest_tu_shim'
22
23
 
23
24
  install_library do
24
25
  destdir = "#{ENV['DESTDIR']}"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.2
@@ -1,6 +1,6 @@
1
1
  module Term::ANSIColor
2
2
  # Term::ANSIColor version
3
- VERSION = '1.3.0'
3
+ VERSION = '1.3.2'
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:
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: term-ansicolor 1.3.0 ruby lib
2
+ # stub: term-ansicolor 1.3.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "term-ansicolor"
6
- s.version = "1.3.0"
6
+ s.version = "1.3.2"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib"]
10
10
  s.authors = ["Florian Frank"]
11
- s.date = "2014-02-06"
11
+ s.date = "2015-06-23"
12
12
  s.description = "This library uses ANSI escape sequences to control the attributes of terminal output"
13
13
  s.email = "flori@ping.de"
14
14
  s.executables = ["cdiff", "decolor", "colortab", "term_mandel", "term_display"]
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.homepage = "http://flori.github.com/term-ansicolor"
18
18
  s.licenses = ["GPL-2"]
19
19
  s.rdoc_options = ["--title", "Term-ansicolor - Ruby library that colors strings using ANSI escape sequences", "--main", "README.rdoc"]
20
- s.rubygems_version = "2.2.2"
20
+ s.rubygems_version = "2.4.6"
21
21
  s.summary = "Ruby library that colors strings using ANSI escape sequences"
22
22
  s.test_files = ["tests/ansicolor_test.rb", "tests/attribute_test.rb", "tests/ppm_reader_test.rb", "tests/rgb_color_metrics_test.rb", "tests/rgb_triple_test.rb", "tests/test_helper.rb"]
23
23
 
@@ -25,17 +25,20 @@ 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>, ["~> 1.0.0"])
28
+ s.add_development_dependency(%q<gem_hadar>, ["~> 1.3.1"])
29
29
  s.add_development_dependency(%q<simplecov>, [">= 0"])
30
+ s.add_development_dependency(%q<minitest_tu_shim>, [">= 0"])
30
31
  s.add_runtime_dependency(%q<tins>, ["~> 1.0"])
31
32
  else
32
- s.add_dependency(%q<gem_hadar>, ["~> 1.0.0"])
33
+ s.add_dependency(%q<gem_hadar>, ["~> 1.3.1"])
33
34
  s.add_dependency(%q<simplecov>, [">= 0"])
35
+ s.add_dependency(%q<minitest_tu_shim>, [">= 0"])
34
36
  s.add_dependency(%q<tins>, ["~> 1.0"])
35
37
  end
36
38
  else
37
- s.add_dependency(%q<gem_hadar>, ["~> 1.0.0"])
39
+ s.add_dependency(%q<gem_hadar>, ["~> 1.3.1"])
38
40
  s.add_dependency(%q<simplecov>, [">= 0"])
41
+ s.add_dependency(%q<minitest_tu_shim>, [">= 0"])
39
42
  s.add_dependency(%q<tins>, ["~> 1.0"])
40
43
  end
41
44
  end
@@ -104,16 +104,16 @@ class ANSIColorTest < Test::Unit::TestCase
104
104
  for a in Term::ANSIColor.attributes
105
105
  # skip clear for Ruby 1.9 which implements String#clear to empty the string
106
106
  if a != :clear || Term::ANSIColor.support?(:clear)
107
- assert_not_equal foo, foo_colored = foo.__send__(a)
107
+ refute_equal foo, foo_colored = foo.__send__(a)
108
108
  assert_equal foo, foo_colored.uncolor
109
109
  end
110
- assert_not_equal foo, foo_colored = Color.__send__(a, foo)
110
+ refute_equal foo, foo_colored = Color.__send__(a, foo)
111
111
  assert_equal foo, Color.uncolor(foo_colored)
112
- assert_not_equal foo, foo_colored = Color.__send__(a) { foo }
112
+ refute_equal foo, foo_colored = Color.__send__(a) { foo }
113
113
  assert_equal foo, Color.uncolor { foo_colored }
114
- assert_not_equal foo, foo_colored = Term::ANSIColor.__send__(a) { foo }
114
+ refute_equal foo, foo_colored = Term::ANSIColor.__send__(a) { foo }
115
115
  assert_equal foo, Term::ANSIColor.uncolor { foo_colored }
116
- assert_not_equal foo, foo_colored = __send__(a) { foo }
116
+ refute_equal foo, foo_colored = __send__(a) { foo }
117
117
  assert_equal foo, uncolor { foo_colored }
118
118
  end
119
119
  assert_equal Term::ANSIColor.attributes, 'foo'.attributes
@@ -11,7 +11,7 @@ class RGBColorMetrics < Test::Unit::TestCase
11
11
  end
12
12
 
13
13
  def test_metric_getters
14
- assert_raise(ArgumentError) { RGBColorMetrics.metric('Foo') }
14
+ assert_raises(ArgumentError) { RGBColorMetrics.metric('Foo') }
15
15
  assert_equal RGBColorMetrics::Euclidean, RGBColorMetrics.metric('Euclidean')
16
16
  assert_equal RGBColorMetrics::Euclidean, RGBColorMetrics.metric(:Euclidean)
17
17
  assert_operator RGBColorMetrics.metrics.size, :>, 1
@@ -8,7 +8,7 @@ class RgbTripleTest < Test::Unit::TestCase
8
8
  assert_equal '#8000ff', RGBTriple[ rgb ].html
9
9
  assert_equal '#8000ff', RGBTriple[ [ 128, 0, 255 ] ].html
10
10
  assert_equal '#8000ff', RGBTriple[ :red => 128, :green => 0, :blue => 255 ].html
11
- assert_raise ArgumentError do
11
+ assert_raises ArgumentError do
12
12
  RGBTriple[ nil ]
13
13
  end
14
14
  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.3.0
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-06 00:00:00.000000000 Z
11
+ date: 2015-06-23 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: 1.0.0
19
+ version: 1.3.1
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: 1.0.0
26
+ version: 1.3.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: simplecov
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest_tu_shim
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: tins
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -132,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
146
  version: '0'
133
147
  requirements: []
134
148
  rubyforge_project:
135
- rubygems_version: 2.2.2
149
+ rubygems_version: 2.4.6
136
150
  signing_key:
137
151
  specification_version: 4
138
152
  summary: Ruby library that colors strings using ANSI escape sequences