sam / do fork watch download tarball
public
Rubygem
Description: DataObjects
Homepage: http://rubyforge.org/projects/dorb
Clone URL: git://github.com/sam/do.git
cypher (author)
Tue May 13 13:07:19 -0700 2008
commit  2a680a4ec7a7e98decf30553025ae2eb2f4da3d3
tree    6a5ab64ded743383646f90602eec5c549ef42510
parent  b47699ff488ec742cdf74d582f361afd9ac93ed5
do / data_objects / Rakefile
100644 41 lines (33 sloc) 1.299 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
41
require 'rubygems'
require 'rake/clean'
require 'rake/gempackagetask'
require 'spec/rake/spectask'
require 'pathname'
 
spec = Gem::Specification.new do |s|
  s.name = 'data_objects'
  s.version = '0.9.0'
  s.platform = Gem::Platform::RUBY
  s.has_rdoc = true
  s.extra_rdoc_files = %w[ README LICENSE TODO ]
  s.summary = 'The Core DataObjects class'
  s.description = s.summary
  s.author = 'Yehuda Katz'
  s.email = 'wycats@gmail.com'
  s.homepage = 'http://rubyforge.org/projects/dorb'
  s.require_path = 'lib'
  s.files = FileList[ 'lib/**/*', 'spec/**/*.rb', 'Rakefile', *s.extra_rdoc_files ]
end
 
spec.add_dependency 'addressable', ">= 1.0.3"
 
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}, :verbose => false
end
 
desc 'Run specifications'
Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
  t.spec_files = Pathname.glob(Pathname.new(__FILE__).dirname + 'spec/**/*_spec.rb')
end