Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 50 lines (40 sloc) 1.778 kB
3b6cd84 @pk Move to Jeweler and Merb conventions.
pk authored
1 require "rubygems"
2 require "rake"
3
4 # Assume a typical dev checkout to fetch the current merb-core version
5 require File.expand_path('../../merb/merb-core/lib/merb-core/version', __FILE__)
6
7 # Load this library's version information
8 require File.expand_path('../lib/merb_sequel/version', __FILE__)
9
10 begin
11 require 'jeweler'
12
13 Jeweler::Tasks.new do |gemspec|
14 gemspec.version = Merb::Sequel::VERSION
15 gemspec.name = "merb_sequel"
16 gemspec.description = "Merb plugin that provides support for Sequel"
17 gemspec.summary = "Merb plugin that provides support for Sequel"
18 gemspec.authors = [ "Wayne E. Seguin", "Lance Carlson", "Lori Holden", "Pavel Kunc" ]
19 gemspec.email = "wayneeseguin@gmail.com, lancecarlson@gmail.com, email@loriholden.com, pavel.kunc@gmail.com"
20 gemspec.homepage = "http://github.com/merb/merb_sequel"
21 gemspec.files = %w(CHANGELOG LICENSE Rakefile README.rdoc TODO Generators) + Dir['{lib,spec}/**/*']
22 # Runtime dependencies
23 gemspec.add_dependency "merb-core", ">= 0.9.9"
24 gemspec.add_dependency "sequel", ">= 2.7.0"
25 # Development dependencies
26 gemspec.add_development_dependency "rspec", ">= 1.2.9"
27 end
b5cfae3 @pk Separate merb_sequel from merb-plugins.
pk authored
28
3b6cd84 @pk Move to Jeweler and Merb conventions.
pk authored
29 Jeweler::GemcutterTasks.new
b5cfae3 @pk Separate merb_sequel from merb-plugins.
pk authored
30
3b6cd84 @pk Move to Jeweler and Merb conventions.
pk authored
31 rescue LoadError
32 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
b5cfae3 @pk Separate merb_sequel from merb-plugins.
pk authored
33 end
34
3b6cd84 @pk Move to Jeweler and Merb conventions.
pk authored
35 require 'spec/rake/spectask'
36 Spec::Rake::SpecTask.new(:spec) do |spec|
37 spec.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
38 spec.libs << 'lib' << 'spec'
39 spec.spec_files = FileList['spec/**/*_spec.rb']
b5cfae3 @pk Separate merb_sequel from merb-plugins.
pk authored
40 end
41
3b6cd84 @pk Move to Jeweler and Merb conventions.
pk authored
42 Spec::Rake::SpecTask.new(:rcov) do |spec|
43 spec.libs << 'lib' << 'spec'
44 spec.pattern = 'spec/**/*_spec.rb'
45 spec.rcov = true
b5cfae3 @pk Separate merb_sequel from merb-plugins.
pk authored
46 end
47
48 desc 'Default: run spec examples'
49 task :default => 'spec'
Something went wrong with that request. Please try again.