diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-01-26 00:53:22 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-01-30 19:38:22 +0100 |
commit | a8e82ba99adf1a2a34b136388b088dcfe60d9593 (patch) | |
tree | 567a509fe479ca4d8ed638c06dc54356caa3890f /Rakefile | |
parent | ad3b8da957176360566d678437e10284fc1b8f2c (diff) |
Prepare project structure
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..aa8614e --- /dev/null +++ b/Rakefile @@ -0,0 +1,24 @@ +require 'bundler/gem_tasks' + +begin + require 'rspec/core/rake_task' + + RSpec::Core::RakeTask.new(:spec) + + task :test => :spec + task :default => :spec +rescue LoadError => e + warn "#{e.path} is not available" +end + +begin + require 'rubocop/rake_task' + + RuboCop::RakeTask.new(:rubocop) do |t| + t.options = ['--display-cop-names', '--fail-level', 'W'] + end + + task :default => :rubocop +rescue LoadError => e + warn "#{e.path} is not available" +end |