sam / do fork watch download tarball
public
Rubygem
Description: DataObjects
Homepage: http://rubyforge.org/projects/dorb
Clone URL: git://github.com/sam/do.git
Search Repo:
cypher (author)
Tue May 13 13:07:19 -0700 2008
commit  2a680a4ec7a7e98decf30553025ae2eb2f4da3d3
tree    6a5ab64ded743383646f90602eec5c549ef42510
parent  b47699ff488ec742cdf74d582f361afd9ac93ed5
do / do_jdbc / Rakefile
100644 40 lines (33 sloc) 1.238 kb
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
33
34
35
36
37
38
39
40
require 'rubygems'
require 'rake/gempackagetask'
require 'spec/rake/spectask'
 
spec = Gem::Specification.new do |s|
  s.name = "do_jdbc"
  s.version = "0.9.0"
  s.platform = Gem::Platform::RUBY
  s.has_rdoc = true
  s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
  s.summary = "A DataObject.rb driver for JDBC"
  s.description = s.summary
  s.author = "Scott Bauer"
  s.email = "bauer.mail@gmail.com"
  s.homepage = "http://dataobjects.devjavu.com"
  s.add_dependency('data_objects', '>= 0.9.0')
  s.require_path = 'lib'
  s.autorequire = "do_jdbc"
  s.extensions = ["ext/extconf.rb"]
  s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,ext}/**/*").reject {|x| x =~ /\.(o|bundle)$/ }
end
 
Rake::GemPackageTask.new(spec) do |pkg|
  pkg.gem_spec = spec
end
 
windows = (PLATFORM =~ /win32|cygwin/) rescue nil
 
SUDO = windows ? "" : "sudo"
 
task :install => [:package] do
  sh %{#{SUDO unless ENV['SUDOLESS']} gem install --local pkg/#{spec.name}-#{spec.version} --no-update-sources}
end
 
desc "Run all specs in spec directory (excluding plugin specs)"
Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_opts = ['--options', "spec/spec.opts"] if File.exists?("spec/spec.opts")
  t.spec_files = FileList['spec/*_spec.rb']
end