Sha256: 53b51398d7759567a463f020b18ca6d5ebe3547107100292a32ea22a7307b50a

Contents?: true

Size: 958 Bytes

Versions: 2

Compression:

Stored size: 958 Bytes

Contents

# frozen_string_literal: true

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

RSpec::Core::RakeTask.new(:spec) do |task|
  task.pattern = 'spec/closure_tree/*_spec.rb'
end

task default: :spec

namespace :spec do
  desc 'Run all spec variants'
  task :all do
    rake = 'bin/rake'
    fail unless system("#{rake} spec:generators")

    [['', ''], ['db_prefix_', ''], ['', '_db_suffix'], ['abc_', '_123']].each do |prefix, suffix|
      env = "DB_PREFIX=#{prefix} DB_SUFFIX=#{suffix}"
      fail unless system("#{rake} spec #{env}")
    end
  end

  desc 'Run generator specs'
  RSpec::Core::RakeTask.new(:generators) do |task|
    task.pattern = 'spec/generators/*_spec.rb'
  end
end

require 'github_changelog_generator/task'
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
  config.user = 'ClosureTree'
  config.project = 'closure_tree'
  config.issues = false
  config.future_release = '5.2.0'
  config.since_tag = 'v7.3.0'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
closure_tree-7.4.0 Rakefile
closure_tree-7.4.0.rc1 Rakefile