colored-not 1.2 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/colored-not.gemspec +2 -2
- data/lib/colored/not.rb +1 -1
- data/test/test_colored-not.rb +7 -1
- metadata +34 -30
data/colored-not.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "colored-not"
|
7
|
-
gem.version = '1.2'
|
7
|
+
gem.version = '1.2.1'
|
8
8
|
gem.authors = ["Junegunn Choi"]
|
9
9
|
gem.email = ["junegunn.c@gmail.com"]
|
10
10
|
gem.description = %q{Toggles methods from colored gem}
|
@@ -15,6 +15,6 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
16
16
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
17
17
|
gem.require_paths = ["lib"]
|
18
|
-
gem.add_runtime_dependency "colored", '
|
18
|
+
gem.add_runtime_dependency "colored", '1.2'
|
19
19
|
gem.add_development_dependency "minitest"
|
20
20
|
end
|
data/lib/colored/not.rb
CHANGED
data/test/test_colored-not.rb
CHANGED
@@ -2,10 +2,16 @@ $VERBOSE = true
|
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'minitest/autorun'
|
5
|
-
require 'colored/not'
|
6
5
|
|
7
6
|
class TestColoredNot < MiniTest::Unit::TestCase
|
8
7
|
def test_colored_not
|
8
|
+
assert_raises(LoadError) do
|
9
|
+
require 'colored/not'
|
10
|
+
end
|
11
|
+
|
12
|
+
require 'colored'
|
13
|
+
require 'colored/not'
|
14
|
+
|
9
15
|
3.times do
|
10
16
|
assert_equal "\e[31mred\e[0m", 'red'.red
|
11
17
|
assert_equal "\e[41mred\e[0m", 'red'.on_red
|
metadata
CHANGED
@@ -1,48 +1,50 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: colored-not
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
4
|
+
prerelease:
|
5
|
+
version: 1.2.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Junegunn Choi
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: colored
|
16
|
-
|
17
|
-
none: false
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
18
17
|
requirements:
|
19
|
-
- -
|
18
|
+
- - '='
|
20
19
|
- !ruby/object:Gem::Version
|
21
20
|
version: '1.2'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
21
|
none: false
|
22
|
+
requirement: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.2'
|
27
|
+
none: false
|
28
|
+
prerelease: false
|
29
|
+
type: :runtime
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: minitest
|
32
|
-
|
33
|
-
none: false
|
32
|
+
version_requirements: !ruby/object:Gem::Requirement
|
34
33
|
requirements:
|
35
|
-
- -
|
34
|
+
- - ">="
|
36
35
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
38
|
-
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
version: !binary |-
|
37
|
+
MA==
|
41
38
|
none: false
|
39
|
+
requirement: !ruby/object:Gem::Requirement
|
42
40
|
requirements:
|
43
|
-
- -
|
41
|
+
- - ">="
|
44
42
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
43
|
+
version: !binary |-
|
44
|
+
MA==
|
45
|
+
none: false
|
46
|
+
prerelease: false
|
47
|
+
type: :development
|
46
48
|
description: Toggles methods from colored gem
|
47
49
|
email:
|
48
50
|
- junegunn.c@gmail.com
|
@@ -50,7 +52,7 @@ executables: []
|
|
50
52
|
extensions: []
|
51
53
|
extra_rdoc_files: []
|
52
54
|
files:
|
53
|
-
- .gitignore
|
55
|
+
- ".gitignore"
|
54
56
|
- Gemfile
|
55
57
|
- LICENSE.txt
|
56
58
|
- README.md
|
@@ -61,26 +63,28 @@ files:
|
|
61
63
|
- test/test_colored-not.rb
|
62
64
|
homepage: https://github.com/junegunn/colored-not
|
63
65
|
licenses: []
|
64
|
-
post_install_message:
|
66
|
+
post_install_message:
|
65
67
|
rdoc_options: []
|
66
68
|
require_paths:
|
67
69
|
- lib
|
68
70
|
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
71
|
requirements:
|
71
|
-
- -
|
72
|
+
- - ">="
|
72
73
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
74
|
-
|
74
|
+
version: !binary |-
|
75
|
+
MA==
|
75
76
|
none: false
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
78
|
requirements:
|
77
|
-
- -
|
79
|
+
- - ">="
|
78
80
|
- !ruby/object:Gem::Version
|
79
|
-
version:
|
81
|
+
version: !binary |-
|
82
|
+
MA==
|
83
|
+
none: false
|
80
84
|
requirements: []
|
81
|
-
rubyforge_project:
|
85
|
+
rubyforge_project:
|
82
86
|
rubygems_version: 1.8.24
|
83
|
-
signing_key:
|
87
|
+
signing_key:
|
84
88
|
specification_version: 3
|
85
89
|
summary: Toggles methods from colored gem
|
86
90
|
test_files:
|