Skip to content
Newer
Older
100644 49 lines (41 sloc) 1.31 KB
f91a892 Add one line in README
Joseph HALTER authored
1 require "rubygems"
2 require "rake"
d6248b5 @JonathanTron Initial commit to rspec_sequel_matchers.
JonathanTron authored
3
4 begin
f91a892 Add one line in README
Joseph HALTER authored
5 require "jeweler"
d6248b5 @JonathanTron Initial commit to rspec_sequel_matchers.
JonathanTron authored
6 Jeweler::Tasks.new do |gem|
7 gem.name = "rspec_sequel_matchers"
8 gem.summary = %Q{TODO}
5f67c31 @JonathanTron Change author email and homepage
JonathanTron authored
9 gem.email = "team@openhood.com"
10 gem.homepage = "http://github.com/openhood/rspec_sequel_matchers"
7d6db54 @JonathanTron Add Joseph as author
JonathanTron authored
11 gem.authors = ["Jonathan Tron", "Joseph Halter"]
5f67c31 @JonathanTron Change author email and homepage
JonathanTron authored
12 gem.add_dependency "rspec", "~> 1.2.3"
13 gem.add_dependency "sequel", ">= 3.1.0"
d6248b5 @JonathanTron Initial commit to rspec_sequel_matchers.
JonathanTron authored
14
15 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16 end
17 rescue LoadError
18 puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
19 end
20
f91a892 Add one line in README
Joseph HALTER authored
21 require "spec/rake/spectask"
f1da83e @JonathanTron Finish switch to rspec...
JonathanTron authored
22 Spec::Rake::SpecTask.new(:spec) do |spec|
f91a892 Add one line in README
Joseph HALTER authored
23 spec.libs << "lib" << "spec"
24 spec.spec_files = FileList["spec/**/*_spec.rb"]
d6248b5 @JonathanTron Initial commit to rspec_sequel_matchers.
JonathanTron authored
25 end
26
f1da83e @JonathanTron Finish switch to rspec...
JonathanTron authored
27 Spec::Rake::SpecTask.new(:rcov) do |spec|
f91a892 Add one line in README
Joseph HALTER authored
28 spec.libs << "lib" << "spec"
29 spec.pattern = "spec/**/*_spec.rb"
f1da83e @JonathanTron Finish switch to rspec...
JonathanTron authored
30 spec.rcov = true
d6248b5 @JonathanTron Initial commit to rspec_sequel_matchers.
JonathanTron authored
31 end
32
f1da83e @JonathanTron Finish switch to rspec...
JonathanTron authored
33 task :default => :spec
d6248b5 @JonathanTron Initial commit to rspec_sequel_matchers.
JonathanTron authored
34
f91a892 Add one line in README
Joseph HALTER authored
35 require "rake/rdoctask"
d6248b5 @JonathanTron Initial commit to rspec_sequel_matchers.
JonathanTron authored
36 Rake::RDocTask.new do |rdoc|
f91a892 Add one line in README
Joseph HALTER authored
37 if File.exist?("VERSION.yml")
38 config = YAML.load(File.read("VERSION.yml"))
d6248b5 @JonathanTron Initial commit to rspec_sequel_matchers.
JonathanTron authored
39 version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
40 else
41 version = ""
42 end
43
f91a892 Add one line in README
Joseph HALTER authored
44 rdoc.rdoc_dir = "rdoc"
f1da83e @JonathanTron Finish switch to rspec...
JonathanTron authored
45 rdoc.title = "test #{version}"
f91a892 Add one line in README
Joseph HALTER authored
46 rdoc.rdoc_files.include("README*")
47 rdoc.rdoc_files.include("lib/**/*.rb")
d6248b5 @JonathanTron Initial commit to rspec_sequel_matchers.
JonathanTron authored
48 end
Something went wrong with that request. Please try again.