public
Description: ActiveRecord macro that helps encrypt passwords and generate api tokens before_save.
Homepage:
Clone URL: git://github.com/matthewtodd/has_digest.git
commit  2a41691cd06bd4a8621e3054e6973e7b688f020f
tree    9f207ccd1173460463a74bd27c859ece68e6046d
parent  c9793a8134933b4ecd328ebf0228e39db6d2ee1a
has_digest / Rakefile
100644 44 lines (38 sloc) 1.447 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
 
desc 'Default: run unit tests.'
task :default => :test
 
spec = Gem::Specification.new do |spec|
  spec.name = 'has_digest'
  spec.version = '0.1.2'
  spec.summary = 'ActiveRecord macro that helps encrypt passwords and generate api tokens before_save.'
  spec.files = FileList['README.rdoc', 'MIT-LICENSE', 'init.rb', 'lib/**/*.rb', 'shoulda_macros/**/*.rb', 'test/**/*.rb'].to_a
  spec.has_rdoc = true
  spec.rdoc_options = %W[--main README.rdoc --title #{spec.name}-#{spec.version} --inline-source --line-numbers]
  spec.extra_rdoc_files = FileList['README.rdoc', 'shoulda_macros/**/*.rb'].to_a
  spec.author = 'Matthew Todd'
  spec.email = 'matthew.todd@gmail.com'
end
 
desc 'Generate a gemspec file'
task :gemspec do
  File.open("#{spec.name}.gemspec", 'w') do |f|
    f.write spec.to_ruby
  end
end
 
desc 'Test the has_digest plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end
 
desc 'Generate documentation for the has_digest plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'HasDigest'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
  rdoc.rdoc_files.include('shoulda_macros/**/*.rb')
end