Sha256: 7f73f7a5d425801c2dab51fc4931105ac35e721107ed8082f14859955ff57e7c

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

require 'rake'
require 'spec/rake/spectask'
require 'rake/rdoctask'
require 'jeweler'

desc 'Default: run unit tests.'
task :default => :spec

desc 'Generate documentation for the rails_best_practices plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'rails_best_practices'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

desc "Run all specs in spec directory"
Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_files = FileList['spec/**/*_spec.rb']
end

Jeweler::Tasks.new do |gemspec|
  gemspec.name = "rails_best_practices"
  gemspec.summary = "check rails files according to ihower's presentation 'rails best practices'"
  gemspec.description = "check rails files according to ihower's presentation 'rails best practices'"
  gemspec.email = "flyerhzm@gmail.com"
  gemspec.homepage = "http://github.com/flyerhzm/rails_best_practices"
  gemspec.authors = ["Richard Huang"]
  gemspec.add_dependency 'ruby_parser', '>= 2.0.4'
  gemspec.add_dependency 'ruby2ruby', '>= 1.2.4'
end
Jeweler::GemcutterTasks.new

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_best_practices-0.3.23 Rakefile
rails_best_practices-0.3.22 Rakefile
rails_best_practices-0.3.21 Rakefile
rails_best_practices-0.3.20 Rakefile