jugyo / termcolor

Termcolor is a library for ANSII color formatting like HTML for output in terminal.

This URL has Read+Write access

termcolor / Rakefile
100644 46 lines (42 sloc) 1.377 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- coding: utf-8 -*-
$:.unshift File.dirname(__FILE__) + '/lib/'
require 'termcolor'
require 'spec/rake/spectask'
 
desc 'run all specs'
Spec::Rake::SpecTask.new do |t|
  t.spec_files = FileList['spec/**/*_spec.rb']
  t.spec_opts = ['-c']
end
 
desc 'Generate gemspec'
task :gemspec do |t|
  open('termcolor.gemspec', "wb" ) do |file|
    file << <<-EOS
# -*- coding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'termcolor'
s.version = '#{TermColor::VERSION}'
s.summary = "Termcolor is a library for ANSI color formatting like HTML for output in terminal."
s.description = "Termcolor is a library for ANSI color formatting like HTML for output in terminal."
s.files = %w( #{Dir['lib/**/*.rb'].join(' ')}
#{Dir['spec/**/*.rb'].join(' ')}
#{Dir['examples/**/*.rb'].join(' ')}
README.rdoc
History.txt
Rakefile )
s.add_dependency("highline", ">= 1.5.0")
s.author = 'jugyo'
s.email = 'jugyo.org@gmail.com'
s.homepage = 'http://github.com/jugyo/termcolor'
s.rubyforge_project = 'termcolor'
s.has_rdoc = true
s.rdoc_options = ["--main", "README.rdoc", "--exclude", "spec"]
s.extra_rdoc_files = ["README.rdoc", "History.txt"]
end
EOS
  end
  puts "Generate gemspec"
end
 
desc 'Generate gem'
task :gem => :gemspec do |t|
  system 'gem', 'build', 'termcolor.gemspec'
end