jdbc-jtds 1.3.0.1 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/jdbc/jtds.rb +4 -5
- data/lib/jdbc/jtds/version.rb +6 -0
- data/lib/{jtds-1.3.0.jar → jtds-1.3.1.jar} +0 -0
- metadata +10 -10
data/README.md
CHANGED
@@ -12,12 +12,12 @@ For more information see http://jtds.sourceforge.net/
|
|
12
12
|
To make the driver (Java class) accessible to JDBC and ActiveRecord code running in JRuby :
|
13
13
|
|
14
14
|
require 'jdbc/jtds'
|
15
|
-
Jdbc::
|
15
|
+
Jdbc::JTDS.load_driver
|
16
16
|
|
17
17
|
For backwards compatibility with older (**1.2.5**) versions of the gem use :
|
18
18
|
|
19
19
|
require 'jdbc/jtds'
|
20
|
-
Jdbc::
|
20
|
+
Jdbc::JTDS.load_driver(:require) if Jdbc::JTDS.respond_to?(:load_driver)
|
21
21
|
|
22
22
|
NOTE: jTDS **1.3.0** requires Java 7 or newer, if you're on older Java please use **1.2.x**.
|
23
23
|
|
data/lib/jdbc/jtds.rb
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
warn "Jdbc-JTDS is only for use with JRuby" if (JRUBY_VERSION.nil? rescue true)
|
2
|
+
require 'jdbc/jtds/version'
|
2
3
|
|
3
4
|
module Jdbc
|
4
5
|
module JTDS
|
5
|
-
DRIVER_VERSION = '1.3.0'
|
6
|
-
VERSION = DRIVER_VERSION + '.1'
|
7
6
|
|
8
7
|
def self.driver_jar
|
9
8
|
"jtds-#{DRIVER_VERSION}.jar"
|
@@ -14,8 +13,8 @@ module Jdbc
|
|
14
13
|
if ( ( vers.split( '.' ).map(&:to_i) <=> [ 1, 7 ] ) >= 0 )
|
15
14
|
send method, driver_jar
|
16
15
|
else
|
17
|
-
raise LoadError, "Version #{VERSION} of Jdbc-JTDS requires Java 1.7 " +
|
18
|
-
"or later (try using gem 'jdbc-jtds', '~> 1.2.
|
16
|
+
raise LoadError, "Version #{VERSION} of Jdbc-JTDS requires Java 1.7 " +
|
17
|
+
"or later (try using gem 'jdbc-jtds', '~> 1.2.8'). "
|
19
18
|
end
|
20
19
|
end
|
21
20
|
|
@@ -24,7 +23,7 @@ module Jdbc
|
|
24
23
|
end
|
25
24
|
|
26
25
|
if defined?(JRUBY_VERSION) && # enable backwards-compat behavior :
|
27
|
-
( Java::JavaLang::Boolean.get_boolean("jdbc.driver.autoload") ||
|
26
|
+
( Java::JavaLang::Boolean.get_boolean("jdbc.driver.autoload") ||
|
28
27
|
Java::JavaLang::Boolean.get_boolean("jdbc.jtds.autoload") )
|
29
28
|
warn "autoloading JDBC driver on require 'jdbc/jtds'" if $VERBOSE
|
30
29
|
load_driver :require
|
Binary file
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: jdbc-jtds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.3.
|
5
|
+
version: 1.3.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: 2013-
|
12
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Install this gem `require 'jdbc/jtds'` and invoke `Jdbc::JDTS.load_driver` within JRuby to load the driver.
|
15
15
|
email: nick@nicksieger.com, ola.bini@gmail.com
|
@@ -20,32 +20,31 @@ files:
|
|
20
20
|
- Rakefile
|
21
21
|
- README.md
|
22
22
|
- LICENSE.txt
|
23
|
-
- lib/jtds-1.3.
|
23
|
+
- lib/jtds-1.3.1.jar
|
24
24
|
- lib/jdbc/jtds.rb
|
25
|
+
- lib/jdbc/jtds/version.rb
|
25
26
|
homepage: https://github.com/jruby/activerecord-jdbc-adapter
|
26
27
|
licenses: []
|
27
28
|
post_install_message:
|
28
29
|
rdoc_options:
|
29
|
-
-
|
30
|
+
- --main
|
30
31
|
- README.md
|
31
32
|
require_paths:
|
32
33
|
- lib
|
33
34
|
required_ruby_version: !ruby/object:Gem::Requirement
|
34
35
|
requirements:
|
35
|
-
- -
|
36
|
+
- - '>='
|
36
37
|
- !ruby/object:Gem::Version
|
37
38
|
segments:
|
38
39
|
- 0
|
39
40
|
hash: 2
|
40
|
-
version:
|
41
|
-
MA==
|
41
|
+
version: '0'
|
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
|
-
version:
|
48
|
-
MA==
|
47
|
+
version: '0'
|
49
48
|
none: false
|
50
49
|
requirements: []
|
51
50
|
rubyforge_project: jruby-extras
|
@@ -54,3 +53,4 @@ signing_key:
|
|
54
53
|
specification_version: 3
|
55
54
|
summary: jTDS JDBC driver for JRuby and JTDS/ActiveRecord-JDBC (activerecord-jdbcmssql-adapter).
|
56
55
|
test_files: []
|
56
|
+
has_rdoc:
|