jdbc-hsqldb 2.2.9 → 2.2.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/LICENSE.txt +66 -1
  2. data/README.md +28 -0
  3. data/lib/jdbc/hsqldb.rb +12 -6
  4. metadata +9 -9
  5. data/README.txt +0 -14
@@ -1,2 +1,67 @@
1
- This gem bundles the HSQLDB driver for Java. HSQL is available under the terms of the Hypersonic SQL license, see http://hsqldb.org/web/hsqlLicense.html for details.
1
+ COPYRIGHTS AND LICENSES (based on BSD License)
2
2
 
3
+ For work developed by the HSQL Development Group:
4
+
5
+ Copyright (c) 2001-2010, The HSQL Development Group
6
+ All rights reserved.
7
+
8
+ Redistribution and use in source and binary forms, with or without
9
+ modification, are permitted provided that the following conditions are met:
10
+
11
+ Redistributions of source code must retain the above copyright notice, this
12
+ list of conditions and the following disclaimer.
13
+
14
+ Redistributions in binary form must reproduce the above copyright notice,
15
+ this list of conditions and the following disclaimer in the documentation
16
+ and/or other materials provided with the distribution.
17
+
18
+ Neither the name of the HSQL Development Group nor the names of its
19
+ contributors may be used to endorse or promote products derived from this
20
+ software without specific prior written permission.
21
+
22
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25
+ ARE DISCLAIMED. IN NO EVENT SHALL HSQL DEVELOPMENT GROUP, HSQLDB.ORG,
26
+ OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
27
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
28
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
+
34
+
35
+ For work originally developed by the Hypersonic SQL Group:
36
+
37
+ Copyright (c) 1995-2000 by the Hypersonic SQL Group.
38
+ All rights reserved.
39
+
40
+ Redistribution and use in source and binary forms, with or without
41
+ modification, are permitted provided that the following conditions are met:
42
+
43
+ Redistributions of source code must retain the above copyright notice, this
44
+ list of conditions and the following disclaimer.
45
+
46
+ Redistributions in binary form must reproduce the above copyright notice,
47
+ this list of conditions and the following disclaimer in the documentation
48
+ and/or other materials provided with the distribution.
49
+
50
+ Neither the name of the Hypersonic SQL Group nor the names of its
51
+ contributors may be used to endorse or promote products derived from this
52
+ software without specific prior written permission.
53
+
54
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
55
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
56
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
57
+ ARE DISCLAIMED. IN NO EVENT SHALL THE HYPERSONIC SQL GROUP,
58
+ OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
59
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
60
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
61
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
62
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
63
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
64
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
65
+
66
+ This software consists of voluntary contributions made by many individuals on behalf of the
67
+ Hypersonic SQL Group.
@@ -0,0 +1,28 @@
1
+ # jdbc-hsqldb
2
+
3
+ HSQLDB (HyperSQL DataBase) is the leading SQL relational database engine written
4
+ in Java. It offers a small, fast multithreaded and transactional database engine
5
+ with in-memory and disk-based tables and supports embedded and server modes.
6
+ It includes a powerful command line SQL tool and simple GUI query tools.
7
+
8
+ For more information see http://hsqldb.org/
9
+
10
+ ## Usage
11
+
12
+ To make the driver accessible to JDBC and ActiveRecord code running in JRuby :
13
+
14
+ require 'jdbc/hsqldb'
15
+ Jdbc::HSQLDB.load_driver
16
+
17
+ For backwards compatibility with older (<= **1.8.1.3**) versions of the gem use :
18
+
19
+ require 'jdbc/hsqldb'
20
+ Jdbc::HSQLDB.load_driver(:require) if Jdbc::HSQLDB.respond_to?(:load_driver)
21
+
22
+ ## Copyright
23
+
24
+ Copyright (c) 2012 [The JRuby Team](https://github.com/jruby).
25
+
26
+ HSQLDB is completely free to use and distribute under a license based on the
27
+ standard BSD license and fully compatible with all major open source licenses.
28
+ see *LICENSE.txt* and http://hsqldb.org/web/hsqlLicense.html for more details.
@@ -1,9 +1,12 @@
1
+ warn "Jdbc-HSQLDB is only for use with JRuby" if (JRUBY_VERSION.nil? rescue true)
2
+
1
3
  module Jdbc
2
4
  module HSQLDB
3
- VERSION = "2.2.9"
5
+ DRIVER_VERSION = '2.2.9'
6
+ VERSION = DRIVER_VERSION + '.1'
4
7
 
5
8
  def self.driver_jar
6
- "hsqldb-#{VERSION}.jar"
9
+ "hsqldb-#{DRIVER_VERSION}.jar"
7
10
  end
8
11
 
9
12
  def self.load_driver(method = :load)
@@ -13,9 +16,12 @@ module Jdbc
13
16
  def self.driver_name
14
17
  'org.hsqldb.jdbcDriver'
15
18
  end
16
- end
17
- end
18
19
 
19
- if $VERBOSE && (JRUBY_VERSION.nil? rescue true)
20
- warn "Jdbc-HSQLDB is only for use with JRuby"
20
+ if defined?(JRUBY_VERSION) && # enable backwards-compat behavior :
21
+ ( Java::JavaLang::Boolean.get_boolean("jdbc.driver.autoload") ||
22
+ Java::JavaLang::Boolean.get_boolean("jdbc.hsqldb.autoload") )
23
+ warn "autoloading JDBC driver on require 'jdbc/hsqldb'" if $VERBOSE
24
+ load_driver :require
25
+ end
26
+ end
21
27
  end
metadata CHANGED
@@ -2,23 +2,23 @@
2
2
  name: jdbc-hsqldb
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.2.9
5
+ version: 2.2.9.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nick Sieger, Ola Bini and JRuby contributors
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2010-09-15 00:00:00.000000000 Z
12
+ date: 2013-01-23 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Install this gem and require 'hsqldb' within JRuby to load the driver.
14
+ description: Install this gem `require 'jdbc/hsqldb'` and invoke `Jdbc::HSQLDB.load_driver` within JRuby to load the driver.
15
15
  email: nick@nicksieger.com, ola.bini@gmail.com
16
16
  executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - Rakefile
21
- - README.txt
21
+ - README.md
22
22
  - LICENSE.txt
23
23
  - lib/hsqldb-2.2.9.jar
24
24
  - lib/jdbc/hsqldb.rb
@@ -26,13 +26,13 @@ homepage: https://github.com/jruby/activerecord-jdbc-adapter
26
26
  licenses: []
27
27
  post_install_message:
28
28
  rdoc_options:
29
- - --main
30
- - README.txt
29
+ - "--main"
30
+ - README.md
31
31
  require_paths:
32
32
  - lib
33
33
  required_ruby_version: !ruby/object:Gem::Requirement
34
34
  requirements:
35
- - - ! '>='
35
+ - - ">="
36
36
  - !ruby/object:Gem::Version
37
37
  segments:
38
38
  - 0
@@ -42,7 +42,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  required_rubygems_version: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: !binary |-
48
48
  MA==
@@ -52,5 +52,5 @@ rubyforge_project: jruby-extras
52
52
  rubygems_version: 1.8.24
53
53
  signing_key:
54
54
  specification_version: 3
55
- summary: HSQLDB JDBC driver for Java and HSQLDB/ActiveRecord-JDBC.
55
+ summary: HSQLDB JDBC driver for JRuby and HSQLDB/ActiveRecord-JDBC (activerecord-jdbchsqldb-adapter).
56
56
  test_files: []
data/README.txt DELETED
@@ -1,14 +0,0 @@
1
- = jdbc-hsqldb
2
-
3
- * https://github.com/jruby/activerecord-jdbc-adapter/
4
-
5
- == DESCRIPTION:
6
-
7
- This is a HSQLDB JDBC driver gem for JRuby.
8
-
9
- Use
10
-
11
- require 'jdbc/hsqldb'
12
-
13
- to make the driver accessible to JDBC and ActiveRecord code running in JRuby.
14
-