Rakefile in ezmq-0.3.7 vs Rakefile in ezmq-0.4.0
- old
+ new
@@ -1,20 +1,18 @@
# require 'simplecov'
require 'rubocop/rake_task'
require 'reek/rake/task'
-require 'rspec/core/rake_task'
require 'roodi_task'
task default: [:test]
-task test: [:rspec]
+task test: [:kintama]
-desc 'Run Test Suite with RSpec'
-RSpec::Core::RakeTask.new(:rspec) do |task|
- task.patterns = ['spec/**/*.rb']
- task.fail_on_error = false
+desc 'Run Test Suite'
+task :kintama do
+ sh 'ruby tests/ezmq.rb'
end
task audit: [:style, :complexity, :duplication, :design, :documentation]
task style: [:rubocop]
@@ -50,6 +48,17 @@
sh 'churn'
end
task :documentation do
sh 'inch'
+end
+
+task generate: [:documents, :graphs]
+
+task :documents do
+ sh 'yard'
+end
+
+task :graphs do
+ sh 'bundle viz'
+ sh 'yard graph | dot -Tpng > lib_graph.png'
end