Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (50 sloc) 2.46 KB
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
# Load up the environment instead of just the boot file because we want all of the tasks available.
require(File.join(File.dirname(__FILE__), 'config', 'environment'))
rescue Exception
# Load up the boot file instead because there's something wrong with the environment.
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
extra_rake_tasks = []
# When running Refinery from a gem we lose the rake tasks, so add them back in:
extra_rake_tasks << Dir[File.join(REFINERY_ROOT, %w(vendor plugins * ** tasks ** *.rake))].sort unless REFINERY_ROOT.to_s == Rails.root.to_s
# We also need to load in the rake tasks from gem plugins whether Refinery is a gem or not:
extra_rake_tasks << $refinery_gem_plugin_lib_paths.collect {|path| Dir[File.join(%W(#{path} tasks ** *.rake))].sort} if defined?($refinery_gem_plugin_lib_paths) && !$refinery_gem_plugin_lib_paths.nil?
extra_rake_tasks.flatten.compact.uniq.each {|rake| load rake }
desc 'Removes trailing whitespace'
task :whitespace do
sh %{find . -name '*.*rb' -exec sed -i '' 's/\t/ /g' {} \\; -exec sed -i '' 's/ *$//g' {} \\; }
require 'jeweler' do |s| = %q{refinerycms}
s.description = %q{A beautiful open source Ruby on Rails content manager for small business. Easy to extend, easy to use, lightweight and all wrapped up in a super slick UI.}
s.summary = %q{A beautiful open source Ruby on Rails content manager for small business.} = %q{}
s.homepage = %q{}
s.authors = ["Resolve Digital", "David Jones", "Philip Arndt"]
s.extra_rdoc_files = %w( VERSION)
s.rdoc_options << "--inline-source"
s.has_rdoc = true
namespace :version do
namespace :bump do
desc "Bump the gemspec by a build version."
task :build => [:version_required, :version] do
version =
version.update_to(version.major, version.minor, version.patch, (( || 0).to_i + 1))
$stdout.puts "Updated version: #{version.to_s}"
rescue LoadError
#puts "Jeweler not available. Install it with: sudo gem install jeweler"
Jump to Line
Something went wrong with that request. Please try again.