activerecord-oracle_enhanced-adapter 7.0.2 → 7.0.3
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: 9b4ee27d979189b61c88f8183180b3de5fddc6f5332300594090b7b264bb79e5
|
4
|
+
data.tar.gz: 1edc6fff9695c7fec045eb376fc2dbcef414182705c4873901423e241abceb05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de56825206be9a3aec2102ed337c575b347837be940ffeccce2fdc5ae6cf960d2ebc4514be723a1f497544d90f147f9aeab0da657f5d06727ea970ebb2fe7647
|
7
|
+
data.tar.gz: 3e98d015c3761733287706d85d79e73b53c2dbf7644ddfbb95f0adf70c07ec49b212b05b003bd50938688d5b6d527ea3817d74ff6091b9e2eb72099ede368c45
|
data/History.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## 7.0.3 / 2023-08-10
|
2
|
+
|
3
|
+
* Changes and bug fixes
|
4
|
+
* Support Rails 7.0.7
|
5
|
+
* Make ActiveRecord's quoted name caches thread-safe on JRuby/TruffleRuby [#2347, #2346]
|
6
|
+
* Address `NameError: uninitialized constant TestEmployee::AttributeSignature::Base64` [#2347]
|
7
|
+
* Address `Style/RedundantRegexpEscape` offense [#2347]
|
8
|
+
|
1
9
|
## 7.0.2 / 2022-01-21
|
2
10
|
|
3
11
|
* Changes and bug fixes
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.0.
|
1
|
+
7.0.3
|
@@ -7,10 +7,12 @@ module ActiveRecord
|
|
7
7
|
# QUOTING ==================================================
|
8
8
|
#
|
9
9
|
# see: abstract/quoting.rb
|
10
|
+
QUOTED_COLUMN_NAMES = Concurrent::Map.new # :nodoc:
|
11
|
+
QUOTED_TABLE_NAMES = Concurrent::Map.new # :nodoc:
|
10
12
|
|
11
13
|
def quote_column_name(name) # :nodoc:
|
12
14
|
name = name.to_s
|
13
|
-
|
15
|
+
QUOTED_COLUMN_NAMES[name] ||= if /\A[a-z][a-z_0-9$#]*\Z/.match?(name)
|
14
16
|
"\"#{name.upcase}\""
|
15
17
|
else
|
16
18
|
# remove double quotes which cannot be used inside quoted identifier
|
@@ -26,7 +28,7 @@ module ActiveRecord
|
|
26
28
|
# if only valid lowercase column characters in name
|
27
29
|
when /^[a-z][a-z_0-9$#]*$/
|
28
30
|
"\"#{name.upcase}\""
|
29
|
-
when /^[a-z][a-z_0-9
|
31
|
+
when /^[a-z][a-z_0-9$#-]*$/i
|
30
32
|
"\"#{name}\""
|
31
33
|
# if other characters present then assume that it is expression
|
32
34
|
# which should not be quoted
|
@@ -67,7 +69,7 @@ module ActiveRecord
|
|
67
69
|
|
68
70
|
def quote_table_name(name) # :nodoc:
|
69
71
|
name, _link = name.to_s.split("@")
|
70
|
-
|
72
|
+
QUOTED_TABLE_NAMES[name] ||= [name.split(".").map { |n| quote_column_name(n) }].join(".")
|
71
73
|
end
|
72
74
|
|
73
75
|
def quote_string(s) # :nodoc:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-oracle_enhanced-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Raimonds Simanovskis
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -137,7 +137,7 @@ homepage: http://github.com/rsim/oracle-enhanced
|
|
137
137
|
licenses:
|
138
138
|
- MIT
|
139
139
|
metadata: {}
|
140
|
-
post_install_message:
|
140
|
+
post_install_message:
|
141
141
|
rdoc_options: []
|
142
142
|
require_paths:
|
143
143
|
- lib
|
@@ -152,8 +152,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: 1.8.11
|
154
154
|
requirements: []
|
155
|
-
rubygems_version: 3.
|
156
|
-
signing_key:
|
155
|
+
rubygems_version: 3.4.10
|
156
|
+
signing_key:
|
157
157
|
specification_version: 4
|
158
158
|
summary: Oracle enhanced adapter for ActiveRecord
|
159
159
|
test_files:
|