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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f1905e680bc289554e8ee1aa9ed54c13cc5717e
4
- data.tar.gz: bfb4fe98727e1f523aa613a7d5fb15d65ccb3f58
3
+ metadata.gz: 2be4956e64feaf7c3943ea69610463bbb6858253
4
+ data.tar.gz: fe476ecc04c85fcfc12da68d8042810838424cde
5
5
  SHA512:
6
- metadata.gz: b7c622e5c256d25bf083e89b8df84916f9046176b8e395ef1d6e89be1414181fb8b8a604347d671b815124591e532e54493dfab4b47cf27fa6b4f0d81c39393e
7
- data.tar.gz: c4eaa24b4d0ab33d6a41dc80e46a82a154ee1c7fd817eca4d8497047049ed1effc1a9298e81ae85c922cd0d071f7b7a08d0089a12afe794f4f76d2ddd5c0429c
6
+ metadata.gz: 10d37f102e327b9faa90c1186a1cb3c808fda5e295620fdadf66ac81663e37c08c7c78c81031137062619a406277d8f72ac95e9e67c7e2add3a5c791e56c7fd7
7
+ data.tar.gz: 600d89ba8c7558253ea0fe0aab0358d522ef8bac686e7439f87acc2fcc55179a03ba47fff8984708ccb423bed724f2c10585489aae57a860dad5b157d33b756b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jdbc-mssql (0.3.0-java)
4
+ jdbc-mssql (0.5.0-java)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -32,4 +32,4 @@ DEPENDENCIES
32
32
  rspec (~> 3.0)
33
33
 
34
34
  BUNDLED WITH
35
- 1.16.1
35
+ 1.17.1
@@ -4,26 +4,42 @@ require 'jdbc/mssql/version'
4
4
 
5
5
  module Jdbc
6
6
  module Mssql
7
- def self.jre_version
8
- version = ENV_JAVA['java.specification.version']
9
-
10
- return 7 if version == '1.7'
11
-
12
- return 8 if version == '1.8'
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
- return 9 if version == '9'
25
+ def self.jre_version
26
+ JAVA_VERSIONS[java_specification_version]
27
+ end
15
28
 
16
- nil
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-#{DRIVER_VERSION}.jre#{jre_version}.jar"
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
- raise 'No JDBC driver for your java version' if jre_version.nil?
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
@@ -1,7 +1,5 @@
1
1
  module Jdbc
2
2
  module Mssql
3
- VERSION = '0.4.0'
4
-
5
- DRIVER_VERSION = '6.4.0'
3
+ VERSION = '0.5.0'
6
4
  end
7
5
  end
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.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-02 00:00:00.000000000 Z
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
- type: :development
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
- type: :development
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
- type: :development
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.5.2.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: []