Sha256: 8d0b27b3b9ded534362e9ae24de1c9d63e22cb4e1355bea7288fcc23ffd83405

Contents?: true

Size: 1.84 KB

Versions: 13

Compression:

Stored size: 1.84 KB

Contents

require 'rubygems'
require 'bundler'
require 'rspec/core/rake_task'

desc 'Default: run specs.'
task :default => :spec
RSpec::Core::RakeTask.new(:spec) do |t|
  t.rspec_opts = ["--color", "-c", "-f progress", "-r test/spec/spec_helper.rb"]
  t.pattern = 'test/spec/**/*_spec.rb'  
end

desc 'Translate this gem'
task :translate do
  file = File.join(File.dirname(__FILE__), 'config', 'locales', 'en.yml')
  system("babelphish -o -y #{file}")
  path = File.join(File.dirname(__FILE__), 'app', 'views', 'user_mailer')
  system("babelphish -o -h #{path} -l en")
end

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "muck-users"
    gem.summary = "Easy to use user engine for Rails"
    gem.email = "justin@tatemae.com"
    gem.homepage = "http://github.com/jbasdf/muck_users"
    gem.description = "Easily add user signup, login and other features to your application"
    gem.authors = ["Justin Ball", "Joel Duffin"]
    gem.files.exclude 'test/**/**'
  end
  Jeweler::RubygemsDotOrgTasks.new
rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |t|
    t.libs << 'test/lib'
    t.pattern = 'test/spec/**/*_spec.rb'
    t.verbose = true
    t.output_dir = 'coverage'
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  end
end

require 'rake/rdoctask'
desc 'Generate documentation for the muck-users gem.'
Rake::RDocTask.new do |rdoc|
  if File.exist?('VERSION.yml')
    config = YAML.load(File.read('VERSION.yml'))
    version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
  else
    version = ""
  end
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "muck-users #{version}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
muck-users-3.2.25 Rakefile
muck-users-3.2.24 Rakefile
muck-users-3.2.23 Rakefile
muck-users-3.2.22 Rakefile
muck-users-3.2.21 Rakefile
muck-users-3.2.20 Rakefile
muck-users-3.2.19 Rakefile
muck-users-3.2.18 Rakefile
muck-users-3.2.17 Rakefile
muck-users-3.2.16 Rakefile
muck-users-3.2.15 Rakefile
muck-users-3.2.14 Rakefile
muck-users-3.2.13 Rakefile