Sha256: 60493c42a3a0519856ef1a505fd939785d8f81ec09d168945c7654344edb997c

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

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

begin
  require 'rdoc/task'

  desc "Generate documentation for the plugin."
  Rake::RDocTask.new do |rdoc|
    rdoc.rdoc_dir = "rdoc"
    rdoc.title = "RedmineExtensions #{RedmineExtensions::VERSION}"
    rdoc.rdoc_files.include("README*")
    rdoc.rdoc_files.include("lib/**/*.rb")
  end
rescue LoadError
  puts 'RDocTask is not supported for this platform'
end

APP_RAKEFILE = File.expand_path("../spec/redmine/Rakefile", __FILE__)
load 'rails/tasks/engine.rake'

# load 'rails/tasks/statistics.rake'

Bundler::GemHelper.install_tasks

Dir[File.join(File.dirname(__FILE__), 'tasks/**/*.rake')].each {|f| load f }

require 'rspec/core'
require 'rspec/core/rake_task'

desc "Run all specs in spec directory (excluding plugin specs)"

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

task :default => :spec

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redmine_extensions-0.0.10 Rakefile
redmine_extensions-0.0.8 Rakefile