Rakefile in toadhopper-sinatra-0.1 vs Rakefile in toadhopper-sinatra-0.3
- old
+ new
@@ -8,7 +8,16 @@
begin
gem "sr-mg", "<= 0.0.5"
require "mg"
MG.new("toadhopper-sinatra.gemspec")
-rescue LoadError
+rescue Gem::LoadError
+end
+
+begin
+ gem "yard"
+ require 'yard'
+ YARD::Rake::YardocTask.new do |t|
+ t.options = ['-r', 'Readme.md', '--files', 'LICENSE'] # optional
+ end
+rescue Gem::LoadError
end