jdbc-mssql 0.4.0-java → 0.9.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +22 -0
- data/lib/jdbc/mssql.rb +24 -10
- data/lib/jdbc/mssql/version.rb +1 -3
- data/lib/mssql-jdbc-8.4.1.jre11.jar +0 -0
- data/lib/mssql-jdbc-8.4.1.jre14.jar +0 -0
- data/lib/mssql-jdbc-8.4.1.jre8.jar +0 -0
- metadata +21 -33
- data/.gitignore +0 -11
- data/.rspec +0 -3
- data/.travis.yml +0 -5
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -6
- data/Gemfile.lock +0 -35
- data/Rakefile +0 -6
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/jdbc-mssql.gemspec +0 -28
- 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.jre7.jar +0 -0
- data/lib/mssql-jdbc-6.4.0.jre8.jar +0 -0
- data/lib/mssql-jdbc-6.4.0.jre9.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 54ba0b6312f2e3f016bb1118ffae21d28160e842b93a4bd21fc88717f7d58cb4
|
4
|
+
data.tar.gz: 28a7f38ede7fb495ff55ba50605d84444c2beb6bb5765db1606e6c8213a235e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 001bcafbdd676d5928b11da12fef64595248e9cf134f621eeb2a7c5f716d61e4f9f6d62ad429a5e9b153360c41a73af0ac8f216dab7d621abc9cbc959172f25b
|
7
|
+
data.tar.gz: 33d33fb7e858b6441ef571d1ec93061a4397f549128bc4b7c791ef84ac9543972e4f14a761616cdbdfaf694fd6d9b981a3c8167e2a3ad937a1ebabae6c3b3b77
|
data/README.md
CHANGED
@@ -48,6 +48,28 @@ end
|
|
48
48
|
|
49
49
|
For more details follow Microsoft's documentation and JRuby conventions to call java methods.
|
50
50
|
|
51
|
+
## Supported Java versions
|
52
|
+
|
53
|
+
For supported Java version use Gem versions as per below table:
|
54
|
+
|
55
|
+
| Java version | Gem version | used driver |
|
56
|
+
| ------------ | ------------- | ----------- |
|
57
|
+
| 8 | 0.8.0 | 8.2.1 |
|
58
|
+
| 11 | 0.9.0 | 8.4.1 |
|
59
|
+
|
60
|
+
## Other Java versions
|
61
|
+
|
62
|
+
For other Java version use Gem versions as per below table:
|
63
|
+
|
64
|
+
| Java version | Gem version | used driver |
|
65
|
+
| ------------ | ------------- | ----------- |
|
66
|
+
| 7 | 0.6.0 | 6.4.0 |
|
67
|
+
| 9 | 0.6.0 | 6.4.0 |
|
68
|
+
| 10 | 0.6.0 | 7.0.0 |
|
69
|
+
| 12 | 0.7.0 | 7.4.1 |
|
70
|
+
| 13 | 0.8.0 | 8.2.1 |
|
71
|
+
| 14 | 0.9.0 | 8.4.1 |
|
72
|
+
|
51
73
|
## Development
|
52
74
|
|
53
75
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/jdbc/mssql.rb
CHANGED
@@ -4,26 +4,40 @@ 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.8' => 8,
|
9
|
+
'11' => 11,
|
10
|
+
'14' => 14
|
11
|
+
}.freeze
|
12
|
+
|
13
|
+
JAVA_DRIVER_VERSIONS = {
|
14
|
+
'1.8' => '8.4.1',
|
15
|
+
'11' => '8.4.1',
|
16
|
+
'14' => '8.4.1'
|
17
|
+
}.freeze
|
18
|
+
|
19
|
+
def self.java_specification_version
|
20
|
+
ENV_JAVA['java.specification.version']
|
21
|
+
end
|
13
22
|
|
14
|
-
|
23
|
+
def self.jre_version
|
24
|
+
JAVA_VERSIONS[java_specification_version]
|
25
|
+
end
|
15
26
|
|
16
|
-
|
27
|
+
def self.driver_version
|
28
|
+
JAVA_DRIVER_VERSIONS[java_specification_version]
|
17
29
|
end
|
18
30
|
|
19
31
|
def self.jar_file
|
20
|
-
"mssql-jdbc-#{
|
32
|
+
"mssql-jdbc-#{driver_version}.jre#{jre_version}.jar"
|
21
33
|
end
|
22
34
|
|
23
35
|
def self.load_driver
|
24
36
|
warn 'loading JDBC driver on require "jdbc/mssql"' if $VERBOSE
|
25
37
|
|
26
|
-
|
38
|
+
if jre_version.nil? || driver_version.nil?
|
39
|
+
raise 'No JDBC driver for your java version'
|
40
|
+
end
|
27
41
|
|
28
42
|
require jar_file
|
29
43
|
end
|
data/lib/jdbc/mssql/version.rb
CHANGED
Binary file
|
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.9.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:
|
11
|
+
date: 2020-11-10 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
|
-
version:
|
20
|
-
|
18
|
+
version: 2.1.4
|
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
|
-
version:
|
26
|
+
version: 2.1.4
|
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
|
-
version: '
|
34
|
-
|
32
|
+
version: '12.0'
|
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
|
-
version: '
|
40
|
+
version: '12.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
|
- - "~>"
|
@@ -60,30 +60,18 @@ executables: []
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
-
- ".gitignore"
|
64
|
-
- ".rspec"
|
65
|
-
- ".travis.yml"
|
66
|
-
- CODE_OF_CONDUCT.md
|
67
|
-
- Gemfile
|
68
|
-
- Gemfile.lock
|
69
63
|
- LICENSE.txt
|
70
64
|
- README.md
|
71
|
-
- Rakefile
|
72
|
-
- bin/console
|
73
|
-
- bin/setup
|
74
|
-
- jdbc-mssql.gemspec
|
75
65
|
- lib/jdbc/mssql.rb
|
76
66
|
- lib/jdbc/mssql/version.rb
|
77
|
-
- lib/mssql-jdbc-
|
78
|
-
- lib/mssql-jdbc-
|
79
|
-
- lib/mssql-jdbc-
|
80
|
-
- lib/mssql-jdbc-6.4.0.jre8.jar
|
81
|
-
- lib/mssql-jdbc-6.4.0.jre9.jar
|
67
|
+
- lib/mssql-jdbc-8.4.1.jre11.jar
|
68
|
+
- lib/mssql-jdbc-8.4.1.jre14.jar
|
69
|
+
- lib/mssql-jdbc-8.4.1.jre8.jar
|
82
70
|
homepage: https://github.com/JesseChavez/jdbc-mssql
|
83
71
|
licenses:
|
84
72
|
- MIT
|
85
73
|
metadata: {}
|
86
|
-
post_install_message:
|
74
|
+
post_install_message:
|
87
75
|
rdoc_options: []
|
88
76
|
require_paths:
|
89
77
|
- lib
|
@@ -98,9 +86,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
86
|
- !ruby/object:Gem::Version
|
99
87
|
version: '0'
|
100
88
|
requirements: []
|
101
|
-
rubyforge_project:
|
102
|
-
rubygems_version: 2.
|
103
|
-
signing_key:
|
89
|
+
rubyforge_project:
|
90
|
+
rubygems_version: 2.7.10
|
91
|
+
signing_key:
|
104
92
|
specification_version: 4
|
105
|
-
summary: JDBC driver for
|
93
|
+
summary: JDBC driver for JRuby and SQL Server / Azure SQL
|
106
94
|
test_files: []
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/.travis.yml
DELETED
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at jesse.chavez.r@gmail.com. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: http://contributor-covenant.org
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
jdbc-mssql (0.3.0-java)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
diff-lcs (1.3)
|
10
|
-
rake (10.5.0)
|
11
|
-
rspec (3.7.0)
|
12
|
-
rspec-core (~> 3.7.0)
|
13
|
-
rspec-expectations (~> 3.7.0)
|
14
|
-
rspec-mocks (~> 3.7.0)
|
15
|
-
rspec-core (3.7.1)
|
16
|
-
rspec-support (~> 3.7.0)
|
17
|
-
rspec-expectations (3.7.0)
|
18
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
-
rspec-support (~> 3.7.0)
|
20
|
-
rspec-mocks (3.7.0)
|
21
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
-
rspec-support (~> 3.7.0)
|
23
|
-
rspec-support (3.7.1)
|
24
|
-
|
25
|
-
PLATFORMS
|
26
|
-
java
|
27
|
-
|
28
|
-
DEPENDENCIES
|
29
|
-
bundler (~> 1.16)
|
30
|
-
jdbc-mssql!
|
31
|
-
rake (~> 10.0)
|
32
|
-
rspec (~> 3.0)
|
33
|
-
|
34
|
-
BUNDLED WITH
|
35
|
-
1.16.1
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "jdbc/mssql"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/jdbc-mssql.gemspec
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'jdbc/mssql/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = 'jdbc-mssql'
|
8
|
-
spec.version = Jdbc::Mssql::VERSION
|
9
|
-
spec.authors = ['Jesse Chavez']
|
10
|
-
spec.email = ['jesse.chavez.r@gmail.com']
|
11
|
-
|
12
|
-
spec.summary = %q{JDBC driver for Jruby and SQL Server}
|
13
|
-
spec.description = %q{Loads the Microsoft SQL Server JDBC driver. Install this gem and require 'jdbc/mssql' within JRuby}
|
14
|
-
spec.homepage = 'https://github.com/JesseChavez/jdbc-mssql'
|
15
|
-
spec.license = 'MIT'
|
16
|
-
spec.platform = 'java'
|
17
|
-
|
18
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
|
-
f.match(%r{^(test|spec|features)/})
|
20
|
-
end
|
21
|
-
spec.bindir = "exe"
|
22
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
|
-
spec.require_paths = ['lib']
|
24
|
-
|
25
|
-
spec.add_development_dependency 'bundler', '~> 1.16'
|
26
|
-
spec.add_development_dependency 'rake', '~> 10.0'
|
27
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
28
|
-
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|