Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 47 lines (39 sloc) 1.431 kb
8b222c1 @netskin-ci use jeweler for gem management
netskin-ci authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = 'sequel_bulk_attributes'
8 gem.authors = ['Corin Langosch']
9 gem.date = Date.today.to_s
10 gem.email = 'info@netskin.com'
11 gem.homepage = 'http://github.com/gucki/sequel_bulk_attributes'
12 gem.summary = 'Easy mass assign ability for many associations for Sequel'
13 gem.description = 'Sequel plugin which add mass assign ability for one_to_many associations for model.'
14 gem.add_development_dependency "rspec", ">= 1.2.9"
15 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16 end
17 Jeweler::GemcutterTasks.new
18 rescue LoadError
19 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
20 end
21
22 require 'spec/rake/spectask'
23 Spec::Rake::SpecTask.new(:spec) do |spec|
24 spec.libs << 'lib' << 'spec'
25 spec.spec_files = FileList['spec/**/*_spec.rb']
26 end
27
28 Spec::Rake::SpecTask.new(:rcov) do |spec|
29 spec.libs << 'lib' << 'spec'
30 spec.pattern = 'spec/**/*_spec.rb'
31 spec.rcov = true
32 end
33
34 task :spec => :check_dependencies
35
36 task :default => :spec
37
38 require 'rake/rdoctask'
39 Rake::RDocTask.new do |rdoc|
40 version = File.exist?('VERSION') ? File.read('VERSION') : ""
41
42 rdoc.rdoc_dir = 'rdoc'
43 rdoc.title = "sequel_bulk_attributes #{version}"
44 rdoc.rdoc_files.include('README*')
45 rdoc.rdoc_files.include('lib/**/*.rb')
46 end
Something went wrong with that request. Please try again.