forked from danmayer/dm-adapter-simpledb
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathRakefile
88 lines (78 loc) · 2.81 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
require 'spec'
require 'spec/rake/spectask'
require 'pathname'
ROOT = Pathname(__FILE__).dirname.expand_path
task :default => [ 'spec:unit' ]
namespace :spec do
desc 'Run unit-level specifications'
Spec::Rake::SpecTask.new(:unit) do |t|
if File.exists?('spec/spec.opts')
t.spec_opts << '--options' << 'spec/spec.opts'
end
t.spec_files = Pathname.glob((ROOT + 'spec/unit/**/*_spec.rb').to_s)
begin
t.rcov = ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true
t.rcov_opts << '--exclude' << 'spec'
t.rcov_opts << '--text-summary'
t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
rescue Exception
# rcov not installed
end
end
desc 'Run integration-level specifications'
Spec::Rake::SpecTask.new(:integration) do |t|
if File.exists?('spec/spec.opts')
t.spec_opts << '--options' << 'spec/spec.opts'
end
t.spec_files = Pathname.glob((ROOT + 'spec/integration/**/*_spec.rb').to_s)
begin
t.rcov = ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true
t.rcov_opts << '--exclude' << 'spec'
t.rcov_opts << '--text-summary'
t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse'
rescue Exception
# rcov not installed
end
end
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "dm-adapter-simpledb"
gem.summary = "DataMapper adapter for Amazon SimpleDB"
gem.email = "[email protected]"
gem.homepage = "http://github.com/devver/dm-adapter-simpledb"
gem.description = <<END
A DataMapper adapter for Amazon's SimpleDB service.
Features:
* Full set of CRUD operations
* Supports all DataMapper query predicates.
* Can translate many queries into efficient native SELECT operations.
* Migrations
* DataMapper identity map support for record caching
* Lazy-loaded attributes
* DataMapper Serial property support via UUIDs.
* Array properties
* Basic aggregation support (Model.count("..."))
* String "chunking" permits attributes to exceed the 1024-byte limit
Note: as of version 1.0.0, this gem supports supports the DataMapper 0.10.*
series and breaks backwards compatibility with DataMapper 0.9.*.
END
gem.authors = [
"Jeremy Boles",
"Edward Ocampo-Gooding",
"Dan Mayer",
"Thomas Olausson",
"Avdi Grimm"
]
gem.add_dependency('dm-core', '~> 0.10.0')
gem.add_dependency('dm-aggregates', '~> 0.10.0')
gem.add_dependency('dm-migrations', '~> 0.10.0')
gem.add_dependency('dm-types', '~> 0.10.0')
gem.add_dependency('uuidtools', '~> 2.0')
gem.add_dependency('sdbtools', '~> 0.5')
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler, or one of it's dependencies, is not available."
end