jdbc-pgsql 0.1.0-java → 0.2.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
  SHA256:
3
- metadata.gz: 3c058cd4f95bd8883a59e87b0ce6592b758fb28e20b69ced0c22214f12bd1b31
4
- data.tar.gz: a34cabe5f179d602758734b220ade56a741e1d82f1a3b848e77a6f9537ec4d91
3
+ metadata.gz: 4ceb68683b78ff3a688c04444b53a2f8073acfe8f619f8d20540ffeaffab2713
4
+ data.tar.gz: 4ed3bfe7695e477bb6bd54da7fa3b23ebc4408a2feb41f50a9a7b94bc1482382
5
5
  SHA512:
6
- metadata.gz: 0a76e6aa7a10d83716a7ee65c13c485e21ef106ab25bd976ce6e837e0a6c3a9805bf60177b8e855aeac1153440ac96617d58c13715249a12f141cb97175ab40d
7
- data.tar.gz: fd57548d2b2dc8ef8a2731ed6fc458e4fa1b8a9a7478162dda4767c40f9de34b68aaf6eabe979ab78edb0119756146e46b1e6c8a2ecf4c082c63f944ac637f5e
6
+ metadata.gz: 176da80def410e89820fde70ee8dca2a90c2c80f88905c2823743028691d65927ab7ebcc0275407514cae395826c3ab847a7224f613a52635f90c82b9425ff84
7
+ data.tar.gz: 8d7cca7ed0e42455d447e7be80b6c0758311b1c58681472ddec5bdd5b37322e4024052fcaf0138f4f55423bd1678dfac16604a11fc56f1fe908fff51e3123636
data/README.md CHANGED
@@ -54,18 +54,17 @@ For supported Java version use Gem versions as per below table:
54
54
 
55
55
  | Java version | Gem version | used driver |
56
56
  | ------------ | ------------- | ----------- |
57
- | 8 | 0.1.0 | 42.2.5 |
58
- | 11 | 0.1.0 | 42.2.5 |
57
+ | 8 | 0.2.0 | 42.2.18 |
58
+ | 11 | 0.2.0 | 42.2.18 |
59
59
 
60
60
  ## Other Java versions
61
61
 
62
62
  For other Java version use Gem versions as per below table:
63
63
 
64
- | Java version | Gem version | used driver |
65
- | ------------ | ------------- | ----------- |
66
- | 7 | 0.1.0 | 42.2.5 |
67
- | 9 | 0.1.0 | 42.2.5 |
68
- | 10 | 0.1.0 | 42.2.5 |
64
+ | Java version | Gem version | used driver |
65
+ |----------------|---------------|-------------|
66
+ | 9,10 | 0.2.0 | 42.2.18 |
67
+ | 12,13,14,15 | 0.2.0 | 42.2.18 |
69
68
 
70
69
  ## Development
71
70
 
@@ -83,4 +82,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
83
82
 
84
83
  ## Code of Conduct
85
84
 
86
- Everyone interacting in the Jdbc::Mssql project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/jdbc-pgsql/blob/master/CODE_OF_CONDUCT.md).
85
+ Everyone interacting in the Jdbc::Pgsql project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/jdbc-pgsql/blob/master/CODE_OF_CONDUCT.md).
@@ -4,40 +4,30 @@ require 'jdbc/pgsql/version'
4
4
 
5
5
  module Jdbc
6
6
  module Pgsql
7
- JAVA_VERSIONS = {
8
- '1.8' => 8,
9
- '9' => 9,
10
- '10' => 9,
11
- '11' => 11
12
- }.freeze
13
-
14
- JAVA_DRIVER_VERSIONS = {
15
- '1.8' => '42.2.5',
16
- '9' => '42.2.5',
17
- '10' => '42.2.5',
18
- '11' => '42.2.5'
19
- }.freeze
20
-
21
7
  def self.java_specification_version
22
8
  ENV_JAVA['java.specification.version']
23
9
  end
24
10
 
25
11
  def self.jre_version
26
- JAVA_VERSIONS[java_specification_version]
12
+ java_specification_version.split('.').last.to_i
27
13
  end
28
14
 
29
15
  def self.driver_version
30
- JAVA_DRIVER_VERSIONS[java_specification_version]
16
+ '42.2.18'
31
17
  end
32
18
 
33
19
  def self.jar_file
34
20
  "postgresql-#{driver_version}.jar"
35
21
  end
36
22
 
23
+ def self.driver_name
24
+ 'org.postgresql.Driver'
25
+ end
26
+
37
27
  def self.load_driver
38
28
  warn 'loading JDBC driver on require "jdbc/pgsql"' if $VERBOSE
39
29
 
40
- raise 'No JDBC driver for your java version' if jre_version.nil? || driver_version.nil?
30
+ raise 'No JDBC driver for your java version' unless jre_version > 7
41
31
 
42
32
  require jar_file
43
33
  end
@@ -1,5 +1,5 @@
1
1
  module Jdbc
2
2
  module Pgsql
3
- VERSION = '0.1.0'.freeze
3
+ VERSION = '0.2.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jdbc-pgsql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: java
6
6
  authors:
7
7
  - Jesse Chavez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-28 00:00:00.000000000 Z
11
+ date: 2020-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -17,8 +17,8 @@ dependencies:
17
17
  - !ruby/object:Gem::Version
18
18
  version: 2.1.4
19
19
  name: bundler
20
- prerelease: false
21
20
  type: :development
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
@@ -31,8 +31,8 @@ dependencies:
31
31
  - !ruby/object:Gem::Version
32
32
  version: '12.0'
33
33
  name: rake
34
- prerelease: false
35
34
  type: :development
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
@@ -45,8 +45,8 @@ dependencies:
45
45
  - !ruby/object:Gem::Version
46
46
  version: '3.0'
47
47
  name: rspec
48
- prerelease: false
49
48
  type: :development
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
@@ -64,7 +64,7 @@ files:
64
64
  - README.md
65
65
  - lib/jdbc/pgsql.rb
66
66
  - lib/jdbc/pgsql/version.rb
67
- - lib/postgresql-42.2.5.jar
67
+ - lib/postgresql-42.2.18.jar
68
68
  homepage: https://github.com/JesseChavez/jdbc-pgsql
69
69
  licenses:
70
70
  - MIT
@@ -84,8 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubyforge_project:
88
- rubygems_version: 2.7.10
87
+ rubygems_version: 3.0.6
89
88
  signing_key:
90
89
  specification_version: 4
91
90
  summary: JDBC driver for JRuby and PostgreSQL
Binary file