smart_colored 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/smart_colored.rb +3 -3
- data/smart_colored.gemspec +57 -0
- metadata +5 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/lib/smart_colored.rb
CHANGED
@@ -91,9 +91,9 @@ module SmartColored
|
|
91
91
|
map_name_to_attributes extra, {extra => true}
|
92
92
|
end
|
93
93
|
|
94
|
-
|
95
|
-
COMBINED_REGEXP = /^#{
|
96
|
-
COMBINED_REGEXP_PART = /#{
|
94
|
+
PART_REGEXP = "(?:on_)?(?:#{COLOR_CODES.keys.join('|')})|#{FORMAT_CODES.keys.join('|')}"
|
95
|
+
COMBINED_REGEXP = /^#{PART_REGEXP}{2,}$/
|
96
|
+
COMBINED_REGEXP_PART = /#{PART_REGEXP}/
|
97
97
|
|
98
98
|
def method_missing(method, *arguments, &block)
|
99
99
|
if (method_s = "#{method}_") =~ COMBINED_REGEXP
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{smart_colored}
|
8
|
+
s.version = "1.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Ivan Kuchin"]
|
12
|
+
s.date = %q{2011-02-14}
|
13
|
+
s.extra_rdoc_files = [
|
14
|
+
"LICENSE.txt",
|
15
|
+
"README.markdown"
|
16
|
+
]
|
17
|
+
s.files = [
|
18
|
+
".tmignore",
|
19
|
+
"LICENSE.txt",
|
20
|
+
"README.markdown",
|
21
|
+
"Rakefile",
|
22
|
+
"VERSION",
|
23
|
+
"lib/smart_colored.rb",
|
24
|
+
"lib/smart_colored/extend.rb",
|
25
|
+
"smart_colored.gemspec",
|
26
|
+
"spec/smart_colored_spec.rb",
|
27
|
+
"spec/spec_helper.rb"
|
28
|
+
]
|
29
|
+
s.homepage = %q{http://github.com/toy/smart_colored}
|
30
|
+
s.licenses = ["MIT"]
|
31
|
+
s.require_paths = ["lib"]
|
32
|
+
s.rubygems_version = %q{1.5.0}
|
33
|
+
s.summary = %q{Color and formatting in terminal}
|
34
|
+
s.test_files = [
|
35
|
+
"spec/smart_colored_spec.rb",
|
36
|
+
"spec/spec_helper.rb"
|
37
|
+
]
|
38
|
+
|
39
|
+
if s.respond_to? :specification_version then
|
40
|
+
s.specification_version = 3
|
41
|
+
|
42
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
43
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
|
44
|
+
s.add_development_dependency(%q<rake-gem-ghost>, [">= 0"])
|
45
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
46
|
+
else
|
47
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
|
48
|
+
s.add_dependency(%q<rake-gem-ghost>, [">= 0"])
|
49
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
50
|
+
end
|
51
|
+
else
|
52
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
|
53
|
+
s.add_dependency(%q<rake-gem-ghost>, [">= 0"])
|
54
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_colored
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ivan Kuchin
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-14 00:00:00 +03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -79,6 +79,7 @@ files:
|
|
79
79
|
- VERSION
|
80
80
|
- lib/smart_colored.rb
|
81
81
|
- lib/smart_colored/extend.rb
|
82
|
+
- smart_colored.gemspec
|
82
83
|
- spec/smart_colored_spec.rb
|
83
84
|
- spec/spec_helper.rb
|
84
85
|
has_rdoc: true
|