Sha256: cc14c05ee4a8c3beb10f94867a090b4bff34398959c3035593d516db98024d68

Contents?: true

Size: 987 Bytes

Versions: 16

Compression:

Stored size: 987 Bytes

Contents

require 'pathname'
require 'bundler'
Bundler::GemHelper.install_tasks

require 'rake'
require 'rake/clean'

ROOT = Pathname(__FILE__).dirname.expand_path

require ROOT + 'lib/do_mysql/version'

JRUBY    = RUBY_PLATFORM =~ /java/
IRONRUBY = defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ironruby'
WINDOWS  = Gem.win_platform? || (JRUBY && ENV_JAVA['os.name'] =~ /windows/i)
SUDO     = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])
BINARY_VERSION = '5.1.56'

CLEAN.include(%w[ {tmp,pkg}/ **/*.{o,so,bundle,jar,log,a,gem,dSYM,obj,pdb,exp,DS_Store,rbc,db} ext/do_mysql/Makefile ext-java/target ])


if JRUBY
  Rake::Task['build'].clear_actions   if Rake::Task.task_defined?('build')
  Rake::Task['install'].clear_actions if Rake::Task.task_defined?('install')
  task :build => [ :java, :gem ]
  task :install do
    sh "#{Config::CONFIG['RUBY_INSTALL_NAME']} -S gem install pkg/do_mysql-#{DataObjects::Mysql::VERSION}-java.gem"
  end
end

FileList['tasks/**/*.rake'].each { |task| import task }

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
do_mysql-0.10.5 Rakefile
do_mysql-0.10.5-x86-mswin32-60 Rakefile
do_mysql-0.10.5-x86-mingw32 Rakefile
do_mysql-0.10.5-java Rakefile
do_mysql-0.10.4 Rakefile
do_mysql-0.10.4-x86-mswin32-60 Rakefile
do_mysql-0.10.4-x86-mingw32 Rakefile
do_mysql-0.10.4-java Rakefile
do_mysql-0.10.4.rc2 Rakefile
do_mysql-0.10.4.rc2-x86-mswin32-60 Rakefile
do_mysql-0.10.4.rc2-x86-mingw32 Rakefile
do_mysql-0.10.4.rc2-java Rakefile
do_mysql-0.10.4.rc1 Rakefile
do_mysql-0.10.4.rc1-x86-mswin32-60 Rakefile
do_mysql-0.10.4.rc1-x86-mingw32 Rakefile
do_mysql-0.10.4.rc1-java Rakefile