jdbc-jtds 1.2.5-java

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 jTDS driver for Java. jTDS is made available under the terms of the GNU Lesser General Public License, see http://jtds.sourceforge.net/license.html for more 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/jtds-1.2.5.jar
7
+ lib/jdbc/jtds.rb
data/README.txt ADDED
@@ -0,0 +1,14 @@
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/Rakefile ADDED
@@ -0,0 +1,29 @@
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/jtds"
11
+ begin
12
+ require 'hoe'
13
+ Hoe.plugin :gemcutter
14
+ Hoe.spec("jdbc-jtds") do |p|
15
+ p.version = Jdbc::JTDS::VERSION
16
+ p.spec_extras[:platform] = Gem::Platform.new("java")
17
+ p.rubyforge_name = "jruby-extras"
18
+ p.url = "http://jruby-extras.rubyforge.org/ActiveRecord-JDBC"
19
+ p.author = "Nick Sieger, Ola Bini and JRuby contributors"
20
+ p.email = "nick@nicksieger.com, ola.bini@gmail.com"
21
+ p.summary = "jTDS JDBC driver for Java and jTDS/ActiveRecord-JDBC."
22
+ p.changes = "Updated to jTDS version #{Jdbc::JTDS::VERSION}."
23
+ p.description = "Install this gem and require 'jtds' within JRuby to load the driver."
24
+ end.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
25
+ rescue LoadError
26
+ puts "You really need Hoe installed to be able to package this gem"
27
+ rescue => e
28
+ puts "ignoring error while loading hoe: #{e.to_s}"
29
+ end
data/lib/jdbc/jtds.rb ADDED
@@ -0,0 +1,10 @@
1
+ module Jdbc
2
+ module JTDS
3
+ VERSION = "1.2.5"
4
+ end
5
+ 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
Binary file
metadata ADDED
@@ -0,0 +1,70 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jdbc-jtds
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 1
7
+ - 2
8
+ - 5
9
+ version: 1.2.5
10
+ platform: java
11
+ authors:
12
+ - Nick Sieger, Ola Bini and JRuby contributors
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-04-22 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: Install this gem and require 'jtds' within JRuby to load the driver.
22
+ email: nick@nicksieger.com, ola.bini@gmail.com
23
+ executables: []
24
+
25
+ extensions: []
26
+
27
+ extra_rdoc_files:
28
+ - Manifest.txt
29
+ - README.txt
30
+ - LICENSE.txt
31
+ files:
32
+ - Manifest.txt
33
+ - Rakefile
34
+ - README.txt
35
+ - LICENSE.txt
36
+ - lib/jtds-1.2.5.jar
37
+ - lib/jdbc/jtds.rb
38
+ has_rdoc: true
39
+ homepage: http://jruby-extras.rubyforge.org/ActiveRecord-JDBC
40
+ licenses: []
41
+
42
+ post_install_message:
43
+ rdoc_options:
44
+ - --main
45
+ - README.txt
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ segments:
53
+ - 0
54
+ version: "0"
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ segments:
60
+ - 0
61
+ version: "0"
62
+ requirements: []
63
+
64
+ rubyforge_project: jruby-extras
65
+ rubygems_version: 1.3.6
66
+ signing_key:
67
+ specification_version: 3
68
+ summary: jTDS JDBC driver for Java and jTDS/ActiveRecord-JDBC.
69
+ test_files: []
70
+