Sha256: 33841d2117ff305c36cdf51271d8fe05b6d339035c4b42843cb9e257abcfe2e6

Contents?: true

Size: 1.25 KB

Versions: 5

Compression:

Stored size: 1.25 KB

Contents

# encoding: utf-8
require 'bundler/setup'
require 'yard'
require 'rspec/core/rake_task'

Bundler::GemHelper.install_tasks

desc 'Default: run unit specs.'
if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
  task :default => :appraisal
else
  task :default => :spec
end

desc 'Run the default task over all gemfiles.'
task :appraisal do
  for_all_gemfiles("exec", "rake")
end

namespace :appraisal do
  desc 'Run `bundle install` over all gemfiles.'
  task :install do
    for_all_gemfiles("install")
  end
end

def for_all_gemfiles(*args)
  Dir.glob("gemfiles/*/Gemfile").sort.each do |gemfile|
    Bundler.with_original_env do
      sh({ "APPRAISAL_INITIALIZED" => "true", "BUNDLE_GEMFILE" => gemfile }, "bundle", *args)
    end
  end
end

desc 'Generate documentation for the formtastic plugin.'
YARD::Rake::YardocTask.new(:yard) do |t|

end
task doc: :yard

desc 'Test the formtastic plugin.'
RSpec::Core::RakeTask.new('spec') do |t|
  t.pattern = FileList['spec/**/*_spec.rb']
end

desc 'Test the formtastic inputs.'
RSpec::Core::RakeTask.new('spec:inputs') do |t|
  t.pattern = FileList['spec/inputs/*_spec.rb']
end

desc 'Test the formtastic plugin with specdoc formatting and colors'
RSpec::Core::RakeTask.new('specdoc') do |t|
  t.pattern = FileList['spec/**/*_spec.rb']
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
formtastic-5.0.0 Rakefile
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/formtastic-4.0.0/Rakefile
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/formtastic-4.0.0/Rakefile
formtastic-4.0.0 Rakefile
formtastic-4.0.0.rc1 Rakefile