GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of nicksieger/activerecord-jdbc-adapter
Description: ActiveRecord adapter for JDBC and JRuby
Homepage: http://jruby-extras.rubyforge.org/activerecord-jdbc-adapter
Clone URL: git://github.com/abedra/activerecord-jdbc-adapter.git
abedra (author)
Tue Jul 15 07:19:04 -0700 2008
commit  ea6501552626c443b4b832d9f31e37a3a671225a
tree    01d7a74da9060710862be03b31010540703e8f06
parent  85ce028c147172a6fd3f1127d3b96f077f720546
100644 32 lines (28 sloc) 1.315 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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/jdbc_adapter/version"
$LOAD_PATH << File.dirname(__FILE__) + "/../../drivers/sqlite3/lib"
require "jdbc/sqlite3"
 
begin
  require 'hoe'
  Hoe.new("activerecord-jdbcsqlite3-adapter", JdbcAdapter::Version::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 = "SQLite3 JDBC adapter for JRuby on Rails."
    p.changes = "Updated to SQLite3 version #{Jdbc::SQLite3::VERSION}."
    p.description = "Install this gem to use SQLite3 with JRuby on Rails."
    p.extra_deps += [
      ['activerecord-jdbc-adapter', ">= #{JdbcAdapter::Version::VERSION}"],
      ['jdbc-sqlite3', ">= #{Jdbc::SQLite3::VERSION}"]]
  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