activerecord-cipherstash-pg-adapter 0.7.15 → 0.7.17
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8245398c337278ae2d27fe07c9e74a37cd6c95722336aefd3203b183bc3c4243
|
4
|
+
data.tar.gz: 8e9fa9897ff7511297bceb2971a962152672086031e6718ebe5531ee8cec4cc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 076e1561f985c6d145195a19187acc82ebbc8e893f55c163d17cfbb7b659afd2384205790caefc3731f9648be9fc1a743f0a5dff5a7c1d0c9110238c9fa7e7bf
|
7
|
+
data.tar.gz: 2923ea42b7da4ddd88891874720175ce12a930f5d7e812773c79206f784b1cd2ed03a4a5c169bd549083599740c9e519243a66478f4c589767c6dfd3c7baea92
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,34 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.7.17] - 2023-08-23
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
|
13
|
+
- Bump max version of Active Record to next minor version.
|
14
|
+
|
15
|
+
## [0.7.16] - 2023-08-10
|
16
|
+
|
17
|
+
### Fixed
|
18
|
+
|
19
|
+
- Update quoting.rb for ActiveRecord version 7.0 to use updated quote_column_name and quote_table_name methods.
|
20
|
+
|
21
|
+
## [0.7.15] - 2023-08-01
|
22
|
+
|
23
|
+
### Changed
|
24
|
+
|
25
|
+
- Bump version of cipherstash-pg to 1.0.0.beta.15.
|
26
|
+
|
27
|
+
## [0.7.14] - 2023-06-09
|
28
|
+
|
29
|
+
### Changed
|
30
|
+
|
31
|
+
- Bump version of cipherstash-pg to 1.0.0.beta.12.
|
32
|
+
|
33
|
+
## [0.7.13] - 2023-06-09
|
34
|
+
|
35
|
+
- Version 0.7.13 was yanked.
|
36
|
+
|
9
37
|
## [0.7.12] - 2023-06-05
|
10
38
|
|
11
39
|
### Changed
|
@@ -30,6 +30,6 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.require_paths = ["lib"]
|
31
31
|
|
32
32
|
# Runtime dependencies here; dev+test go in Gemfile.
|
33
|
-
spec.add_dependency "activerecord", ">= 6.0.0", "
|
33
|
+
spec.add_dependency "activerecord", ">= 6.0.0", "<= 7.1"
|
34
34
|
spec.add_dependency "cipherstash-pg", ">= 1.0.0.beta.15"
|
35
35
|
end
|
@@ -4,6 +4,9 @@ module ActiveRecord
|
|
4
4
|
module ConnectionAdapters
|
5
5
|
module CipherStashPG
|
6
6
|
module Quoting
|
7
|
+
QUOTED_COLUMN_NAMES = Concurrent::Map.new # :nodoc:
|
8
|
+
QUOTED_TABLE_NAMES = Concurrent::Map.new # :nodoc:
|
9
|
+
|
7
10
|
class IntegerOutOf64BitRange < StandardError
|
8
11
|
def initialize(msg)
|
9
12
|
super(msg)
|
@@ -81,7 +84,7 @@ module ActiveRecord
|
|
81
84
|
# - "schema.name".table_name
|
82
85
|
# - "schema.name"."table.name"
|
83
86
|
def quote_table_name(name) # :nodoc:
|
84
|
-
|
87
|
+
QUOTED_TABLE_NAMES[name] ||= Utils.extract_schema_qualified_name(name.to_s).quoted.freeze
|
85
88
|
end
|
86
89
|
|
87
90
|
# Quotes schema names for use in SQL queries.
|
@@ -95,7 +98,7 @@ module ActiveRecord
|
|
95
98
|
|
96
99
|
# Quotes column names for use in SQL queries.
|
97
100
|
def quote_column_name(name) # :nodoc:
|
98
|
-
|
101
|
+
QUOTED_COLUMN_NAMES[name] ||= ::CipherStashPG::Connection.quote_ident(super).freeze
|
99
102
|
end
|
100
103
|
|
101
104
|
# Quote date/time values for use in SQL input.
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-cipherstash-pg-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robin Howard
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -17,9 +17,9 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 6.0.0
|
20
|
-
- - "
|
20
|
+
- - "<="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: '7.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +27,9 @@ dependencies:
|
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 6.0.0
|
30
|
-
- - "
|
30
|
+
- - "<="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: '7.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: cipherstash-pg
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|