-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
44 lines (35 loc) · 898 Bytes
/
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
38
39
40
41
42
43
require 'rake'
require 'rspec/core/rake_task'
require 'rake/gempackagetask'
desc 'Default: run specs.'
task :default => :spec
desc 'Test the activerecord_plurals plugin.'
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = ["-fn", "-c"]
t.pattern = 'spec/**/*_spec.rb'
t.verbose = true
end
PKG_FILES = FileList[
'[a-zA-Z]*',
'generators/**/*',
'lib/**/*',
'rails/**/*',
'tasks/**/*',
'test/**/*'
]
spec = Gem::Specification.new do |s|
s.name = "activerecord_plurals"
s.version = "0.0.1"
s.author = "Gur Dotan"
s.email = "[email protected]"
s.platform = Gem::Platform::RUBY
s.summary = "Plural attribute methods: Account.ids, Account.names ..."
s.files = PKG_FILES.to_a
s.require_path = "lib"
s.has_rdoc = false
s.extra_rdoc_files = ["README.md"]
end
desc 'Turn this plugin into a gem.'
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end