activerecord-cockroachdb-adapter 0.2.1 → 0.2.2

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: ae35d20561a269a030800b32c38ca1c57ad85dd7
4
- data.tar.gz: 5d05ad3cce87bcbee4b53cda42cf2930667b2f37
3
+ metadata.gz: c39398a79fef87dc0b0cde4cf0558ca1820005a5
4
+ data.tar.gz: e18cf876bd4be4886a9429b55c5a82704c80d957
5
5
  SHA512:
6
- metadata.gz: 4272d3906a4d030f57399ad958a9af366e87c56fe14173ce28f243520fd071704d0a33e57713cd27d024cccadc0eb77edc56025aafba993ae45c762e86d653fe
7
- data.tar.gz: c8e05dc9c4295604816e9259c01ae9cb1ad1d7ad9150fed363b0f5946524c6c2d45ed5389fb9061ccc838dca230c6ec1a16660def94e3a643ccedd2e3256900a
6
+ metadata.gz: 60bcfd758fad44e6f3922896301f2c750d53b310879d525b8f70274838a1639a722614a2b9ad5e6f2db2e9e429b0c2b1f80adfd9d3c69473e00b4c6b8dad481c
7
+ data.tar.gz: 3ef108048920f4708465cebda053a2681420bf77da6b0a7ab036ff6a3f1c42060620d6c53bb21a4df9384e6b4f0ee2f0b0a14fadfef57e884c25bc1fb86d21b9
data/README.md CHANGED
@@ -7,7 +7,7 @@ CockroachDB adapter for ActiveRecord 5. This is a lightweight extension of the P
7
7
  Add this line to your project's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'activerecord-cockroachdb-adapter', '~> 0.2.1'
10
+ gem 'activerecord-cockroachdb-adapter', '~> 0.2.2'
11
11
  ```
12
12
 
13
13
  In `database.yml`, use the following adapter setting:
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "activerecord-cockroachdb-adapter"
7
- spec.version = "0.2.1"
7
+ spec.version = "0.2.2"
8
8
  spec.licenses = ["Apache-2.0"]
9
9
  spec.authors = ["Cockroach Labs"]
10
10
  spec.email = ["cockroach-db@googlegroups.com"]
@@ -14,6 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/cockroachdb/activerecord-cockroachdb-adapter"
15
15
 
16
16
  spec.add_dependency "activerecord", "~> 5.1", ">= 5.1.1"
17
+ spec.add_dependency "pg", ">= 0.20", "< 0.22"
17
18
 
18
19
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
19
20
  # to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -12,12 +12,13 @@ module ActiveRecord
12
12
  conn_params[:user] = conn_params.delete(:username) if conn_params[:username]
13
13
  conn_params[:dbname] = conn_params.delete(:database) if conn_params[:database]
14
14
 
15
- # Forward only valid config params to PGconn.connect.
16
- valid_conn_param_keys = PGconn.conndefaults_hash.keys + [:requiressl]
15
+ # Forward only valid config params to PG::Connection.connect.
16
+ valid_conn_param_keys = PG::Connection.conndefaults_hash.keys + [:requiressl]
17
17
  conn_params.slice!(*valid_conn_param_keys)
18
18
 
19
- # The postgres drivers don't allow the creation of an unconnected PGconn object,
20
- # so just pass a nil connection object for the time being.
19
+ # The postgres drivers don't allow the creation of an unconnected
20
+ # PG::Connection object, so just pass a nil connection object for the
21
+ # time being.
21
22
  ConnectionAdapters::CockroachDBAdapter.new(nil, logger, conn_params, config)
22
23
  end
23
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-cockroachdb-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cockroach Labs
@@ -30,6 +30,26 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 5.1.1
33
+ - !ruby/object:Gem::Dependency
34
+ name: pg
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0.20'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '0.22'
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0.20'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '0.22'
33
53
  - !ruby/object:Gem::Dependency
34
54
  name: bundler
35
55
  requirement: !ruby/object:Gem::Requirement