Sha256: b08ff082fe99d0853fb7b997908921e2e36d1517282dd0180cb03fa6975cdd2d

Contents?: true

Size: 1.99 KB

Versions: 2

Compression:

Stored size: 1.99 KB

Contents

require 'pathname'
require 'rubygems'
require 'rake'
require 'rake/clean'

ROOT = Pathname(__FILE__).dirname.expand_path

require ROOT + 'lib/do_sqlserver/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'])

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

begin
  gem 'jeweler', '~> 1.4'
  require 'jeweler'

  Jeweler::Tasks.new do |gem|
    gem.name        = 'do_sqlserver'
    gem.version     = DataObjects::SqlServer::VERSION
    gem.summary     = 'DataObjects SQL Server Driver'
    gem.description = 'Implements the DataObjects API for Microsoft SQL Server'
    gem.platform    = 'java'
    gem.files       = FileList['lib/**/*.rb', 'spec/**/*.rb', 'tasks/**/*.rake',
                               'LICENSE', 'Rakefile', '*.{markdown,rdoc,txt,yml}',
                               'lib/*.jar']
    gem.extra_rdoc_files = FileList['README*', 'ChangeLog*', 'INSTALL.markdown',
                                    'FAQS.markdown', 'LICENSE']
    gem.test_files  = FileList['spec/**/*.rb']

    gem.add_dependency 'data_objects',      DataObjects::SqlServer::VERSION
    gem.add_dependency 'do_jdbc',           DataObjects::SqlServer::VERSION
    gem.add_dependency 'do-jdbc_sqlserver', '~>1.2.4'

    gem.add_development_dependency 'bacon',         '~>1.1'
    gem.add_development_dependency 'rake-compiler', '~>0.7'

    gem.has_rdoc    = false

    gem.rubyforge_project = 'dorb'
    gem.authors     = [ 'Alex Coles' ]
    gem.email       = 'alex@alexbcoles.com'
  end

  Rake::Task['build'].clear_actions if Rake::Task.task_defined?('build')
  task :build => [ :java, :gem ]

  Jeweler::GemcutterTasks.new

  FileList['tasks/**/*.rake'].each { |task| import task }
rescue LoadError
  puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
do_sqlserver-0.10.3-java Rakefile
do_sqlserver-0.10.2-java Rakefile