Skip to content

Commit

Permalink
Long defered updates to the Rakefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmallard committed May 26, 2016
1 parent c4592ab commit 8c24c4b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions Rakefile
Expand Up @@ -19,10 +19,12 @@ require 'rspec/core/rake_task'
require "stomp/version"

begin
require "hanna/rdoctask"
require "hanna-nouveau"
have_hanna = true
rescue LoadError => e
require "rdoc/task"
have_hanna = false
end
require "rdoc/task"

begin
require 'jeweler'
Expand All @@ -38,9 +40,6 @@ begin
gem.authors = ["Brian McCallister", 'Marius Mathiesen', 'Thiago Morello',
'Guy M. Allard']
gem.add_development_dependency "rspec", '>= 2.14.1'
gem.extra_rdoc_files = [ "README.rdoc", "CHANGELOG.rdoc", "LICENSE",
"lib/**/*.rb", "examples/**/*.rb",
"test/**/*.rb" ]
end
Jeweler::GemcutterTasks.new
rescue LoadError
Expand All @@ -61,12 +60,14 @@ RSpec::Core::RakeTask.new('spec:rcov') do |t|
end

Rake::RDocTask.new do |rdoc|
rdoc.main = "README.rdoc"
rdoc.main = "README.md"
rdoc.rdoc_dir = "doc"
rdoc.title = "Stomp"
rdoc.options += %w[ --line-numbers --inline-source --charset utf-8 ]
rdoc.rdoc_files.include("README.rdoc", "CHANGELOG.rdoc", "lib/**/*.rb", "examples/**/*.rb",
"test/**/*.rb")
if have_hanna
rdoc.options += %w[ --format hanna ]
end
rdoc.rdoc_files.include("README.md", "CHANGELOG.md", "lib/**/*.rb")
end

Rake::TestTask.new do |t|
Expand All @@ -77,5 +78,3 @@ end

task :default => :spec



0 comments on commit 8c24c4b

Please sign in to comment.