Sha256: f5e3a2e9c52c1a9206fc68b5c15e9634cb34133e9ad076df370343b4f315f21b

Contents?: true

Size: 1.57 KB

Versions: 2

Compression:

Stored size: 1.57 KB

Contents

MANIFEST = FileList["Manifest.txt", "Rakefile", "README.txt", "LICENSE.txt", "lib/**/*"]

file "Manifest.txt" => :manifest
task :manifest do
  File.open("Manifest.txt", "w") {|f| MANIFEST.each {|n| f << "#{n}\n"} }
end
Rake::Task['manifest'].invoke

require File.dirname(__FILE__) + "/../../lib/arjdbc/version"
$LOAD_PATH << File.dirname(__FILE__) + "/../../drivers/derby/lib"
require "jdbc/derby"

begin
  require 'hoe'
  Hoe.plugin :gemcutter
  Hoe.plugin :rubyforge
  hoe = Hoe.spec("activerecord-jdbcderby-adapter") do |p|
    p.version = ArJdbc::Version::VERSION
    p.rubyforge_name = "jruby-extras"
    p.url = "http://jruby-extras.rubyforge.org/ActiveRecord-JDBC"
    p.author = "Nick Sieger, Ola Bini and JRuby contributors"
    p.email = "nick@nicksieger.com, ola.bini@gmail.com"
    p.summary = "Derby JDBC adapter for JRuby on Rails."
    p.changes = "Updated to Derby version #{Jdbc::Derby::VERSION}."
    p.description = "Install this gem to use Derby with JRuby on Rails."
    driver = 'jdbc-derby'
    version = Jdbc::Derby::VERSION
    compat_version = "~> #{version.split(/\./)[0..1].join('.')}.0"
    puts "#{p.name}: current #{driver} version #{version}, compat #{compat_version}"
    p.extra_deps += [
      ['activerecord-jdbc-adapter', "= #{ArJdbc::Version::VERSION}"],
      [driver, compat_version]]
  end
  task :gemspec do
    File.open("#{hoe.name}.gemspec", "w") {|f| f << hoe.spec.to_ruby }
  end
  task :package => :gemspec
rescue LoadError
  puts "You really need Hoe installed to be able to package this gem"
rescue => e
  puts "ignoring error while loading hoe: #{e.to_s}"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activerecord-jdbcderby-adapter-1.1.3 Rakefile
activerecord-jdbcderby-adapter-1.1.2 Rakefile