Sha256: a9cb141f6c8bbf9528e986518eb38b07fffc50f3ac0d0a7afedcbf250d74f069

Contents?: true

Size: 458 Bytes

Versions: 9

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

require 'bundler'
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

def load_rake_tasks
  Dir.glob('./lib/tasks/**/*.rake').each { |f| import f }
end
load_rake_tasks

if defined? Rails
  # override Rails to include tasks
  class Railtie < Rails::Railtie
    rake_tasks { load_rake_tasks }
  end
end

RSpec::Core::RakeTask.new(:test) do |t|
  t.pattern = 'spec/*/*_spec.rb'
  t.verbose = false
end
task default: :test

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hit_counter-1.0.5 Rakefile
hit_counter-1.0.4 Rakefile
hit_counter-1.0.3 Rakefile
hit_counter-1.0.2 Rakefile
hit_counter-1.0.0 Rakefile
hit_counter-0.1.8 Rakefile
hit_counter-0.1.7 Rakefile
hit_counter-0.1.6 Rakefile
hit_counter-0.1.5 Rakefile