jdbc-postgres 9.4.1206 → 9.4.1210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 1ba80087b5444d211781ce2ba42d28aae4db64b1
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: f906650895e5d1b1e4487e5ecd561b1ba0b53a1a
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: cdd10164f21a661ffa3777355143a610b2291bde0c51d7b1a09cca8a4ee7f1a86defcddf1d843204cc01948a13bc51ff6d55116aa062ff1ad79801673e630a1e
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 6f981fde5b0b176c496fed5b1397eb79fd738d34e5613a33b858ad5f0c4ac07b3961bc048dd473a7d0a6523010ab473eec7094322fe64ed85e752087f9a4e672
         
     | 
    
        data/lib/jdbc/postgres.rb
    CHANGED
    
    | 
         @@ -5,18 +5,16 @@ module Jdbc 
     | 
|
| 
       5 
5 
     | 
    
         
             
              module Postgres
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
                def self.driver_jar
         
     | 
| 
       8 
     | 
    
         
            -
                   
     | 
| 
       9 
     | 
    
         
            -
                   
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
                   
     | 
| 
       12 
     | 
    
         
            -
                  version_jdbc_version << jdbc_v
         
     | 
| 
       13 
     | 
    
         
            -
                  'postgresql-%s.%s-%s-jdbc%d.jar' % version_jdbc_version
         
     | 
| 
      
 8 
     | 
    
         
            +
                  version_jre_version = DRIVER_VERSION.split( '.' )
         
     | 
| 
      
 9 
     | 
    
         
            +
                  version = jre_version
         
     | 
| 
      
 10 
     | 
    
         
            +
                  version_jre_version << (version ? ".jre#{version}" : '')
         
     | 
| 
      
 11 
     | 
    
         
            +
                  'postgresql-%s.%s.%s%s.jar' % version_jre_version
         
     | 
| 
       14 
12 
     | 
    
         
             
                end
         
     | 
| 
       15 
13 
     | 
    
         | 
| 
       16 
14 
     | 
    
         
             
                def self.load_driver(method = :load)
         
     | 
| 
       17 
15 
     | 
    
         
             
                  send method, driver_jar
         
     | 
| 
       18 
16 
     | 
    
         
             
                rescue LoadError => e
         
     | 
| 
       19 
     | 
    
         
            -
                  if  
     | 
| 
      
 17 
     | 
    
         
            +
                  if (version = jre_version) && version < 6
         
     | 
| 
       20 
18 
     | 
    
         
             
                    warn "failed to load postgresql (driver) jar, please note that we no longer " <<
         
     | 
| 
       21 
19 
     | 
    
         
             
                    "include JDBC 3.x support, on Java < 6 please use gem 'jdbc-postgres', '~> 9.2'"
         
     | 
| 
       22 
20 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -27,19 +25,19 @@ module Jdbc 
     | 
|
| 
       27 
25 
     | 
    
         
             
                  'org.postgresql.Driver'
         
     | 
| 
       28 
26 
     | 
    
         
             
                end
         
     | 
| 
       29 
27 
     | 
    
         | 
| 
       30 
     | 
    
         
            -
                def self. 
     | 
| 
      
 28 
     | 
    
         
            +
                def self.jre_version
         
     | 
| 
       31 
29 
     | 
    
         
             
                  version = ENV_JAVA[ 'java.specification.version' ]
         
     | 
| 
       32 
30 
     | 
    
         
             
                  version = version.split('.').last.to_i # '1.7' => 7
         
     | 
| 
       33 
31 
     | 
    
         
             
                  if version < 6
         
     | 
| 
       34 
     | 
    
         
            -
                     
     | 
| 
      
 32 
     | 
    
         
            +
                    5 # not supported
         
     | 
| 
       35 
33 
     | 
    
         
             
                  elsif version == 6
         
     | 
| 
       36 
     | 
    
         
            -
                     
     | 
| 
       37 
     | 
    
         
            -
                  else 
     | 
| 
       38 
     | 
    
         
            -
                    4 
     | 
| 
      
 34 
     | 
    
         
            +
                    6
         
     | 
| 
      
 35 
     | 
    
         
            +
                  else
         
     | 
| 
      
 36 
     | 
    
         
            +
                    7 # NOTE: for 9.4 we only include 6/7 jars
         
     | 
| 
       39 
37 
     | 
    
         
             
                  end
         
     | 
| 
       40 
38 
     | 
    
         
             
                end
         
     | 
| 
       41 
39 
     | 
    
         | 
| 
       42 
     | 
    
         
            -
                class << self; private : 
     | 
| 
      
 40 
     | 
    
         
            +
                class << self; private :jre_version end
         
     | 
| 
       43 
41 
     | 
    
         | 
| 
       44 
42 
     | 
    
         
             
                if defined?(JRUBY_VERSION) && # enable backwards-compat behavior :
         
     | 
| 
       45 
43 
     | 
    
         
             
                  ( Java::JavaLang::Boolean.get_boolean("jdbc.driver.autoload") ||
         
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: jdbc-postgres
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 9.4. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 9.4.1210
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Nick Sieger, Ola Bini, Karol Bucek and JRuby contributors
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2017-11-09 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       13 
13 
     | 
    
         
             
            description: Install this gem `require 'jdbc/postgres'` and invoke `Jdbc::Postgres.load_driver` within JRuby to load the driver.
         
     | 
| 
       14 
14 
     | 
    
         
             
            email:
         
     | 
| 
         @@ -28,8 +28,8 @@ files: 
     | 
|
| 
       28 
28 
     | 
    
         
             
            - lib/jdbc/postgres/version.rb
         
     | 
| 
       29 
29 
     | 
    
         
             
            - lib/jdbc/postgresql.rb
         
     | 
| 
       30 
30 
     | 
    
         
             
            - lib/jdbc/postgresql/version.rb
         
     | 
| 
       31 
     | 
    
         
            -
            - lib/postgresql-9.4 
     | 
| 
       32 
     | 
    
         
            -
            - lib/postgresql-9.4 
     | 
| 
      
 31 
     | 
    
         
            +
            - lib/postgresql-9.4.1210.jre6.jar
         
     | 
| 
      
 32 
     | 
    
         
            +
            - lib/postgresql-9.4.1210.jre7.jar
         
     | 
| 
       33 
33 
     | 
    
         
             
            homepage: http://github.com/jruby/activerecord-jdbc-adapter/tree/master/jdbc-postgres
         
     | 
| 
       34 
34 
     | 
    
         
             
            licenses:
         
     | 
| 
       35 
35 
     | 
    
         
             
            - BSD
         
     | 
| 
         @@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       52 
52 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       53 
53 
     | 
    
         
             
            requirements: []
         
     | 
| 
       54 
54 
     | 
    
         
             
            rubyforge_project:
         
     | 
| 
       55 
     | 
    
         
            -
            rubygems_version: 2. 
     | 
| 
      
 55 
     | 
    
         
            +
            rubygems_version: 2.6.12
         
     | 
| 
       56 
56 
     | 
    
         
             
            signing_key:
         
     | 
| 
       57 
57 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       58 
58 
     | 
    
         
             
            summary: JDBC driver for JRuby and PostgreSQL (used by ActiveRecord-JDBC).
         
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     |