diff options
author | Michael Bleigh <michael@intridea.com> | 2009-09-02 21:32:57 -0400 |
---|---|---|
committer | Michael Bleigh <michael@intridea.com> | 2009-09-02 21:32:57 -0400 |
commit | a7781d369ad474d0df0d5ae6e7cc0c8eabc1f7dc (patch) | |
tree | b5bb44b681016fa54aafb78b9f324dd036554bfd /Rakefile | |
download | hashie-a7781d369ad474d0df0d5ae6e7cc0c8eabc1f7dc.tar.gz |
Initial commit to hashie.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..1d387b3 --- /dev/null +++ b/Rakefile @@ -0,0 +1,48 @@ +require 'rubygems' +require 'rake' + +begin + require 'jeweler' + Jeweler::Tasks.new do |gem| + gem.name = "hashie" + gem.summary = %Q{TODO: one-line summary of your gem} + gem.description = %Q{TODO: longer description of your gem} + gem.email = "michael@intridea.com" + gem.homepage = "http://github.com/mbleigh/hashie" + gem.authors = ["Michael Bleigh"] + gem.add_development_dependency "rspec" + # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings + end +rescue LoadError + puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" +end + +require 'spec/rake/spectask' +Spec::Rake::SpecTask.new(:spec) do |spec| + spec.libs << 'lib' << 'spec' + spec.spec_files = FileList['spec/**/*_spec.rb'] +end + +Spec::Rake::SpecTask.new(:rcov) do |spec| + spec.libs << 'lib' << 'spec' + spec.pattern = 'spec/**/*_spec.rb' + spec.rcov = true +end + +task :spec => :check_dependencies + +task :default => :spec + +require 'rake/rdoctask' +Rake::RDocTask.new do |rdoc| + if File.exist?('VERSION') + version = File.read('VERSION') + else + version = "" + end + + rdoc.rdoc_dir = 'rdoc' + rdoc.title = "hashie #{version}" + rdoc.rdoc_files.include('README*') + rdoc.rdoc_files.include('lib/**/*.rb') +end |