Rakefile in rdf-rdfa-0.3.4 vs Rakefile in rdf-rdfa-0.3.4.1

- old
+ new

@@ -14,10 +14,12 @@ gemspec.homepage = "http://github.com/gkellogg/rdf-rdfa" gemspec.authors = ["Gregg Kellogg"] gemspec.add_dependency('rdf', '>= 0.3.3') gemspec.add_dependency('haml', '>= 3.0.0') gemspec.add_dependency('nokogiri', '>= 1.4.4') + gemspec.add_dependency('facets','>= 2.9.1') + gemspec.add_development_dependency('spira', '>= 0.0.12') gemspec.add_development_dependency('rspec', '>= 2.5.0') gemspec.add_development_dependency('rdf-spec', '>= 0.3.3') gemspec.add_development_dependency('rdf-isomorphic', '>= 0.3.4') gemspec.add_development_dependency('yard') @@ -35,15 +37,10 @@ RSpec::Core::RakeTask.new("spec:rcov") do |spec| spec.rcov = true spec.rcov_opts = %q[--exclude "spec"] end -desc "Generate HTML report specs" -RSpec::Core::RakeTask.new("doc:spec") do |spec| - spec.rspec_opts = ["--format", "html", "-o", "doc/spec.html"] -end - desc "Update RDFa Profiles" task :update_profiles do { :xhtml => "http://www.w3.org/profile/html-rdfa-1.1", :xml => "http://www.w3.org/profile/rdfa-1.1", @@ -53,8 +50,15 @@ FileUtils.rm(vocab) `./script/intern_vocabulary -o #{vocab} #{uri}` end end -YARD::Rake::YardocTask.new +namespace :doc do + YARD::Rake::YardocTask.new + + desc "Generate HTML report specs" + RSpec::Core::RakeTask.new("spec") do |spec| + spec.rspec_opts = ["--format", "html", "-o", "doc/spec.html"] + end +end task :default => :spec