Sha256: 516d6e28f0c89a3348c7c650c2f8262a3db6144214802f39867d5948bfc89961

Contents?: true

Size: 1.82 KB

Versions: 4

Compression:

Stored size: 1.82 KB

Contents

require 'rubygems/package_task'

GEM_SPEC = Gem::Specification.new do |s|
  # basic information
  s.name        = "do_sqlite3"
  s.version     = DataObjects::Sqlite3::VERSION

  # description and details
  s.summary     = 'DataObjects Sqlite3 Driver'
  s.description = "Implements the DataObjects API for Sqlite3"

  # dependencies
  s.add_dependency "addressable", "~>2.0.0"
  s.add_dependency "extlib", "~>0.9.12"
  s.add_dependency "data_objects", DataObjects::Sqlite3::VERSION

  if JRUBY
    s.add_dependency "jdbc-sqlite3", ">=3.5.8"
    s.add_dependency "do_jdbc", DataObjects::Sqlite3::VERSION
    s.platform = "java"
    # components, files and paths
    s.files = FileList["lib/**/*.rb", "spec/**/*.rb", "tasks/**/*.rake",
                        "LICENSE", "Rakefile", "*.{rdoc,txt,yml}", "lib/*.jar"]
  else
    s.platform    = Gem::Platform::RUBY
    s.extensions << 'ext/do_sqlite3_ext/extconf.rb'
    # components, files and paths
    s.files = FileList["lib/**/*.rb", "spec/**/*.rb", "tasks/**/*.rake", "ext/**/*.{rb,c}",
                        "LICENSE", "Rakefile", "*.{rdoc,txt,yml}"]
  end

  # development dependencies
  s.add_development_dependency 'rspec', '~>1.2.0'


  s.require_path = 'lib'

  # documentation
  s.has_rdoc = false

  # project information
  s.homepage          = 'http://github.com/datamapper/do'
  s.rubyforge_project = 'dorb'

  # author and contributors
  s.author      = 'Dirkjan Bussink'
  s.email       = 'd.bussink@gmail.com'
end

gem_package = Gem::PackageTask.new(GEM_SPEC) do |pkg|
  pkg.need_tar = false
  pkg.need_zip = false
end

file "#{GEM_SPEC.name}.gemspec" => ['Rakefile', 'tasks/gem.rake'] do |t|
  puts "Generating #{t.name}"
  File.open(t.name, 'w') { |f| f.puts GEM_SPEC.to_yaml }
end

desc "Generate or update the standalone gemspec file for the project"
task :gemspec => ["#{GEM_SPEC.name}.gemspec"]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
do_sqlite3-0.9.12-x86-mswin32-60 tasks/gem.rake
do_sqlite3-0.9.12-x86-mingw32 tasks/gem.rake
do_sqlite3-0.9.12-java tasks/gem.rake
do_sqlite3-0.9.12 tasks/gem.rake