Skip to content
Newer
Older
100644 46 lines (38 sloc) 1.28 KB
50f104d @cantino starting to reorganize and add tests
cantino authored Feb 7, 2010
1 require 'rubygems'
2 require 'rake'
3
2adac8c gemified
Kyle Maxwell authored Aug 30, 2010
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "ruby-readability"
6ce929e @cantino cleanup and finish gemifying
cantino authored Oct 1, 2010
8 gem.summary = %Q{Port of arc90's readability project to ruby}
9 gem.description = %Q{Port of arc90's readability project to ruby}
10 gem.email = "andrew@iterationlabs.com"
11 gem.homepage = "http://github.com/iterationlabs/ruby-readability"
12 gem.authors = ["Andrew Cantino", "starrhorne", "libc", "Kyle Maxwell"]
2adac8c gemified
Kyle Maxwell authored Aug 30, 2010
13 gem.add_development_dependency "rspec", ">= 1.2.9"
2df6b0e @cantino add nokogiri as dependency
cantino authored Jan 26, 2011
14 gem.add_dependency 'nokogiri', '>= 1.4.2'
2adac8c gemified
Kyle Maxwell authored Aug 30, 2010
15 end
16 Jeweler::GemcutterTasks.new
17 rescue LoadError
18 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
19 end
20
50f104d @cantino starting to reorganize and add tests
cantino authored Feb 7, 2010
21 require 'spec/rake/spectask'
22 Spec::Rake::SpecTask.new(:spec) do |spec|
23 spec.libs << 'lib' << 'spec'
24 spec.spec_files = FileList['spec/**/*_spec.rb']
25 end
26
2adac8c gemified
Kyle Maxwell authored Aug 30, 2010
27 Spec::Rake::SpecTask.new(:rcov) do |spec|
28 spec.libs << 'lib' << 'spec'
29 spec.pattern = 'spec/**/*_spec.rb'
30 spec.rcov = true
31 end
32
33 task :spec => :check_dependencies
34
50f104d @cantino starting to reorganize and add tests
cantino authored Feb 7, 2010
35 task :default => :spec
2adac8c gemified
Kyle Maxwell authored Aug 30, 2010
36
37 require 'rake/rdoctask'
38 Rake::RDocTask.new do |rdoc|
39 version = File.exist?('VERSION') ? File.read('VERSION') : ""
40
41 rdoc.rdoc_dir = 'rdoc'
42 rdoc.title = "ruby-readability #{version}"
43 rdoc.rdoc_files.include('README*')
44 rdoc.rdoc_files.include('lib/**/*.rb')
45 end
Something went wrong with that request. Please try again.