Sha256: 0821bb180028d6d7f7daadd2541688deda7b80c91a306398c13ae88c1d931b02

Contents?: true

Size: 1.13 KB

Versions: 11

Compression:

Stored size: 1.13 KB

Contents

require 'rubygems'
require 'bundler'
require 'rake'

require 'pp'

# build, install, release
require 'bundler/gem_tasks'

require_relative "lib/rr/version"

default_tasks = []

begin
  # appraisal
  require 'appraisal'
rescue LoadError
else
  # appraisals
  Appraisal::File.each do |appraisal|
    desc "Resolve and install dependencies for the #{appraisal.name} appraisal"
    task "appraisal:#{appraisal.name}:install" do
      appraisal.install
    end
  end
  default_tasks << 'appraisal:install'
end

begin
  # spec
  require 'rspec/core/rake_task'
rescue LoadError
else
  require File.expand_path('../spec/defines_spec_suite_tasks', __FILE__)
  DefinesSpecSuiteTasks.call
  default_tasks << :spec
end

desc "Run tests"
task :test do
  ruby("test/run-test.rb")
end
default_tasks << :test

namespace :"gh-pages" do
  namespace :version do
    desc "Update version"
    task :update do
      config_yml_path = "gh-pages/_config.yml"
      config_yml = File.read(config_yml_path)
      config_yml = config_yml.gsub(/^version: .*$/, "version: #{RR::VERSION}")
      File.write(config_yml_path, config_yml)
    end
  end
end

task :default => default_tasks

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rr-3.1.1 Rakefile
rr-3.1.0 Rakefile
rr-3.0.9 Rakefile
rr-3.0.8 Rakefile
rr-3.0.7 Rakefile
rr-3.0.6 Rakefile
rr-3.0.5 Rakefile
rr-3.0.4 Rakefile
rr-3.0.3 Rakefile
rr-3.0.2 Rakefile
rr-3.0.1 Rakefile