Sha256: 18d1702f4aaf4a33bfba02f920508ba8d170463bb602b0e4cc16ede9525336ff

Contents?: true

Size: 1.98 KB

Versions: 6

Compression:

Stored size: 1.98 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.add_dependency "authlogic"
    gem.add_dependency "bcrypt-ruby"
    gem.add_dependency "muck-engine"
    gem.add_dependency "friendly_id"
    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

6 entries across 6 versions & 1 rubygems

Version Path
muck-users-3.2.12 Rakefile
muck-users-3.2.11 Rakefile
muck-users-3.2.10 Rakefile
muck-users-3.2.9 Rakefile
muck-users-3.2.8 Rakefile
muck-users-3.2.7 Rakefile