Sha256: 55e4363a58849c14f0cea35aa5e6d590b4a8e646857691fd5217d7f19cd3bd27

Contents?: true

Size: 1015 Bytes

Versions: 2

Compression:

Stored size: 1015 Bytes

Contents

begin
  require 'bundler/setup'
rescue LoadError
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end

require 'rdoc/task'

RDoc::Task.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'SpreeContent'
  rdoc.options << '--line-numbers'
  rdoc.rdoc_files.include('README.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
require 'spree/testing_support/extension_rake'

RSpec::Core::RakeTask.new

task :default do
  if Dir["spec/dummy"].empty?
    Rake::Task[:test_app].invoke
    Dir.chdir("../../")
  end
  Rake::Task[:spec].invoke
end

desc 'Generates a dummy app for testing'
task :test_app do
  ENV['LIB_NAME'] = 'spree_summernote'
  Rake::Task['extension:test_app'].invoke
end

begin
  APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
  load 'rails/tasks/engine.rake'
rescue LoadError
  if Dir["spec/dummy"].empty?
    Rake::Task[:test_app].invoke
    Dir.chdir("../../")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_summernote-3.0.1 Rakefile
spree_summernote-3.0.0 Rakefile