sam / do fork watch download tarball
public
Rubygem
Description: DataObjects
Homepage: http://rubyforge.org/projects/dorb
Clone URL: git://github.com/sam/do.git
myabc (author)
Fri May 16 02:26:17 -0700 2008
commit  a21cbface5dacc00efee10ede625bc0b487e3fc2
tree    1da183406ac806b9b026523df078c2f8cdc81457
parent  636d7dee87a91fa89c75b761afdd7b33eacaa626
do / do_jdbc / Rakefile
100644 38 lines (32 sloc) 1.304 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
require 'rubygems'
require 'rake/gempackagetask'
require 'spec/rake/spectask'
 
WIN32 = (PLATFORM =~ /win32|cygwin/) rescue nil
SUDO = WIN32 ? '' : ('sudo' unless ENV['SUDOLESS'])
 
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 = %w[ README, LICENSE, TODO ]
  s.summary = 'A DataObjects.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.require_path = 'lib'
# s.extensions = ["ext/extconf.rb"]
  s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs}/**/*").reject {|x| x =~ /\.(o|bundle)$/ }
  s.add_dependency('data_objects', '>= 0.9.0')
end
 
Rake::GemPackageTask.new(spec) do |pkg|
  pkg.gem_spec = spec
end
 
task :install => [:package] do
  sh %{#{SUDO} 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