Skip to content

Commit

Permalink
Remove yard rake tasks; seriously get off my yard
Browse files Browse the repository at this point in the history
  • Loading branch information
psyomn committed Dec 28, 2017
1 parent e715a39 commit d4e903d
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "./lib/wlog/domain/static_configurations"
require 'yard'

RSpec::Core::RakeTask.new(:spec)

# note: rake yard
YARD::Rake::YardocTask.new do |t|
t.options = ['--title', 'Wlog: the friendly worktime logger!', '-o', 'doc/']
end

# Anything that has to do with the stuff of this gem in .config/wlog
namespace :data do
desc "Remove all configuration data of wlog"
task :rm do
task :rm do
include Wlog::StaticConfigurations
print "You sure you want to remove #{AppDirectory}? [y/n] :"
FileUtils.rm_rf AppDirectory if $stdin.gets.match(/^y/i)
Expand All @@ -23,15 +17,15 @@ end
namespace :db do
# Remove data directory. This will remove all your data
desc "Remove All the databases"
task :rm do
task :rm do
include Wlog::StaticConfigurations
puts "Removing data directories from #{DataDirectory}"
print "You sure you want to remove it? [y/n] "
FileUtils.rm_rf AppDirectory if $stdin.gets.match(/^y/i)
end

desc "Run the sqlite3 console with the default database"
task :c do
task :c do
include Wlog::StaticConfigurations
sh "sqlite3 #{DataDirectory}#{DefaultDb}"
end
Expand All @@ -43,15 +37,13 @@ namespace :reek do
sh "reek lib/"
end

desc "Grep long parameter list"
desc "Grep long parameter list"
task :lparam do
sh "reek 2>&1 lib/ | grep -i param"
end

end

namespace :test do
namespace :test do
task :all => :spec
end


end

0 comments on commit d4e903d

Please sign in to comment.