forked from timcowlishaw/acts_as_money
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
37 lines (33 loc) · 1.08 KB
/
Rakefile
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
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
spec = Gem::Specification.new do |s|
s.name= "acts_as_money"
s.version= "0.2.4"
s.summary= "A fairly trivial plugin allowing easy serialisation of Money values (from the money gem) as attributes on activerecord objects"
s.author = "Tim Cowlishaw"
s.email = "tim@timcowlishaw.co.uk"
s.homepage = "http://github.com/timcowlishaw/acts_as_money"
s.has_rdoc = false
s.extra_rdoc_files = %w(README)
s.rdoc_options = %w(--main README)
s.files = %w(README) + Dir.glob("{test,tasks,lib/**/*}")
s.require_paths = ["lib"]
s.add_dependency("money")
s.add_dependency("activerecord")
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
File.open(file, "w") {|f| f << spec.to_ruby}
end
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the money plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end