Sha256: 580863b5cc87e187aa04d39fcf1a20ab08fc12caab87675701eeb22776feae93

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 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 # Always regen manifest, so Hoe has up-to-date list of files

$LOAD_PATH << "lib"
require "jdbc/mysql"
begin
  require 'hoe'
  Hoe.new("jdbc-mysql", Jdbc::MySQL::VERSION) do |p|
    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 = "MySQL JDBC driver for Java and MySQL/ActiveRecord-JDBC."
    p.changes = "Updated to MySQL connector version #{Jdbc::MySQL::VERSION}."
    p.description = "Install this gem and require 'mysql' within JRuby to load the driver."
  end.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
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 & 2 rubygems

Version Path
saturnflyer-activerecord-jdbc-adapter-0.9.3 drivers/mysql/Rakefile
jdbc-mysql-5.0.4 Rakefile