forked from bdurand/json_record
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
47 lines (41 loc) · 1.41 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
38
39
40
41
42
43
44
45
46
47
require 'rubygems'
require 'rake'
require 'rdoc/task'
desc 'Default: run unit tests.'
task :default => :test
begin
require 'rspec'
require 'rspec/core/rake_task'
desc 'Run the unit tests'
RSpec::Core::RakeTask.new(:test)
rescue LoadError
task :test do
STDERR.puts "You must have rspec 2.0 installed to run the tests"
end
end
desc 'Generate rdoc documentation'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.options << '--title' << 'JSON Record' << '--line-numbers' << '--inline-source' << '--main' << 'README.rdoc'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "json_record"
gem.summary = %Q{ActiveRecord support for mapping complex documents in a single RDBMS row via JSON serialization.}
gem.email = "brian@embellishedvisions.com"
gem.homepage = "http://github.com/bdurand/json_record"
gem.authors = ["Brian Durand"]
gem.files = FileList["lib/**/*", "spec/**/*", "README.rdoc", "Rakefile", "MIT_LICENSE"].to_a
gem.has_rdoc = true
gem.extra_rdoc_files = ["README.rdoc", "MIT_LICENSE"]
gem.rdoc_options = ["--charset=UTF-8", "--main", "README.rdoc"]
gem.add_dependency('activerecord', '>= 3.0.0')
gem.add_development_dependency('rspec', '>=2.0.0')
gem.add_development_dependency('jeweler')
end
Jeweler::GemcutterTasks.new
rescue LoadError
end