diff options
author | Daniel DeLeo <dan@opscode.com> | 2011-03-17 11:38:33 -0700 |
---|---|---|
committer | Daniel DeLeo <dan@opscode.com> | 2011-03-17 11:48:53 -0700 |
commit | 74cf61fcafc87cc86ebdd11138fd86bed89db3b6 (patch) | |
tree | 1e06352b26c2d7629c91c2efd5a440454771b918 /Rakefile | |
parent | 36e5d67d47899f0d5c7e97886afa12b639cb3d82 (diff) | |
download | mixlib-log-74cf61fcafc87cc86ebdd11138fd86bed89db3b6.tar.gz |
rm jeweler, make mixlib-log bundler-able
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 36 |
1 files changed, 8 insertions, 28 deletions
@@ -1,25 +1,14 @@ -require 'rubygems' require 'rake' +require 'rake/gempackagetask' +require 'rake/rdoctask' +require 'yaml' -begin - require 'jeweler' - Jeweler::Tasks.new do |gem| - gem.name = "mixlib-log" - gem.summary = "A gem that provides a simple mixin for log functionality" - gem.email = "info@opscode.com" - gem.homepage = "http://www.opscode.com" - gem.authors = ["Opscode, Inc."] - gem.files.include %w{ bin/* lib/**/* } - # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings - end - Jeweler::GemcutterTasks.new -rescue LoadError - STDERR.puts - STDERR.puts "Jeweler is not installed. (sudo) gem install jeweler to use gem packaging tasks" - STDERR.puts -end +gemspec = eval(IO.read('mixlib-log.gemspec')) + +Rake::GemPackageTask.new(gemspec).define begin + require 'rubygems' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = 'spec/**/*_spec.rb' @@ -33,19 +22,10 @@ end task :default => :spec -require 'rake/rdoctask' -require 'yaml' Rake::RDocTask.new do |rdoc| - if File.exist?('VERSION.yml') - config = YAML.load(File.read('VERSION.yml')) - version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}" - else - version = "" - end - rdoc.rdoc_dir = 'rdoc' - rdoc.title = "mixlib-log #{version}" + rdoc.title = "mixlib-log #{Mixlib::Log::VERSION}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end |