-
Notifications
You must be signed in to change notification settings - Fork 39
/
Rakefile
32 lines (26 loc) · 858 Bytes
/
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
require 'rubygems'
require 'rake'
require "rspec"
require "rspec/core/rake_task"
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "voteable_mongoid"
gem.summary = %Q{Add Up / Down Voting for Mongoid}
gem.description = %Q{Add Up / Down Voting for Mongoid}
gem.email = "[email protected]"
gem.homepage = "http://github.com/vinova/voteable_mongoid"
gem.authors = ["Alex Nguyen"]
gem.files = Dir.glob("lib/**/*")
gem.test_files = []
gem.add_dependency 'mongoid', '~> 2.0.0.rc'
gem.add_development_dependency 'rspec'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
Rspec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = "spec/**/*_spec.rb"
end
task :default => ["spec"]