jdbc-pgsql 0.1.0-java → 42.5.1-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: 529dd04c1d61e428388cb02c58b422dc6d0bf61702b1dda04a6af16bc9046317
4
+ data.tar.gz: 7965add6d41c73603ddd496b380e5e52cf06b1bdd0baeb91259143dbd5592a5c
5
5
  SHA512:
6
- metadata.gz: 0a76e6aa7a10d83716a7ee65c13c485e21ef106ab25bd976ce6e837e0a6c3a9805bf60177b8e855aeac1153440ac96617d58c13715249a12f141cb97175ab40d
7
- data.tar.gz: fd57548d2b2dc8ef8a2731ed6fc458e4fa1b8a9a7478162dda4767c40f9de34b68aaf6eabe979ab78edb0119756146e46b1e6c8a2ecf4c082c63f944ac637f5e
6
+ metadata.gz: 46bb74c451634a5e9de6ab675d1569f163744e5c89d915c6c92c8cc4673d5f42da0f5f9dd30da2ae400fe54e2fbc6eb34e1b751e61863cdaaef5085fe76a21a7
7
+ data.tar.gz: 762e85af784a81fc16c8881e5c0e4bc698a2a520e0ad110f0937207cfdc9730b08f3a008c708b0745fb56a23a6df0319332170a07b0c2ed1f0ade369937238e6
data/README.md CHANGED
@@ -48,24 +48,23 @@ end
48
48
 
49
49
  For more details follow PostgreSQL Jdbc documentation and JRuby conventions to call java methods.
50
50
 
51
- ## Supported Java versions
51
+ ## Supported versions
52
52
 
53
- For supported Java version use Gem versions as per below table:
53
+ For supported Java version is 8 or greater
54
54
 
55
- | Java version | Gem version | used driver |
56
- | ------------ | ------------- | ----------- |
57
- | 8 | 0.1.0 | 42.2.5 |
58
- | 11 | 0.1.0 | 42.2.5 |
59
-
60
- ## Other Java versions
61
55
 
62
- For other Java version use Gem versions as per below table:
56
+ Starting from driver version `42.5.1` gem follows same version as jdbc driver
63
57
 
64
58
  | Java version | Gem version | used driver |
65
59
  | ------------ | ------------- | ----------- |
66
- | 7 | 0.1.0 | 42.2.5 |
67
- | 9 | 0.1.0 | 42.2.5 |
68
- | 10 | 0.1.0 | 42.2.5 |
60
+ | 8+ | 42.5.1 | 42.5.1 |
61
+
62
+ ## Older versions
63
+
64
+ | Java version | Gem version | used driver |
65
+ |----------------|---------------|-------------|
66
+ | 8+ | 0.1.0 | 42.2.5 |
67
+ | 8+ | 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).
@@ -1,5 +1,5 @@
1
1
  module Jdbc
2
2
  module Pgsql
3
- VERSION = '0.1.0'.freeze
3
+ VERSION = '42.5.1'.freeze
4
4
  end
5
5
  end
data/lib/jdbc/pgsql.rb CHANGED
@@ -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.5.1'
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
Binary file
metadata CHANGED
@@ -1,29 +1,15 @@
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: 42.5.1
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: 2022-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- requirement: !ruby/object:Gem::Requirement
15
- requirements:
16
- - - "~>"
17
- - !ruby/object:Gem::Version
18
- version: 2.1.4
19
- name: bundler
20
- prerelease: false
21
- type: :development
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 2.1.4
27
13
  - !ruby/object:Gem::Dependency
28
14
  requirement: !ruby/object:Gem::Requirement
29
15
  requirements:
@@ -64,7 +50,7 @@ files:
64
50
  - README.md
65
51
  - lib/jdbc/pgsql.rb
66
52
  - lib/jdbc/pgsql/version.rb
67
- - lib/postgresql-42.2.5.jar
53
+ - lib/postgresql-42.5.1.jar
68
54
  homepage: https://github.com/JesseChavez/jdbc-pgsql
69
55
  licenses:
70
56
  - MIT
@@ -84,8 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
70
  - !ruby/object:Gem::Version
85
71
  version: '0'
86
72
  requirements: []
87
- rubyforge_project:
88
- rubygems_version: 2.7.10
73
+ rubygems_version: 3.2.29
89
74
  signing_key:
90
75
  specification_version: 4
91
76
  summary: JDBC driver for JRuby and PostgreSQL
Binary file