Sha256: 720885401f665a22be21d8e3a1a73ff36074d6b0138c293f6318bba0d981cb61

Contents?: true

Size: 638 Bytes

Versions: 20

Compression:

Stored size: 638 Bytes

Contents

require 'bundler/setup'

possible_app_dirs = [
  ENV['DUMMY_PATH'],
  File.join(Dir.pwd, 'test/dummy')
]
dir = possible_app_dirs.compact.first

if !File.directory?(dir)
  abort("Directory '#{dir}' does not exists")
end

APP_RAKEFILE = File.expand_path(File.join(dir, 'Rakefile'), __dir__)
load 'rails/tasks/engine.rake'
load 'rails/tasks/statistics.rake'

Bundler::GemHelper.install_tasks

namespace :redmine_extensions do
  task :generate_test_plugin do
    require_relative 'spec/init_rails'
    require RedmineExtensions::Engine.root.join('spec', 'support', 'plugin_generator').to_s
    PluginGenerator.generate_test_plugin!
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
redmine_extensions-0.6.3 Rakefile
redmine_extensions-0.6.2 Rakefile
redmine_extensions-0.6.1 Rakefile
redmine_extensions-0.6.0 Rakefile
redmine_extensions-0.4.5 Rakefile
redmine_extensions-0.5.1 Rakefile
redmine_extensions-0.4.4 Rakefile
redmine_extensions-0.4.3 Rakefile
redmine_extensions-0.4.1 Rakefile
redmine_extensions-0.4.0 Rakefile
redmine_extensions-0.4.0.beta Rakefile
redmine_extensions-0.3.11 Rakefile
redmine_extensions-0.3.10 Rakefile
redmine_extensions-0.3.9 Rakefile
redmine_extensions-0.3.8 Rakefile
redmine_extensions-0.3.7 Rakefile
redmine_extensions-0.3.6 Rakefile
redmine_extensions-0.3.4 Rakefile
redmine_extensions-0.3.3 Rakefile
redmine_extensions-0.3.2 Rakefile