jdbc-mssql 0.4.0-java → 0.5.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/jdbc/mssql.rb +26 -10
- data/lib/jdbc/mssql/version.rb +1 -3
- data/lib/mssql-jdbc-7.0.0.jre10.jar +0 -0
- data/lib/mssql-jdbc-7.0.0.jre8.jar +0 -0
- metadata +15 -16
- data/lib/mssql-jdbc-6.2.2.jre7.jar +0 -0
- data/lib/mssql-jdbc-6.2.2.jre8.jar +0 -0
- data/lib/mssql-jdbc-6.4.0.jre8.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2be4956e64feaf7c3943ea69610463bbb6858253
|
4
|
+
data.tar.gz: fe476ecc04c85fcfc12da68d8042810838424cde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10d37f102e327b9faa90c1186a1cb3c808fda5e295620fdadf66ac81663e37c08c7c78c81031137062619a406277d8f72ac95e9e67c7e2add3a5c791e56c7fd7
|
7
|
+
data.tar.gz: 600d89ba8c7558253ea0fe0aab0358d522ef8bac686e7439f87acc2fcc55179a03ba47fff8984708ccb423bed724f2c10585489aae57a860dad5b157d33b756b
|
data/Gemfile.lock
CHANGED
data/lib/jdbc/mssql.rb
CHANGED
@@ -4,26 +4,42 @@ require 'jdbc/mssql/version'
|
|
4
4
|
|
5
5
|
module Jdbc
|
6
6
|
module Mssql
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
JAVA_VERSIONS = {
|
8
|
+
'1.7' => 7,
|
9
|
+
'1.8' => 8,
|
10
|
+
'9' => 9,
|
11
|
+
'10' => 10
|
12
|
+
}.freeze
|
13
|
+
|
14
|
+
JAVA_DRIVER_VERSIONS = {
|
15
|
+
'1.7' => '6.4.0',
|
16
|
+
'1.8' => '7.0.0',
|
17
|
+
'9' => '6.4.0',
|
18
|
+
'10' => '7.0.0'
|
19
|
+
}.freeze
|
20
|
+
|
21
|
+
def self.java_specification_version
|
22
|
+
ENV_JAVA['java.specification.version']
|
23
|
+
end
|
13
24
|
|
14
|
-
|
25
|
+
def self.jre_version
|
26
|
+
JAVA_VERSIONS[java_specification_version]
|
27
|
+
end
|
15
28
|
|
16
|
-
|
29
|
+
def self.driver_version
|
30
|
+
JAVA_DRIVER_VERSIONS[java_specification_version]
|
17
31
|
end
|
18
32
|
|
19
33
|
def self.jar_file
|
20
|
-
"mssql-jdbc-#{
|
34
|
+
"mssql-jdbc-#{driver_version}.jre#{jre_version}.jar"
|
21
35
|
end
|
22
36
|
|
23
37
|
def self.load_driver
|
24
38
|
warn 'loading JDBC driver on require "jdbc/mssql"' if $VERBOSE
|
25
39
|
|
26
|
-
|
40
|
+
if jre_version.nil? || driver_version.nil?
|
41
|
+
raise 'No JDBC driver for your java version'
|
42
|
+
end
|
27
43
|
|
28
44
|
require jar_file
|
29
45
|
end
|
data/lib/jdbc/mssql/version.rb
CHANGED
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,52 +1,52 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jdbc-mssql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Jesse Chavez
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
18
|
version: '1.16'
|
20
|
-
|
19
|
+
name: bundler
|
21
20
|
prerelease: false
|
21
|
+
type: :development
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.16'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
30
29
|
requirements:
|
31
30
|
- - "~>"
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: '10.0'
|
34
|
-
|
33
|
+
name: rake
|
35
34
|
prerelease: false
|
35
|
+
type: :development
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: rspec
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
44
43
|
requirements:
|
45
44
|
- - "~>"
|
46
45
|
- !ruby/object:Gem::Version
|
47
46
|
version: '3.0'
|
48
|
-
|
47
|
+
name: rspec
|
49
48
|
prerelease: false
|
49
|
+
type: :development
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
@@ -74,16 +74,15 @@ files:
|
|
74
74
|
- jdbc-mssql.gemspec
|
75
75
|
- lib/jdbc/mssql.rb
|
76
76
|
- lib/jdbc/mssql/version.rb
|
77
|
-
- lib/mssql-jdbc-6.2.2.jre7.jar
|
78
|
-
- lib/mssql-jdbc-6.2.2.jre8.jar
|
79
77
|
- lib/mssql-jdbc-6.4.0.jre7.jar
|
80
|
-
- lib/mssql-jdbc-6.4.0.jre8.jar
|
81
78
|
- lib/mssql-jdbc-6.4.0.jre9.jar
|
79
|
+
- lib/mssql-jdbc-7.0.0.jre10.jar
|
80
|
+
- lib/mssql-jdbc-7.0.0.jre8.jar
|
82
81
|
homepage: https://github.com/JesseChavez/jdbc-mssql
|
83
82
|
licenses:
|
84
83
|
- MIT
|
85
84
|
metadata: {}
|
86
|
-
post_install_message:
|
85
|
+
post_install_message:
|
87
86
|
rdoc_options: []
|
88
87
|
require_paths:
|
89
88
|
- lib
|
@@ -98,9 +97,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
97
|
- !ruby/object:Gem::Version
|
99
98
|
version: '0'
|
100
99
|
requirements: []
|
101
|
-
rubyforge_project:
|
102
|
-
rubygems_version: 2.
|
103
|
-
signing_key:
|
100
|
+
rubyforge_project:
|
101
|
+
rubygems_version: 2.6.14.1
|
102
|
+
signing_key:
|
104
103
|
specification_version: 4
|
105
104
|
summary: JDBC driver for Jruby and SQL Server
|
106
105
|
test_files: []
|
Binary file
|
Binary file
|
Binary file
|