jdbc-jtds 1.2.5 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +5 -1
- data/README.md +29 -0
- data/Rakefile +15 -27
- data/lib/jdbc/jtds.rb +24 -7
- data/lib/jtds-1.2.7.jar +0 -0
- metadata +42 -72
- data/Manifest.txt +0 -7
- data/README.txt +0 -14
- data/lib/jtds-1.2.5.jar +0 -0
data/LICENSE.txt
CHANGED
@@ -1 +1,5 @@
|
|
1
|
-
|
1
|
+
jTDS is Free Software. jTDS is made available under the terms of the GNU Lesser General Public License. The LGPL is sufficiently flexible to allow the use of jTDS in both open source and commercial projects. Using jTDS is considered to be dynamic linking; hence our interpretation of the LGPL is that the use of the unmodified jTDS source or binary does not affect the license of your application code.
|
2
|
+
|
3
|
+
If you modify jTDS and redistribute your modifications, the LGPL applies, basically meaning that you'll have to make the modified version publicly available under the LGPL license too. This ensures that all users of the software have access to all future improvements.
|
4
|
+
|
5
|
+
jTDS was initially based on software released under a BSD license by CDS Networks, Inc. and/or Craig Spannring, the author of the original FreeTDS JDBC driver from which jTDS is derived. Between releases 0.8.1 and 0.9 jTDS was completely rewritten so the original BSD license no longer applies.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# jdbc-jtds
|
2
|
+
|
3
|
+
jTDS - SQL Server and Sybase JDBC driver gem for JRuby
|
4
|
+
|
5
|
+
Open source JDBC 3.0 type 4 driver for Microsoft SQL Server (6.5 up to 2012) and Sybase ASE.
|
6
|
+
jTDS is a complete implementation of the JDBC 3.0 spec and the fastest JDBC driver for MS SQL Server.
|
7
|
+
|
8
|
+
For more information see http://jtds.sourceforge.net/
|
9
|
+
|
10
|
+
## Usage
|
11
|
+
|
12
|
+
To make the driver (Java class) accessible to JDBC and ActiveRecord code running in JRuby :
|
13
|
+
|
14
|
+
require 'jdbc/jtds'
|
15
|
+
Jdbc::JDTS.load_driver
|
16
|
+
|
17
|
+
For backwards compatibility with older (**1.2.5**) versions of the gem use :
|
18
|
+
|
19
|
+
require 'jdbc/jtds'
|
20
|
+
Jdbc::JDTS.load_driver(:require) if Jdbc::JDTS.respond_to?(:load_driver)
|
21
|
+
|
22
|
+
NOTE: jTDS **1.3.0** requires Java 7 or newer, if you're on older Java please use **1.2.x**.
|
23
|
+
|
24
|
+
## Copyright
|
25
|
+
|
26
|
+
Copyright (c) 2012 [The JRuby Team](https://github.com/jruby).
|
27
|
+
|
28
|
+
jTDS is made available under the terms of the GNU Lesser General Public License,
|
29
|
+
see *LICENSE.txt* and http://jtds.sourceforge.net/license.html for more details.
|
data/Rakefile
CHANGED
@@ -1,30 +1,18 @@
|
|
1
|
-
|
1
|
+
require 'bundler/gem_helper'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
name = Dir["*.gemspec"].first.sub('.gemspec', '')
|
4
|
+
gem_helper = Bundler::GemHelper.new(Dir.pwd, name)
|
5
|
+
def gem_helper.version_tag
|
6
|
+
"#{name}-#{version}" # override "v#{version}"
|
6
7
|
end
|
7
|
-
Rake::Task['manifest'].invoke # Always regen manifest, so Hoe has up-to-date list of files
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
p.url = "http://jruby-extras.rubyforge.org/ActiveRecord-JDBC"
|
20
|
-
p.author = "Nick Sieger, Ola Bini and JRuby contributors"
|
21
|
-
p.email = "nick@nicksieger.com, ola.bini@gmail.com"
|
22
|
-
p.summary = "jTDS JDBC driver for Java and jTDS/ActiveRecord-JDBC."
|
23
|
-
p.changes = "Updated to jTDS version #{Jdbc::JTDS::VERSION}."
|
24
|
-
p.description = "Install this gem and require 'jtds' within JRuby to load the driver."
|
25
|
-
end.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
|
26
|
-
rescue LoadError
|
27
|
-
puts "You really need Hoe installed to be able to package this gem"
|
28
|
-
rescue => e
|
29
|
-
puts "ignoring error while loading hoe: #{e.to_s}"
|
30
|
-
end
|
9
|
+
version = gem_helper.send(:version)
|
10
|
+
version_tag = gem_helper.version_tag
|
11
|
+
desc "Build #{name}-#{version}.gem into the pkg directory"
|
12
|
+
task('build') { gem_helper.build_gem }
|
13
|
+
|
14
|
+
desc "Build and install #{name}-#{version}.gem into system gems"
|
15
|
+
task('install') { gem_helper.install_gem }
|
16
|
+
|
17
|
+
desc "Create tag #{version_tag} build and push #{name}-#{version}.gem to Rubygems"
|
18
|
+
task('release') { gem_helper.release_gem }
|
data/lib/jdbc/jtds.rb
CHANGED
@@ -1,10 +1,27 @@
|
|
1
|
+
warn "Jdbc-JTDS is only for use with JRuby" if (JRUBY_VERSION.nil? rescue true)
|
2
|
+
|
1
3
|
module Jdbc
|
2
|
-
module JTDS
|
3
|
-
|
4
|
+
module JTDS
|
5
|
+
DRIVER_VERSION = '1.2.7'
|
6
|
+
VERSION = DRIVER_VERSION
|
7
|
+
|
8
|
+
def self.driver_jar
|
9
|
+
"jtds-#{DRIVER_VERSION}.jar"
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.load_driver(method = :load)
|
13
|
+
send method, driver_jar
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.driver_name
|
17
|
+
'net.sourceforge.jtds.jdbc.Driver'
|
18
|
+
end
|
19
|
+
|
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.jtds.autoload") )
|
23
|
+
warn "autoloading JDBC driver on require 'jdbc/jtds'" if $VERBOSE
|
24
|
+
load_driver :require
|
25
|
+
end
|
4
26
|
end
|
5
27
|
end
|
6
|
-
if RUBY_PLATFORM =~ /java/
|
7
|
-
require "jtds-#{Jdbc::JTDS::VERSION}.jar"
|
8
|
-
else
|
9
|
-
warn "jdbc-jtds is only for use with JRuby"
|
10
|
-
end
|
data/lib/jtds-1.2.7.jar
ADDED
Binary file
|
metadata
CHANGED
@@ -1,86 +1,56 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: jdbc-jtds
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 2
|
8
|
-
- 5
|
9
|
-
version: 1.2.5
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 1.2.7
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
12
|
-
|
13
|
-
autorequire:
|
7
|
+
authors:
|
8
|
+
- Nick Sieger, Ola Bini and JRuby contributors
|
9
|
+
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
name: rubyforge
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
|
-
requirements:
|
26
|
-
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 2
|
30
|
-
- 0
|
31
|
-
- 4
|
32
|
-
version: 2.0.4
|
33
|
-
type: :development
|
34
|
-
version_requirements: *id001
|
35
|
-
description: Install this gem and require 'jtds' within JRuby to load the driver.
|
12
|
+
date: 2013-01-23 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: Install this gem `require 'jdbc/jtds'` and invoke `Jdbc::JDTS.load_driver` within JRuby to load the driver.
|
36
15
|
email: nick@nicksieger.com, ola.bini@gmail.com
|
37
16
|
executables: []
|
38
|
-
|
39
17
|
extensions: []
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
- README.txt
|
49
|
-
- LICENSE.txt
|
50
|
-
- lib/jtds-1.2.5.jar
|
51
|
-
- lib/jdbc/jtds.rb
|
52
|
-
has_rdoc: true
|
53
|
-
homepage: http://jruby-extras.rubyforge.org/ActiveRecord-JDBC
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- Rakefile
|
21
|
+
- README.md
|
22
|
+
- LICENSE.txt
|
23
|
+
- lib/jtds-1.2.7.jar
|
24
|
+
- lib/jdbc/jtds.rb
|
25
|
+
homepage: https://github.com/jruby/activerecord-jdbc-adapter
|
54
26
|
licenses: []
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
27
|
+
post_install_message:
|
28
|
+
rdoc_options:
|
29
|
+
- "--main"
|
30
|
+
- README.md
|
31
|
+
require_paths:
|
32
|
+
- lib
|
33
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
segments:
|
38
|
+
- 0
|
39
|
+
hash: 2
|
40
|
+
version: !binary |-
|
41
|
+
MA==
|
63
42
|
none: false
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
43
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: !binary |-
|
48
|
+
MA==
|
71
49
|
none: false
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
version: "0"
|
78
50
|
requirements: []
|
79
|
-
|
80
51
|
rubyforge_project: jruby-extras
|
81
|
-
rubygems_version: 1.
|
82
|
-
signing_key:
|
52
|
+
rubygems_version: 1.8.24
|
53
|
+
signing_key:
|
83
54
|
specification_version: 3
|
84
|
-
summary: jTDS JDBC driver for
|
55
|
+
summary: jTDS JDBC driver for JRuby and JTDS/ActiveRecord-JDBC (activerecord-jdbcmssql-adapter).
|
85
56
|
test_files: []
|
86
|
-
|
data/Manifest.txt
DELETED
data/README.txt
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
= jdbc-jtds
|
2
|
-
|
3
|
-
* http://jruby-extras.rubyforge.org/activerecord-jdbc-adapter/
|
4
|
-
|
5
|
-
== DESCRIPTION:
|
6
|
-
|
7
|
-
This is a jTDS JDBC driver gem for JRuby.
|
8
|
-
|
9
|
-
Use
|
10
|
-
|
11
|
-
require 'jdbc/jtds'
|
12
|
-
|
13
|
-
to make the driver accessible to JDBC and ActiveRecord code running in JRuby.
|
14
|
-
|
data/lib/jtds-1.2.5.jar
DELETED
Binary file
|