colorer 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -2
- data/VERSION +1 -1
- data/colorer.gemspec +17 -43
- data/test/basic.irt +1 -4
- metadata +11 -12
- data/.document +0 -5
- data/Rakefile +0 -53
data/.gitignore
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/colorer.gemspec
CHANGED
@@ -1,51 +1,25 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
1
|
+
name = File.basename( __FILE__, '.gemspec' )
|
2
|
+
version = File.read(File.expand_path('../VERSION', __FILE__)).strip
|
5
3
|
|
6
4
|
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{colorer}
|
8
|
-
s.version = "0.2.3"
|
9
5
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
6
|
s.authors = ["Domizio Demichelis"]
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
s.files =
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
"colorer.gemspec",
|
27
|
-
"lib/colorer.rb",
|
28
|
-
"test/basic.irt",
|
29
|
-
"test/custom.irt",
|
30
|
-
"test/sgr.irt"
|
31
|
-
]
|
32
|
-
s.homepage = %q{http://github.com/ddnexus/colorer}
|
7
|
+
s.email = 'dd.nexus@gmail.com'
|
8
|
+
s.homepage = 'http://github.com/ddnexus/colorer'
|
9
|
+
s.summary = 'Easy ANSI code coloring for strings'
|
10
|
+
s.description = 'Colorer adds the basic ANSI styles to any string, allowing also to define your own stiles'
|
11
|
+
|
12
|
+
s.add_development_dependency('irt', [">= 0.7.1"])
|
13
|
+
|
14
|
+
s.files = `git ls-files -z`.split("\0")
|
15
|
+
|
16
|
+
s.name = name
|
17
|
+
s.version = version
|
18
|
+
s.date = Date.today.to_s
|
19
|
+
|
20
|
+
s.required_rubygems_version = ">= 1.3.6"
|
33
21
|
s.rdoc_options = ["--charset=UTF-8"]
|
34
22
|
s.require_paths = ["lib"]
|
35
|
-
|
36
|
-
s.summary = %q{Easy ANSI code coloring for strings}
|
37
|
-
|
38
|
-
if s.respond_to? :specification_version then
|
39
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
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<irt>, [">= 0.7.1"])
|
44
|
-
else
|
45
|
-
s.add_dependency(%q<irt>, [">= 0.7.1"])
|
46
|
-
end
|
47
|
-
else
|
48
|
-
s.add_dependency(%q<irt>, [">= 0.7.1"])
|
49
|
-
end
|
23
|
+
|
50
24
|
end
|
51
25
|
|
data/test/basic.irt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'colorer'
|
2
2
|
|
3
|
-
Colorer.define_styles
|
3
|
+
Colorer.define_styles({:basic => true}, true)
|
4
4
|
|
5
5
|
desc "red"
|
6
6
|
'red'.red
|
@@ -21,6 +21,3 @@ desc "red bold underline reversed"
|
|
21
21
|
'red bold underline reversed'.red.bold.underline.reversed
|
22
22
|
puts _
|
23
23
|
test_value_eql? "\e[0;31;1;4;7mred bold underline reversed\e[0m"
|
24
|
-
|
25
|
-
|
26
|
-
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: colorer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 4
|
10
|
+
version: 0.2.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Domizio Demichelis
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-25 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -40,15 +40,12 @@ executables: []
|
|
40
40
|
|
41
41
|
extensions: []
|
42
42
|
|
43
|
-
extra_rdoc_files:
|
44
|
-
|
45
|
-
- README.rdoc
|
43
|
+
extra_rdoc_files: []
|
44
|
+
|
46
45
|
files:
|
47
|
-
- .document
|
48
46
|
- .gitignore
|
49
47
|
- LICENSE
|
50
48
|
- README.rdoc
|
51
|
-
- Rakefile
|
52
49
|
- VERSION
|
53
50
|
- colorer.gemspec
|
54
51
|
- lib/colorer.rb
|
@@ -78,10 +75,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
75
|
requirements:
|
79
76
|
- - ">="
|
80
77
|
- !ruby/object:Gem::Version
|
81
|
-
hash:
|
78
|
+
hash: 23
|
82
79
|
segments:
|
83
|
-
-
|
84
|
-
|
80
|
+
- 1
|
81
|
+
- 3
|
82
|
+
- 6
|
83
|
+
version: 1.3.6
|
85
84
|
requirements: []
|
86
85
|
|
87
86
|
rubyforge_project:
|
data/.document
DELETED
data/Rakefile
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake'
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'jeweler'
|
6
|
-
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = "colorer"
|
8
|
-
gem.summary = %Q{Easy ANSI code coloring for strings}
|
9
|
-
gem.description = %Q{Colorer adds the basic ANSI styles to any string, allowing also to define your own stiles}
|
10
|
-
gem.email = "dd.nexus@gmail.com"
|
11
|
-
gem.homepage = "http://github.com/ddnexus/colorer"
|
12
|
-
gem.authors = ["Domizio Demichelis"]
|
13
|
-
gem.add_development_dependency "irt", ">= 0.7.1"
|
14
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
|
-
end
|
16
|
-
Jeweler::GemcutterTasks.new
|
17
|
-
rescue LoadError
|
18
|
-
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
19
|
-
end
|
20
|
-
|
21
|
-
require 'rake/testtask'
|
22
|
-
Rake::TestTask.new(:test) do |test|
|
23
|
-
test.libs << 'lib' << 'test'
|
24
|
-
test.pattern = 'test/**/test_*.rb'
|
25
|
-
test.verbose = true
|
26
|
-
end
|
27
|
-
|
28
|
-
begin
|
29
|
-
require 'rcov/rcovtask'
|
30
|
-
Rcov::RcovTask.new do |test|
|
31
|
-
test.libs << 'test'
|
32
|
-
test.pattern = 'test/**/test_*.rb'
|
33
|
-
test.verbose = true
|
34
|
-
end
|
35
|
-
rescue LoadError
|
36
|
-
task :rcov do
|
37
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
task :test => :check_dependencies
|
42
|
-
|
43
|
-
task :default => :test
|
44
|
-
|
45
|
-
require 'rake/rdoctask'
|
46
|
-
Rake::RDocTask.new do |rdoc|
|
47
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
48
|
-
|
49
|
-
rdoc.rdoc_dir = 'rdoc'
|
50
|
-
rdoc.title = "colorer #{version}"
|
51
|
-
rdoc.rdoc_files.include('README*')
|
52
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
53
|
-
end
|