Sha256: 5099690dcbca57d8b7af8bde79a218c4cdfb079dd22e0467ceaeaac14ed1140d

Contents?: true

Size: 1.55 KB

Versions: 3

Compression:

Stored size: 1.55 KB

Contents

require 'rubygems'
require 'spec/rake/spectask'
require 'pathname'

ROOT = Pathname(__FILE__).dirname.expand_path

require "lib/do_sqlite3/version"

JRUBY   = (RUBY_PLATFORM =~ /java/) rescue nil
WINDOWS = (RUBY_PLATFORM =~ /mswin|mingw|cygwin/) rescue nil
          # don't use SUDO with JRuby, for the moment, although this behaviour
          # is not entirely correct.
SUDO    = (WINDOWS || JRUBY) ? '' : ('sudo' unless ENV['SUDOLESS'])

AUTHOR = "Bernerd Schaefer"
EMAIL  = "bj.schaefer@gmail.com"
GEM_NAME = "do_sqlite3"
GEM_VERSION = DataObjects::Sqlite3::VERSION
GEM_DEPENDENCIES = [["data_objects", GEM_VERSION]]
GEM_CLEAN = ['**/*.{o,so,bundle,log,a,gem,dSYM,obj,pdb,lib,def,exp,DS_Store}', 'ext/Makefile']
GEM_EXTRAS = { :extensions => %w[ ext/extconf.rb ], :has_rdoc => false }

PROJECT_NAME = "dorb"
PROJECT_URL  = "http://rubyforge.org/projects/dorb"
PROJECT_DESCRIPTION = PROJECT_SUMMARY = "A DataObject.rb driver for MySQL"

DRIVER = true

require ROOT.parent + 'tasks/hoe'

# Installation

task :install => [ :package ] do
  sh %{#{SUDO} gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources}, :verbose => false
end

desc "Uninstall #{GEM_NAME} #{GEM_VERSION} (default ruby)"
task :uninstall => [ :clobber ] do
  sh "#{SUDO} gem uninstall #{GEM_NAME} -v#{GEM_VERSION} -I -x", :verbose => false
end

desc 'Run specifications'
Spec::Rake::SpecTask.new(:spec => [ :compile ]) 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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
do_sqlite3-0.9.3 Rakefile
do_sqlite3-0.9.4 Rakefile
do_sqlite3-0.9.5 Rakefile