Rakefile in patron-0.6.0 vs Rakefile in patron-0.6.1
- old
+ new
@@ -20,14 +20,14 @@
## OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
## THE SOFTWARE.
##
## -------------------------------------------------------------------
require 'rake/clean'
-require 'rdoc/task'
require 'rake/extensiontask'
require 'rspec/core/rake_task'
require 'bundler'
+require 'yard'
Rake::ExtensionTask.new do |ext|
ext.name = 'session_ext' # indicate the name of the extension.
ext.ext_dir = 'ext/patron' # search for 'hello_world' inside it.
ext.lib_dir = 'lib/patron' # put binaries into this folder.
@@ -41,15 +41,14 @@
desc "Start an IRB shell"
task :shell => :compile do
sh 'irb -I./lib -I./ext -r patron'
end
-Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'Patron documentation'
- rdoc.main = 'README.txt'
- rdoc.rdoc_files.include('README.txt')
- rdoc.rdoc_files.include('lib/**/*.rb')
+desc "Generate YARD documentation"
+YARD::Rake::YardocTask.new do |t|
+ t.files = ['lib/**/*.rb', 'ext/**/*.c' ]
+ t.options = ['--markup markdown']
+ t.stats_options = ['--list-undoc']
end
desc "Run specs"
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = %w( --colour --format progress )