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
|
# -*- encoding: utf-8 -*-
require 'rubygems' unless defined? Gem
require File.dirname(__FILE__) + "/lib/paint/version"
Gem::Specification.new do |s|
s.name = "paint"
s.version = Paint::VERSION
s.authors = ["Jan Lelis"]
s.email = "mail@janlelis.de"
s.homepage = "https://github.com/janlelis/paint"
s.summary = "Terminal painter!"
s.description = "Terminal painter / no string extensions / 256 color support / effect support / define custom shortcuts / basic usage: Paint['string', :red, :bright]"
s.required_ruby_version = '>= 1.8.7'
s.files = Dir.glob(%w[{lib,test,spec}/**/*.rb bin/* [A-Z]*.{txt,rdoc} ext/**/*.{rb,c}]) + %w{Rakefile paint.gemspec .gemtest}
s.extra_rdoc_files = ["README.rdoc", "LICENSE.txt"]
s.license = 'MIT'
s.add_development_dependency 'rspec'
s.add_development_dependency 'rspec-core'
s.add_development_dependency 'rake'
s.add_development_dependency 'rainbow'
s.add_development_dependency 'term-ansicolor'
len = s.homepage.size
s.post_install_message = \
(" ┌── " + "info ".ljust(len-2,'%') + "─┐\n" +
" J-_-L │ " + s.homepage + " │\n" +
" ├── " + "usage ".ljust(len-2,'%') + "─┤\n" +
" │ " + "require 'paint'".ljust(len,' ') + " │\n" +
" │ " + "puts Paint['J-_-L', :red] # \e[31mJ-_-L\e[0m".ljust(len,' ') + " │\n" +
" └─" + '─'*len + "─┘").gsub('%', '─') # 1.8 workaround
end
|