Rakefile updated, license defined

This commit is contained in:
Denis Knauf 2016-08-25 22:33:27 +02:00
parent 07598fc954
commit 42a62ae112
2 changed files with 37 additions and 35 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/pkg

View file

@ -2,56 +2,57 @@ require 'rubygems'
require 'rake' require 'rake'
begin begin
require 'jeweler' require 'jeweler'
Jeweler::Tasks.new do |gem| Jeweler::Tasks.new do |gem|
gem.name = "select" gem.name = "select"
gem.summary = %Q{IO-event-handler based on select} gem.summary = %Q{IO-event-handler based on select}
gem.description = %Q{Select based event-handler for servers and sockets} gem.description = %Q{Select based event-handler for servers and sockets}
gem.email = "Denis.Knauf@gmail.com" gem.email = "ich@denkn.at"
gem.homepage = "http://github.com/DenisKnauf/select" gem.license = 'LGPL-3.0'
gem.authors = ["Denis Knauf"] gem.homepage = "http://github.com/DenisKnauf/select"
gem.files = %w[README.md VERSION lib/**/*.rb test/**/*.rb] gem.authors = ["Denis Knauf"]
gem.require_paths = %w[lib] gem.files = %w[README.md VERSION lib/**/*.rb test/**/*.rb]
end gem.require_paths = %w[lib]
Jeweler::GemcutterTasks.new end
Jeweler::GemcutterTasks.new
rescue LoadError rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end end
require 'rake/testtask' require 'rake/testtask'
Rake::TestTask.new(:test) do |test| Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test' << 'ext' test.libs << 'lib' << 'test' << 'ext'
test.pattern = 'test/**/*_test.rb' test.pattern = 'test/**/*_test.rb'
test.verbose = true test.verbose = true
end end
begin begin
require 'rcov/rcovtask' require 'rcov/rcovtask'
Rcov::RcovTask.new do |test| Rcov::RcovTask.new do |test|
test.libs << 'test' test.libs << 'test'
test.pattern = 'test/**/*_test.rb' test.pattern = 'test/**/*_test.rb'
test.verbose = true test.verbose = true
end end
rescue LoadError rescue LoadError
task :rcov do task :rcov do
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
end end
end end
task :test => :check_dependencies task :test => :check_dependencies
task :default => :test task :default => :test
require 'rake/rdoctask' require 'rdoc/task'
Rake::RDocTask.new do |rdoc| Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION') if File.exist?('VERSION')
version = File.read('VERSION') version = File.read('VERSION')
else else
version = "" version = ""
end end
rdoc.rdoc_dir = 'rdoc' rdoc.rdoc_dir = 'rdoc'
rdoc.title = "sbdb #{version}" rdoc.title = "select #{version}"
rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb') rdoc.rdoc_files.include('lib/**/*.rb')
end end