Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 55 lines (47 sloc) 1.569 kB
d939123 @pusewicz Improve gem generation. Bump version
authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "rails_sequel"
8 gem.summary = "Sequel plugin for Ruby on Rails"
9 gem.description = "rails_sequel allows you to quickly use Sequel Toolkit as your ORM in Ruby on Rails"
10 gem.email = "piotr@layer22.com"
11 gem.homepage = "http://github.com/pusewicz/rails_sequel"
12 gem.authors = ["Piotr Usewicz"]
13
14 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
15 end
17fe024 @pusewicz Added gemcutter support
authored
16 Jeweler::GemcutterTasks.new
d939123 @pusewicz Improve gem generation. Bump version
authored
17 rescue LoadError
18 puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
19 end
20
987cfc7 @pusewicz Added specs.
authored
21 require 'spec/rake/spectask'
22 Spec::Rake::SpecTask.new(:spec) do |spec|
23 spec.libs << 'lib' << 'spec'
24 spec.spec_files = FileList['spec/**/*_spec.rb']
25 spec.spec_opts = %w("--color")
26 end
17fe024 @pusewicz Added gemcutter support
authored
27
987cfc7 @pusewicz Added specs.
authored
28 Spec::Rake::SpecTask.new(:rcov) do |spec|
29 spec.libs << 'lib' << 'spec'
30 spec.pattern = 'spec/**/*_spec.rb'
31 spec.rcov = true
32 spec.rcov_opts = if PLATFORM =~ /darwin/
33 ['--exclude "gems/*,spec_helper.rb"']
34 else
35 ['--exclude "rubygems/*,spec_helper.rb"']
36 end
37 end
d939123 @pusewicz Improve gem generation. Bump version
authored
38
987cfc7 @pusewicz Added specs.
authored
39 task :default => :spec
d939123 @pusewicz Improve gem generation. Bump version
authored
40
41 require 'rake/rdoctask'
42 Rake::RDocTask.new do |rdoc|
43 if File.exist?('VERSION.yml')
44 config = YAML.load(File.read('VERSION.yml'))
45 version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
46 else
47 version = ""
48 end
49
50 rdoc.rdoc_dir = 'rdoc'
51 rdoc.title = "rails_sequel #{version}"
52 rdoc.rdoc_files.include('README*')
53 rdoc.rdoc_files.include('lib/**/*.rb')
54 end
Something went wrong with that request. Please try again.