module

Bundler::Thor::RakeCompat

ruby latest stable

Module not available on this version

This module is only available on newer versions. The first available version (v2_6_3) is shown here.

Adds a compatibility layer to your Bundler::Thor classes which allows you to use rake package tasks. For example, to use rspec rake tasks, one can do:

require 'bundler/vendor/thor/lib/thor/rake_compat'
require 'rspec/core/rake_task'

class Default < Bundler::Thor
  include Bundler::Thor::RakeCompat

  RSpec::Core::RakeTask.new(:spec) do |t|
    t.spec_opts = ['--options', './.rspec']
    t.spec_files = FileList['spec/**/*_spec.rb']
  end
end

Included modules

  • Rake::DSL

Files

  • lib/bundler/vendor/thor/lib/thor/rake_compat.rb