Rakefile in methodic-1.2 vs Rakefile in methodic-1.3
- old
+ new
@@ -1,21 +1,21 @@
+# coding: utf-8
+require "bundler/gem_tasks"
require 'rubygems'
-
require 'rspec'
require 'rake'
require "rake/clean"
require "rubygems/package_task"
require "rdoc/task"
-require 'code_statistics'
require 'rspec/core/rake_task'
require 'yard'
require 'yard/rake/yardoc_task.rb'
require "rake/tasklib"
require "roodi"
require "roodi_task"
-
-
+require 'code_statistics'
+
RoodiTask.new() do | t |
t.patterns = %w(lib/**/*.rb)
t.config = "ultragreen_roodi_coding_convention.yml"
end
@@ -30,16 +30,16 @@
RSpec::Core::RakeTask.new('spec')
YARD::Rake::YardocTask.new do |t|
- t.files = [ 'lib/**/*.rb', '-', 'doc/**/*','spec/**/*_spec.rb']
+ t.files = [ 'lib/**/*.rb', '-', 'doc/**/*','spec/**/*_spec.rb']
t.options += ['--title', "Gem Documentation"]
t.options += ['-o', "yardoc"]
t.options += ['-r', "doc/manual.rdoc"]
end
-YARD::Config.load_plugin('yard-rspec')
+YARD::Config.load_plugin('yard-rspec')
namespace :yardoc do
task :clobber do
rm_r "yardoc" rescue nil
rm_r ".yardoc" rescue nil
@@ -58,6 +58,12 @@
d.main = 'doc/manual.rdoc'
d.title = 'Uglibs : Ultragreen libraries'
d.options << '--line-numbers' << '--diagram' << '-SHN'
end
-task :default => [:gem]
\ No newline at end of file
+task :default => [:gem]
+
+task :stage do
+ Rake::Task["clean"].invoke
+ Rake::Task["clobber"].invoke
+ Rake::Task["install"].invoke
+end