Sha256: b6b572c466d5f6eb2c44a4c49678d7505bc15f4410c253272956b91fa851a3a0
Contents?: true
Size: 1.52 KB
Versions: 6
Compression:
Stored size: 1.52 KB
Contents
begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end require 'rdoc/task' RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'AlchemyDevise' rdoc.options << '--line-numbers' rdoc.rdoc_files.include('README.md') rdoc.rdoc_files.include('lib/**/*.rb') rdoc.rdoc_files.include('app/**/*.rb') end APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__) load 'rails/tasks/engine.rake' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task :default => ['alchemy:spec:prepare', :spec] Bundler::GemHelper.install_tasks namespace :alchemy do namespace :spec do desc "Prepares database for testing Alchemy" task :prepare do system <<-BASH cd spec/dummy export RAILS_ENV=test bin/rake db:create db:environment:set db:migrate bin/rails g alchemy:devise:install --force cd - BASH end end namespace :changelog do desc "Update changelog" task :update do original_file = './CHANGELOG.md' new_file = original_file + '.new' backup = original_file + '.old' changes = `git rev-list #{ENV['PREVIOUS_VERSION']}...master | bundle exec github_fast_changelog AlchemyCMS/alchemy-devise` File.open(new_file, 'w') do |fo| fo.puts changes File.foreach(original_file) do |li| fo.puts li end fo.puts "" end File.rename(original_file, backup) File.rename(new_file, original_file) File.delete(backup) end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
alchemy-devise-4.5.0 | Rakefile |
alchemy-devise-4.4.0 | Rakefile |
alchemy-devise-4.3.1 | Rakefile |
alchemy-devise-4.3.0 | Rakefile |
alchemy-devise-4.2.1 | Rakefile |
alchemy-devise-4.2.0 | Rakefile |