forked from peritor/simply_stored
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
41 lines (36 loc) · 1.16 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
require 'rake'
require 'rake/testtask'
require File.dirname(__FILE__) + '/lib/simply_stored/rake'
task "default" => "test"
desc "Unit tests"
Rake::TestTask.new(:test) do |t|
t.libs << 'test/'
t.pattern = 'test/{couchdb,.}/*_test.rb'
t.verbose = true
end
def name
'simply_stored'
end
def source_version
line = File.read("lib/#{name.gsub(/-/, "/")}.rb")[/^\s*VERSION\s*=\s*.*/]
line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1]
end
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "simply_stored"
s.summary = %Q{Convenience layer for CouchDB}
s.email = "[email protected]"
s.homepage = "http://github.com/peritor/simply_stored"
s.description = "Convenience layer for CouchDB on top of CouchPotato."
s.authors = ["Mathias Meyer, Jonathan Weiss"]
s.files = FileList["[A-Z]*.*", "{lib}/**/*"]
s.add_dependency('rest-client', '>= 1.4.2')
s.add_dependency('couch_potato', '>= 0.2.15')
s.add_dependency('activesupport')
s.version = source_version
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end