Browse files

Update rakefiles to produce gemspecs

Update history for 0.9.3 release
  • Loading branch information...
1 parent ec2a4a6 commit ee42966678b9eac470b187d02a23a4e4935ca98e @nicksieger nicksieger committed Feb 23, 2010
View
10 History.txt
@@ -1,7 +1,17 @@
== 0.9.3
+- Rails 3 compatibility
+- PLEASE NOTE: ActiveRecord in Rails 3 has changed in a way that
+ doesn't allow non-standard DBs (such as the Derby and H2 embedded
+ DBs) to work. We're investigating the effort required to support
+ these databases and hope to have something for a future release.
- ACTIVERECORD_JDBC-91: Fix schema search path for PostgreSQL (Alex
Kuebo)
+- ACTIVERECORD_JDBC-87: DB2 ID insert fix (Youhei Kondou)
+- ACTIVERECORD_JDBC-90: MSSQL fix for DATEs (jlangenauer)
+- ACTIVERECORD_JDBC-93: Fix string IDs for sqlite3, hsql/h2 (moser)
+- ACTIVERECORD_JDBC-86: Fix Derby queries starting with VALUES (Dwayne Litzenberger)
+- ACTIVERECORD_JDBC-95: Fix INSERT ... RETURNING for PostgreSQL
== 0.9.2
View
6 activerecord-jdbc-adapter.gemspec
@@ -7,18 +7,18 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Nick Sieger, Ola Bini and JRuby contributors"]
- s.date = %q{2010-02-12}
+ s.date = %q{2010-02-23}
s.description = %q{activerecord-jdbc-adapter is a database adapter for Rails' ActiveRecord
component that can be used with JRuby[http://www.jruby.org/]. It allows use of
virtually any JDBC-compliant database with your JRuby on Rails application.}
s.email = %q{nick@nicksieger.com, ola.bini@gmail.com}
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt", "LICENSE.txt"]
- s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "LICENSE.txt", "lib/jdbc_adapter.rb", "lib/pg.rb", "lib/active_record/connection_adapters/cachedb_adapter.rb", "lib/active_record/connection_adapters/derby_adapter.rb", "lib/active_record/connection_adapters/h2_adapter.rb", "lib/active_record/connection_adapters/hsqldb_adapter.rb", "lib/active_record/connection_adapters/informix_adapter.rb", "lib/active_record/connection_adapters/jdbc_adapter.rb", "lib/active_record/connection_adapters/jdbc_adapter_spec.rb", "lib/active_record/connection_adapters/jndi_adapter.rb", "lib/active_record/connection_adapters/mysql_adapter.rb", "lib/active_record/connection_adapters/oracle_adapter.rb", "lib/active_record/connection_adapters/postgresql_adapter.rb", "lib/active_record/connection_adapters/sqlite3_adapter.rb", "lib/generators/jdbc/jdbc_generator.rb", "lib/jdbc_adapter/jdbc_cachedb.rb", "lib/jdbc_adapter/jdbc_db2.rb", "lib/jdbc_adapter/jdbc_derby.rb", "lib/jdbc_adapter/jdbc_firebird.rb", "lib/jdbc_adapter/jdbc_hsqldb.rb", "lib/jdbc_adapter/jdbc_informix.rb", "lib/jdbc_adapter/jdbc_mimer.rb", "lib/jdbc_adapter/jdbc_mssql.rb", "lib/jdbc_adapter/jdbc_mysql.rb", "lib/jdbc_adapter/jdbc_oracle.rb", "lib/jdbc_adapter/jdbc_postgre.rb", "lib/jdbc_adapter/jdbc_sqlite3.rb", "lib/jdbc_adapter/jdbc_sybase.rb", "lib/jdbc_adapter/missing_functionality_helper.rb", "lib/jdbc_adapter/rake_tasks.rb", "lib/jdbc_adapter/tsql_helper.rb", "lib/jdbc_adapter/version.rb", "lib/jdbc_adapter/jdbc_adapter_internal.jar", "test/abstract_db_create.rb", "test/cachedb_simple_test.rb", "test/db2_simple_test.rb", "test/derby_migration_test.rb", "test/derby_multibyte_test.rb", "test/derby_simple_test.rb", "test/generic_jdbc_connection_test.rb", "test/h2_simple_test.rb", "test/has_many_through.rb", "test/helper.rb", "test/hsqldb_simple_test.rb", "test/informix_simple_test.rb", "test/jdbc_common.rb", "test/jndi_callbacks_test.rb", "test/jndi_test.rb", "test/manualTestDatabase.rb", "test/minirunit.rb", "test/mssql_simple_test.rb", "test/mysql_db_create_test.rb", "test/mysql_multibyte_test.rb", "test/mysql_nonstandard_primary_key_test.rb", "test/mysql_simple_test.rb", "test/oracle_simple_test.rb", "test/postgres_db_create_test.rb", "test/postgres_mixed_case_test.rb", "test/postgres_nonseq_pkey_test.rb", "test/postgres_reserved_test.rb", "test/postgres_schema_search_path_test.rb", "test/postgres_simple_test.rb", "test/simple.rb", "test/sqlite3_simple_test.rb", "test/sybase_jtds_simple_test.rb", "test/activerecord/connection_adapters/type_conversion_test.rb", "test/activerecord/connections/native_jdbc_mysql/connection.rb", "test/db/cachedb.rb", "test/db/db2.rb", "test/db/derby.rb", "test/db/h2.rb", "test/db/hsqldb.rb", "test/db/informix.rb", "test/db/jdbc.rb", "test/db/jndi_config.rb", "test/db/logger.rb", "test/db/mssql.rb", "test/db/mysql.rb", "test/db/oracle.rb", "test/db/postgres.rb", "test/db/sqlite3.rb", "test/jdbc_adapter/jdbc_db2_test.rb", "test/jdbc_adapter/jdbc_sybase_test.rb", "test/minirunit/testConnect.rb", "test/minirunit/testH2.rb", "test/minirunit/testHsqldb.rb", "test/minirunit/testLoadActiveRecord.rb", "test/minirunit/testMysql.rb", "test/minirunit/testRawSelect.rb", "test/models/add_not_null_column_to_table.rb", "test/models/auto_id.rb", "test/models/data_types.rb", "test/models/entry.rb", "test/models/mixed_case.rb", "test/models/reserved_word.rb", "test/models/validates_uniqueness_of_string.rb", "lib/jdbc_adapter/jdbc.rake", "src/java/jdbc_adapter/JdbcAdapterInternalService.java", "src/java/jdbc_adapter/JdbcConnectionFactory.java", "src/java/jdbc_adapter/JdbcDerbySpec.java", "src/java/jdbc_adapter/JdbcMySQLSpec.java", "src/java/jdbc_adapter/MssqlRubyJdbcConnection.java", "src/java/jdbc_adapter/PostgresRubyJdbcConnection.java", "src/java/jdbc_adapter/RubyJdbcConnection.java", "src/java/jdbc_adapter/SQLBlock.java", "src/java/jdbc_adapter/Sqlite3RubyJdbcConnection.java", "rakelib/compile.rake", "rakelib/package.rake", "rakelib/rails.rake", "rakelib/test.rake", "rails_generators/jdbc_generator.rb", "rails_generators/templates", "rails_generators/templates/config", "rails_generators/templates/lib", "rails_generators/templates/config/initializers", "rails_generators/templates/config/initializers/jdbc.rb", "rails_generators/templates/lib/tasks", "rails_generators/templates/lib/tasks/jdbc.rake"]
+ s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "LICENSE.txt", "lib/jdbc_adapter.rb", "lib/pg.rb", "lib/active_record/connection_adapters/cachedb_adapter.rb", "lib/active_record/connection_adapters/derby_adapter.rb", "lib/active_record/connection_adapters/h2_adapter.rb", "lib/active_record/connection_adapters/hsqldb_adapter.rb", "lib/active_record/connection_adapters/informix_adapter.rb", "lib/active_record/connection_adapters/jdbc_adapter.rb", "lib/active_record/connection_adapters/jdbc_adapter_spec.rb", "lib/active_record/connection_adapters/jndi_adapter.rb", "lib/active_record/connection_adapters/mysql_adapter.rb", "lib/active_record/connection_adapters/oracle_adapter.rb", "lib/active_record/connection_adapters/postgresql_adapter.rb", "lib/active_record/connection_adapters/sqlite3_adapter.rb", "lib/generators/jdbc/jdbc_generator.rb", "lib/jdbc_adapter/jdbc_cachedb.rb", "lib/jdbc_adapter/jdbc_db2.rb", "lib/jdbc_adapter/jdbc_derby.rb", "lib/jdbc_adapter/jdbc_firebird.rb", "lib/jdbc_adapter/jdbc_hsqldb.rb", "lib/jdbc_adapter/jdbc_informix.rb", "lib/jdbc_adapter/jdbc_mimer.rb", "lib/jdbc_adapter/jdbc_mssql.rb", "lib/jdbc_adapter/jdbc_mysql.rb", "lib/jdbc_adapter/jdbc_oracle.rb", "lib/jdbc_adapter/jdbc_postgre.rb", "lib/jdbc_adapter/jdbc_sqlite3.rb", "lib/jdbc_adapter/jdbc_sybase.rb", "lib/jdbc_adapter/missing_functionality_helper.rb", "lib/jdbc_adapter/rake_tasks.rb", "lib/jdbc_adapter/tsql_helper.rb", "lib/jdbc_adapter/version.rb", "lib/jdbc_adapter/jdbc_adapter_internal.jar", "test/abstract_db_create.rb", "test/cachedb_simple_test.rb", "test/db2_simple_test.rb", "test/derby_migration_test.rb", "test/derby_multibyte_test.rb", "test/derby_simple_test.rb", "test/generic_jdbc_connection_test.rb", "test/h2_simple_test.rb", "test/has_many_through.rb", "test/helper.rb", "test/hsqldb_simple_test.rb", "test/informix_simple_test.rb", "test/jdbc_common.rb", "test/jndi_callbacks_test.rb", "test/jndi_test.rb", "test/manualTestDatabase.rb", "test/minirunit.rb", "test/mssql_simple_test.rb", "test/mysql_db_create_test.rb", "test/mysql_multibyte_test.rb", "test/mysql_nonstandard_primary_key_test.rb", "test/mysql_simple_test.rb", "test/oracle_simple_test.rb", "test/pick_rails_version.rb", "test/postgres_db_create_test.rb", "test/postgres_mixed_case_test.rb", "test/postgres_nonseq_pkey_test.rb", "test/postgres_reserved_test.rb", "test/postgres_schema_search_path_test.rb", "test/postgres_simple_test.rb", "test/simple.rb", "test/sqlite3_simple_test.rb", "test/sybase_jtds_simple_test.rb", "test/activerecord/connection_adapters/type_conversion_test.rb", "test/activerecord/connections/native_jdbc_mysql/connection.rb", "test/db/cachedb.rb", "test/db/db2.rb", "test/db/derby.rb", "test/db/h2.rb", "test/db/hsqldb.rb", "test/db/informix.rb", "test/db/jdbc.rb", "test/db/jndi_config.rb", "test/db/logger.rb", "test/db/mssql.rb", "test/db/mysql.rb", "test/db/oracle.rb", "test/db/postgres.rb", "test/db/sqlite3.rb", "test/jdbc_adapter/jdbc_db2_test.rb", "test/jdbc_adapter/jdbc_sybase_test.rb", "test/minirunit/testConnect.rb", "test/minirunit/testH2.rb", "test/minirunit/testHsqldb.rb", "test/minirunit/testLoadActiveRecord.rb", "test/minirunit/testMysql.rb", "test/minirunit/testRawSelect.rb", "test/models/add_not_null_column_to_table.rb", "test/models/auto_id.rb", "test/models/data_types.rb", "test/models/entry.rb", "test/models/mixed_case.rb", "test/models/reserved_word.rb", "test/models/string_id.rb", "test/models/validates_uniqueness_of_string.rb", "lib/jdbc_adapter/jdbc.rake", "src/java/jdbc_adapter/JdbcAdapterInternalService.java", "src/java/jdbc_adapter/JdbcConnectionFactory.java", "src/java/jdbc_adapter/JdbcDerbySpec.java", "src/java/jdbc_adapter/JdbcMySQLSpec.java", "src/java/jdbc_adapter/MssqlRubyJdbcConnection.java", "src/java/jdbc_adapter/PostgresRubyJdbcConnection.java", "src/java/jdbc_adapter/RubyJdbcConnection.java", "src/java/jdbc_adapter/SQLBlock.java", "src/java/jdbc_adapter/Sqlite3RubyJdbcConnection.java", "rakelib/compile.rake", "rakelib/package.rake", "rakelib/rails.rake", "rakelib/test.rake", "rails_generators/jdbc_generator.rb", "rails_generators/templates", "rails_generators/templates/config", "rails_generators/templates/lib", "rails_generators/templates/config/initializers", "rails_generators/templates/config/initializers/jdbc.rb", "rails_generators/templates/lib/tasks", "rails_generators/templates/lib/tasks/jdbc.rake"]
s.homepage = %q{http://jruby-extras.rubyforge.org/activerecord-jdbc-adapter}
s.rdoc_options = ["--main", "README.txt"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{jruby-extras}
- s.rubygems_version = %q{1.3.5}
+ s.rubygems_version = %q{1.3.6}
s.summary = %q{JDBC adapter for ActiveRecord, for use within JRuby on Rails.}
if s.respond_to? :specification_version then
View
9 adapters/derby/Rakefile
@@ -13,7 +13,7 @@ require "jdbc/derby"
begin
require 'hoe'
Hoe.plugin :gemcutter
- Hoe.spec("activerecord-jdbcderby-adapter") do |p|
+ hoe = Hoe.spec("activerecord-jdbcderby-adapter") do |p|
p.version = JdbcAdapter::Version::VERSION
p.spec_extras[:platform] = Gem::Platform.new("java")
p.rubyforge_name = "jruby-extras"
@@ -26,7 +26,12 @@ begin
p.extra_deps += [
['activerecord-jdbc-adapter', "= #{JdbcAdapter::Version::VERSION}"],
['jdbc-derby', ">= #{Jdbc::Derby::VERSION}"]]
- end.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
+ end
+ hoe.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
+ 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
View
9 adapters/h2/Rakefile
@@ -13,7 +13,7 @@ require "jdbc/h2"
begin
require 'hoe'
Hoe.plugin :gemcutter
- Hoe.spec("activerecord-jdbch2-adapter") do |p|
+ hoe = Hoe.spec("activerecord-jdbch2-adapter") do |p|
p.version = JdbcAdapter::Version::VERSION
p.spec_extras[:platform] = Gem::Platform.new("java")
p.rubyforge_name = "jruby-extras"
@@ -26,7 +26,12 @@ begin
p.extra_deps += [
['activerecord-jdbc-adapter', "= #{JdbcAdapter::Version::VERSION}"],
['jdbc-h2', ">= #{Jdbc::H2::VERSION}"]]
- end.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
+ end
+ hoe.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
+ 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
View
37 adapters/h2/activerecord-jdbch2-adapter.gemspec
@@ -0,0 +1,37 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{activerecord-jdbch2-adapter}
+ s.version = "0.9.3"
+ s.platform = Gem::Platform.new([nil, "java", nil])
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Nick Sieger, Ola Bini and JRuby contributors"]
+ s.date = %q{2010-02-23}
+ s.description = %q{Install this gem to use H2 with JRuby on Rails.}
+ s.email = %q{nick@nicksieger.com, ola.bini@gmail.com}
+ s.extra_rdoc_files = ["Manifest.txt", "README.txt", "LICENSE.txt"]
+ s.files = ["Manifest.txt", "Rakefile", "README.txt", "LICENSE.txt", "lib/active_record", "lib/active_record/connection_adapters", "lib/active_record/connection_adapters/jdbch2_adapter.rb"]
+ s.homepage = %q{http://jruby-extras.rubyforge.org/ActiveRecord-JDBC}
+ s.rdoc_options = ["--main", "README.txt"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = %q{jruby-extras}
+ s.rubygems_version = %q{1.3.6}
+ s.summary = %q{H2 JDBC adapter for JRuby on Rails.}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<activerecord-jdbc-adapter>, ["= 0.9.3"])
+ s.add_runtime_dependency(%q<jdbc-h2>, [">= 1.1.107"])
+ else
+ s.add_dependency(%q<activerecord-jdbc-adapter>, ["= 0.9.3"])
+ s.add_dependency(%q<jdbc-h2>, [">= 1.1.107"])
+ end
+ else
+ s.add_dependency(%q<activerecord-jdbc-adapter>, ["= 0.9.3"])
+ s.add_dependency(%q<jdbc-h2>, [">= 1.1.107"])
+ end
+end
View
9 adapters/hsqldb/Rakefile
@@ -13,7 +13,7 @@ require "jdbc/hsqldb"
begin
require 'hoe'
Hoe.plugin :gemcutter
- Hoe.spec("activerecord-jdbchsqldb-adapter") do |p|
+ hoe = Hoe.spec("activerecord-jdbchsqldb-adapter") do |p|
p.version = JdbcAdapter::Version::VERSION
p.spec_extras[:platform] = Gem::Platform.new("java")
p.rubyforge_name = "jruby-extras"
@@ -26,7 +26,12 @@ begin
p.extra_deps += [
['activerecord-jdbc-adapter', "= #{JdbcAdapter::Version::VERSION}"],
['jdbc-hsqldb', ">= #{Jdbc::HSQLDB::VERSION}"]]
- end.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
+ end
+ hoe.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
+ 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
View
37 adapters/hsqldb/activerecord-jdbchsqldb-adapter.gemspec
@@ -0,0 +1,37 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{activerecord-jdbchsqldb-adapter}
+ s.version = "0.9.3"
+ s.platform = Gem::Platform.new([nil, "java", nil])
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Nick Sieger, Ola Bini and JRuby contributors"]
+ s.date = %q{2010-02-23}
+ s.description = %q{Install this gem to use HSQLDB with JRuby on Rails.}
+ s.email = %q{nick@nicksieger.com, ola.bini@gmail.com}
+ s.extra_rdoc_files = ["Manifest.txt", "README.txt", "LICENSE.txt"]
+ s.files = ["Manifest.txt", "Rakefile", "README.txt", "LICENSE.txt", "lib/active_record", "lib/active_record/connection_adapters", "lib/active_record/connection_adapters/jdbchsqldb_adapter.rb"]
+ s.homepage = %q{http://jruby-extras.rubyforge.org/ActiveRecord-JDBC}
+ s.rdoc_options = ["--main", "README.txt"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = %q{jruby-extras}
+ s.rubygems_version = %q{1.3.6}
+ s.summary = %q{HSQLDB JDBC adapter for JRuby on Rails.}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<activerecord-jdbc-adapter>, ["= 0.9.3"])
+ s.add_runtime_dependency(%q<jdbc-hsqldb>, [">= 1.8.0.7"])
+ else
+ s.add_dependency(%q<activerecord-jdbc-adapter>, ["= 0.9.3"])
+ s.add_dependency(%q<jdbc-hsqldb>, [">= 1.8.0.7"])
+ end
+ else
+ s.add_dependency(%q<activerecord-jdbc-adapter>, ["= 0.9.3"])
+ s.add_dependency(%q<jdbc-hsqldb>, [">= 1.8.0.7"])
+ end
+end
View
9 adapters/mysql/Rakefile
@@ -13,7 +13,7 @@ require "jdbc/mysql"
begin
require 'hoe'
Hoe.plugin :gemcutter
- Hoe.spec("activerecord-jdbcmysql-adapter") do |p|
+ hoe = Hoe.spec("activerecord-jdbcmysql-adapter") do |p|
p.version = JdbcAdapter::Version::VERSION
p.spec_extras[:platform] = Gem::Platform.new("java")
p.rubyforge_name = "jruby-extras"
@@ -26,7 +26,12 @@ begin
p.extra_deps += [
['activerecord-jdbc-adapter', "= #{JdbcAdapter::Version::VERSION}"],
['jdbc-mysql', ">= #{Jdbc::MySQL::VERSION}"]]
- end.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
+ end
+ hoe.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
+ 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
View
37 adapters/mysql/activerecord-jdbcmysql-adapter.gemspec
@@ -0,0 +1,37 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{activerecord-jdbcmysql-adapter}
+ s.version = "0.9.3"
+ s.platform = Gem::Platform.new([nil, "java", nil])
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Nick Sieger, Ola Bini and JRuby contributors"]
+ s.date = %q{2010-02-23}
+ s.description = %q{Install this gem to use MySQL with JRuby on Rails.}
+ s.email = %q{nick@nicksieger.com, ola.bini@gmail.com}
+ s.extra_rdoc_files = ["Manifest.txt", "README.txt", "LICENSE.txt"]
+ s.files = ["Manifest.txt", "Rakefile", "README.txt", "LICENSE.txt", "lib/active_record", "lib/active_record/connection_adapters", "lib/active_record/connection_adapters/jdbcmysql_adapter.rb"]
+ s.homepage = %q{http://jruby-extras.rubyforge.org/ActiveRecord-JDBC}
+ s.rdoc_options = ["--main", "README.txt"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = %q{jruby-extras}
+ s.rubygems_version = %q{1.3.6}
+ s.summary = %q{MySQL JDBC adapter for JRuby on Rails.}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<activerecord-jdbc-adapter>, ["= 0.9.3"])
+ s.add_runtime_dependency(%q<jdbc-mysql>, [">= 5.0.4"])
+ else
+ s.add_dependency(%q<activerecord-jdbc-adapter>, ["= 0.9.3"])
+ s.add_dependency(%q<jdbc-mysql>, [">= 5.0.4"])
+ end
+ else
+ s.add_dependency(%q<activerecord-jdbc-adapter>, ["= 0.9.3"])
+ s.add_dependency(%q<jdbc-mysql>, [">= 5.0.4"])
+ end
+end
View
9 adapters/postgresql/Rakefile
@@ -13,7 +13,7 @@ require "jdbc/postgres"
begin
require 'hoe'
Hoe.plugin :gemcutter
- Hoe.spec("activerecord-jdbcpostgresql-adapter") do |p|
+ hoe = Hoe.spec("activerecord-jdbcpostgresql-adapter") do |p|
p.version = JdbcAdapter::Version::VERSION
p.spec_extras[:platform] = Gem::Platform.new("java")
p.rubyforge_name = "jruby-extras"
@@ -26,7 +26,12 @@ begin
p.extra_deps += [
['activerecord-jdbc-adapter', "= #{JdbcAdapter::Version::VERSION}"],
['jdbc-postgres', ">= #{Jdbc::Postgres::VERSION}"]]
- end.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
+ end
+ hoe.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
+ 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
View
37 adapters/postgresql/activerecord-jdbcpostgresql-adapter.gemspec
@@ -0,0 +1,37 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{activerecord-jdbcpostgresql-adapter}
+ s.version = "0.9.3"
+ s.platform = Gem::Platform.new([nil, "java", nil])
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Nick Sieger, Ola Bini and JRuby contributors"]
+ s.date = %q{2010-02-23}
+ s.description = %q{Install this gem to use Postgres with JRuby on Rails.}
+ s.email = %q{nick@nicksieger.com, ola.bini@gmail.com}
+ s.extra_rdoc_files = ["Manifest.txt", "README.txt", "LICENSE.txt"]
+ s.files = ["Manifest.txt", "Rakefile", "README.txt", "LICENSE.txt", "lib/active_record", "lib/active_record/connection_adapters", "lib/active_record/connection_adapters/jdbcpostgresql_adapter.rb"]
+ s.homepage = %q{http://jruby-extras.rubyforge.org/ActiveRecord-JDBC}
+ s.rdoc_options = ["--main", "README.txt"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = %q{jruby-extras}
+ s.rubygems_version = %q{1.3.6}
+ s.summary = %q{Postgres JDBC adapter for JRuby on Rails.}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<activerecord-jdbc-adapter>, ["= 0.9.3"])
+ s.add_runtime_dependency(%q<jdbc-postgres>, [">= 8.3.604"])
+ else
+ s.add_dependency(%q<activerecord-jdbc-adapter>, ["= 0.9.3"])
+ s.add_dependency(%q<jdbc-postgres>, [">= 8.3.604"])
+ end
+ else
+ s.add_dependency(%q<activerecord-jdbc-adapter>, ["= 0.9.3"])
+ s.add_dependency(%q<jdbc-postgres>, [">= 8.3.604"])
+ end
+end
View
9 adapters/sqlite3/Rakefile
@@ -13,7 +13,7 @@ require "jdbc/sqlite3"
begin
require 'hoe'
Hoe.plugin :gemcutter
- Hoe.spec("activerecord-jdbcsqlite3-adapter") do |p|
+ hoe = Hoe.spec("activerecord-jdbcsqlite3-adapter") do |p|
p.version = JdbcAdapter::Version::VERSION
p.spec_extras[:platform] = Gem::Platform.new("java")
p.rubyforge_name = "jruby-extras"
@@ -26,7 +26,12 @@ begin
p.extra_deps += [
['activerecord-jdbc-adapter', "= #{JdbcAdapter::Version::VERSION}"],
['jdbc-sqlite3', ">= #{Jdbc::SQLite3::VERSION}"]]
- end.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
+ end
+ hoe.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
+ 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
View
37 adapters/sqlite3/activerecord-jdbcsqlite3-adapter.gemspec
@@ -0,0 +1,37 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{activerecord-jdbcsqlite3-adapter}
+ s.version = "0.9.3"
+ s.platform = Gem::Platform.new([nil, "java", nil])
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Nick Sieger, Ola Bini and JRuby contributors"]
+ s.date = %q{2010-02-23}
+ s.description = %q{Install this gem to use SQLite3 with JRuby on Rails.}
+ s.email = %q{nick@nicksieger.com, ola.bini@gmail.com}
+ s.extra_rdoc_files = ["Manifest.txt", "README.txt", "LICENSE.txt"]
+ s.files = ["Manifest.txt", "Rakefile", "README.txt", "LICENSE.txt", "lib/active_record", "lib/active_record/connection_adapters", "lib/active_record/connection_adapters/jdbcsqlite3_adapter.rb"]
+ s.homepage = %q{http://jruby-extras.rubyforge.org/ActiveRecord-JDBC}
+ s.rdoc_options = ["--main", "README.txt"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = %q{jruby-extras}
+ s.rubygems_version = %q{1.3.6}
+ s.summary = %q{SQLite3 JDBC adapter for JRuby on Rails.}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<activerecord-jdbc-adapter>, ["= 0.9.3"])
+ s.add_runtime_dependency(%q<jdbc-sqlite3>, [">= 3.6.3.054"])
+ else
+ s.add_dependency(%q<activerecord-jdbc-adapter>, ["= 0.9.3"])
+ s.add_dependency(%q<jdbc-sqlite3>, [">= 3.6.3.054"])
+ end
+ else
+ s.add_dependency(%q<activerecord-jdbc-adapter>, ["= 0.9.3"])
+ s.add_dependency(%q<jdbc-sqlite3>, [">= 3.6.3.054"])
+ end
+end
View
3 rakelib/package.rake
@@ -25,7 +25,6 @@ begin
p.description = p.paragraphs_of('README.txt', 0...1).join("\n\n")
end
hoe.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
-
task :gemspec do
File.open("#{hoe.name}.gemspec", "w") {|f| f << hoe.spec.to_ruby }
end
@@ -49,7 +48,7 @@ end
(Dir["drivers/*/Rakefile"] + Dir["adapters/*/Rakefile"]).each do |rakefile|
dir = File.dirname(rakefile)
prefix = dir.sub(%r{/}, ':')
- tasks = %w(package install_gem debug_gem clean)
+ tasks = %w(package install_gem debug_gem clean gemspec)
tasks << "test" if File.directory?(File.join(dir, "test"))
tasks.each do |task|
desc "Run rake #{task} on #{dir}"

0 comments on commit ee42966

Please sign in to comment.