Rakefile in win32-autogui-0.3.0 vs Rakefile in win32-autogui-0.4.0
- old
+ new
@@ -4,10 +4,20 @@
# be listed as a development dependency in the gemspec
require 'rubygems'
require 'bundler/setup'
+# TODO: remove this once issue corrected
+# Bundler broken up to 1.0.7 on Windows
+module Bundler
+ class GemHelper
+ def self.install_tasks(opts = nil)
+ dir = caller.find{|c| /Rakefile:/}[/^(.*?)\/Rakefile:/, 1]
+ self.new(dir, opts && opts[:name]).install
+ end
+ end
+end
Bundler::GemHelper.install_tasks
def gemspec
@gemspec ||= begin
file = File.expand_path('../win32-autogui.gemspec', __FILE__)
@@ -39,17 +49,21 @@
require 'yard'
require 'yard/rake/yardoc_task'
YARD::Rake::YardocTask.new(:generate) do |yt|
- yt.options = ['--markup-provider', 'rdiscount',
- '--output-dir', doc_destination
+ yt.options = ['--output-dir', doc_destination
] +
gemspec.rdoc_options - ['--line-numbers', '--inline-source']
end
desc "Remove generated documenation"
task :clean do
rm_r doc_destination if File.exists?(doc_destination)
+ end
+
+ desc "List undocumented objects"
+ task :undocumented do
+ system('yard stats --list-undoc')
end
end