Rakefile in syslogger-1.2.0 vs Rakefile in syslogger-1.2.1

- old
+ new

@@ -1,26 +1,10 @@ -require 'rubygems' -require 'rake' +require 'spec/rake/spectask' +require 'rake/rdoctask' -begin - require 'jeweler' - Jeweler::Tasks.new do |gem| - gem.name = "syslogger" - gem.summary = %Q{Dead simple Ruby Syslog logger} - gem.description = %Q{Same as SyslogLogger, but without the ridiculous number of dependencies and with the possibility to specify the syslog facility} - gem.email = "cyril.rohr@gmail.com" - gem.homepage = "http://github.com/crohr/syslogger" - gem.authors = ["Cyril Rohr"] - gem.add_development_dependency "rspec", ">= 0" - # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings - end - Jeweler::GemcutterTasks.new -rescue LoadError - puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" -end +$LOAD_PATH.unshift(File.expand_path('../lib', __FILE__)) -require 'spec/rake/spectask' Spec::Rake::SpecTask.new(:spec) do |spec| spec.libs << 'lib' << 'spec' spec.spec_files = FileList['spec/**/*_spec.rb'] end @@ -28,18 +12,13 @@ spec.libs << 'lib' << 'spec' spec.pattern = 'spec/**/*_spec.rb' spec.rcov = true end -task :test => :check_dependencies - -task :default => :spec - -require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| - version = File.exist?('VERSION') ? File.read('VERSION') : "" - rdoc.rdoc_dir = 'rdoc' - rdoc.title = "syslogger #{version}" + rdoc.title = "syslogger #{Syslogger::VERSION}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end + +task :default => :spec