forked from whoahbot/dm-redis-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
48 lines (42 loc) · 1.38 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
begin
# Try to require the preresolved locked set of gems.
require File.expand_path('../.bundle/environment', __FILE__)
rescue LoadError
# Fall back on doing an unlocked resolve at runtime.
require "rubygems"
require "bundler"
Bundler.setup
end
require 'spec/rake/spectask'
GEM = 'dm-redis-adapter'
GEM_NAME = 'dm-redis-adapter'
AUTHORS = ['Dan Herrera']
EMAIL = "[email protected]"
HOMEPAGE = "http://github.com/whoahbot/dm-redis-adapter"
SUMMARY = "DataMapper adapter for the Redis key-value database"
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = GEM
gemspec.summary = SUMMARY
gemspec.email = EMAIL
gemspec.homepage = HOMEPAGE
gemspec.description = SUMMARY
gemspec.authors = AUTHORS
gemspec.add_dependency "dm-core", ">= 1.2.0"
gemspec.add_dependency "dm-types", ">= 1.2.0"
gemspec.add_dependency "hiredis", "~> 0.3.0"
gemspec.add_dependency "redis", "~> 2.2"
gemspec.files = %w(MIT-LICENSE README.textile Rakefile) + Dir.glob("{lib,spec}/**/*")
gemspec.has_rdoc = false
gemspec.extra_rdoc_files = ["MIT-LICENSE"]
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
task :default => :spec
desc "Run specs"
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts = %w(-fs --color)
end