jdbc-mysql 5.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/LICENSE.txt ADDED
@@ -0,0 +1 @@
1
+ This gem bundles the MySQL JDBC driver/connector for Java. The MySQL connector is available from MySQL AB under the terms of the GPL, see http://www.gnu.org/copyleft/gpl.html for details.
data/Manifest.txt ADDED
@@ -0,0 +1,7 @@
1
+ Manifest.txt
2
+ Rakefile
3
+ README.txt
4
+ LICENSE.txt
5
+ lib/jdbc
6
+ lib/jdbc/mysql.rb
7
+ lib/mysql-connector-java-5.0.4-bin.jar
data/README.txt ADDED
@@ -0,0 +1,6 @@
1
+ This is a MySQL JDBC driver gem for JRuby. Use
2
+
3
+ require 'jdbc/mysql'
4
+
5
+ to make the driver accessible to JDBC and ActiveRecord code running in JRuby.
6
+
data/Rakefile ADDED
@@ -0,0 +1,26 @@
1
+ MANIFEST = FileList["Manifest.txt", "Rakefile", "README.txt", "LICENSE.txt", "lib/**/*"]
2
+
3
+ file "Manifest.txt" => :manifest
4
+ task :manifest do
5
+ File.open("Manifest.txt", "w") {|f| MANIFEST.each {|n| f << "#{n}\n"} }
6
+ end
7
+ Rake::Task['manifest'].invoke # Always regen manifest, so Hoe has up-to-date list of files
8
+
9
+ $LOAD_PATH << "lib"
10
+ require "jdbc/mysql"
11
+ begin
12
+ require 'hoe'
13
+ Hoe.new("jdbc-mysql", Jdbc::MySQL::VERSION) do |p|
14
+ p.rubyforge_name = "jruby-extras"
15
+ p.url = "http://jruby-extras.rubyforge.org/ActiveRecord-JDBC"
16
+ p.author = "Nick Sieger, Ola Bini and JRuby contributors"
17
+ p.email = "nick@nicksieger.com, ola.bini@gmail.com"
18
+ p.summary = "MySQL JDBC driver for Java and MySQL/ActiveRecord-JDBC."
19
+ p.changes = "Updated to MySQL connector version #{Jdbc::MySQL::VERSION}."
20
+ p.description = "Install this gem and require 'mysql' within JRuby to load the driver."
21
+ end.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
22
+ rescue LoadError
23
+ puts "You really need Hoe installed to be able to package this gem"
24
+ rescue => e
25
+ puts "ignoring error while loading hoe: #{e.to_s}"
26
+ end
data/lib/jdbc/mysql.rb ADDED
@@ -0,0 +1,10 @@
1
+ module Jdbc
2
+ module MySQL
3
+ VERSION = "5.0.4"
4
+ end
5
+ end
6
+ if RUBY_PLATFORM =~ /java/
7
+ require "mysql-connector-java-#{Jdbc::MySQL::VERSION}-bin.jar"
8
+ else
9
+ warn "jdbc-mysql is only for use with JRuby"
10
+ end
metadata ADDED
@@ -0,0 +1,55 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.4
3
+ specification_version: 1
4
+ name: jdbc-mysql
5
+ version: !ruby/object:Gem::Version
6
+ version: 5.0.4
7
+ date: 2007-11-05 00:00:00 -06:00
8
+ summary: MySQL JDBC driver for Java and MySQL/ActiveRecord-JDBC.
9
+ require_paths:
10
+ - lib
11
+ email: nick@nicksieger.com, ola.bini@gmail.com
12
+ homepage: http://jruby-extras.rubyforge.org/ActiveRecord-JDBC
13
+ rubyforge_project: jruby-extras
14
+ description: Install this gem and require 'mysql' within JRuby to load the driver.
15
+ autorequire:
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - Nick Sieger, Ola Bini and JRuby contributors
31
+ files:
32
+ - Manifest.txt
33
+ - Rakefile
34
+ - README.txt
35
+ - LICENSE.txt
36
+ - lib/jdbc
37
+ - lib/jdbc/mysql.rb
38
+ - lib/mysql-connector-java-5.0.4-bin.jar
39
+ test_files: []
40
+
41
+ rdoc_options:
42
+ - --main
43
+ - README.txt
44
+ extra_rdoc_files:
45
+ - Manifest.txt
46
+ - README.txt
47
+ - LICENSE.txt
48
+ executables: []
49
+
50
+ extensions: []
51
+
52
+ requirements: []
53
+
54
+ dependencies: []
55
+