-
Notifications
You must be signed in to change notification settings - Fork 17
/
Rakefile
31 lines (27 loc) · 1.03 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
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
require File.join(File.dirname(__FILE__), 'plugit/descriptor')
require 'rubygems'
require 'spec/rake/spectask'
task :default => :spec
desc "Run all specs"
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts = ['--options', 'spec/spec.opts']
end
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = 'dataset'
s.summary = 'A simple API for creating and finding sets of data in your database, built on ActiveRecord.'
s.email = '[email protected]'
s.files = FileList["[A-Z]*", "{lib,tasks}/**/*", "plugit/descriptor.rb"].exclude("tmp")
s.require_paths = ["lib", "tasks"]
s.add_dependency('activesupport', '>= 2.3.0')
s.add_dependency('activerecord', '>= 2.3.0')
s.homepage = "http://github.com/aiwilliams/dataset"
s.description = s.summary
s.authors = ['Adam Williams']
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end