Sha256: 5b8915fc4edd424c1c1e05537eee59ec0e3e799ba24e2e3fdebb1de803b61c84

Contents?: true

Size: 669 Bytes

Versions: 8

Compression:

Stored size: 669 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "rdoc/task"

task default: 'test:quick'


RDoc::Task.new do |rdoc|
  rdoc.main = "README.rdoc"
  rdoc.rdoc_files.include("lib   /*.rb")
end

namespace :test do
  RSpec::Core::RakeTask.new("spec") do |t|
    t.rspec_opts = '--color --fail-fast'
  end

  begin
    require 'rubocop/rake_task'
    Rubocop::RakeTask.new do |task|
      task.fail_on_error = true
    end
  rescue LoadError
    warn 'Rubocop gem not installed, now the code will look like crap!'
  end

  desc 'Run all of the quick tests.'
  task :quick do
    Rake::Task['test:rubocop'].invoke
    Rake::Task['test:spec'].invoke
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jn_services-1.0.7 Rakefile
jn_services-1.0.6 Rakefile
jn_services-1.0.5 Rakefile
jn_services-1.0.4 Rakefile
jn_services-1.0.3 Rakefile
jn_services-1.0.2 Rakefile
jn_services-1.0.1 Rakefile
jn_services-1.0.0 Rakefile