activerecord-oracle_enhanced-adapter 7.0.1 → 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: d62d90d3ee110795b7396cd404a1e9c7dd5d61b9d11685b0a935a4c93f276cd3
4
- data.tar.gz: fb3e1420b6ed0ddcc98631da947081f69543f8fe8ac42551a4a980f39b038fd2
3
+ metadata.gz: 9b4ee27d979189b61c88f8183180b3de5fddc6f5332300594090b7b264bb79e5
4
+ data.tar.gz: 1edc6fff9695c7fec045eb376fc2dbcef414182705c4873901423e241abceb05
5
5
  SHA512:
6
- metadata.gz: 1e9ee5b06389da2923f6485412ea2753f2537c4ac7f6e2ba9afd2e8189347aa97313c9273de617f3375a593f310262902bbf7e5ffabc5fd75c44da5870026fe4
7
- data.tar.gz: 7da3548a2d4f594b213ace0a2b3e016b44a6767c284970258db595f23dba952d83ddde919d49f1d98e2359ae74c2ac0adbb0b65ecf18bb33d67d58bb891d90b8
6
+ metadata.gz: de56825206be9a3aec2102ed337c575b347837be940ffeccce2fdc5ae6cf960d2ebc4514be723a1f497544d90f147f9aeab0da657f5d06727ea970ebb2fe7647
7
+ data.tar.gz: 3e98d015c3761733287706d85d79e73b53c2dbf7644ddfbb95f0adf70c07ec49b212b05b003bd50938688d5b6d527ea3817d74ff6091b9e2eb72099ede368c45
data/History.md CHANGED
@@ -1,3 +1,16 @@
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
+
9
+ ## 7.0.2 / 2022-01-21
10
+
11
+ * Changes and bug fixes
12
+ * Fix `columns_for_distinct` when using Rails 6.1 [#2249 #2251 rails/rails#31966]
13
+
1
14
  ## 7.0.1 / 2022-01-13
2
15
 
3
16
  * Changes and bug fixes
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.0.1
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
- self.class.quoted_column_names[name] ||= if /\A[a-z][a-z_0-9$#]*\Z/.match?(name)
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$#\-]*$/i
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
- self.class.quoted_table_names[name] ||= [name.split(".").map { |n| quote_column_name(n) }].join(".")
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:
@@ -662,7 +662,7 @@ module ActiveRecord
662
662
  }.reject(&:blank?).map.with_index { |column, i|
663
663
  "FIRST_VALUE(#{column}) OVER (PARTITION BY #{columns} ORDER BY #{column}) AS alias_#{i}__"
664
664
  }
665
- [super, *order_columns].join(", ")
665
+ (order_columns << super).join(", ")
666
666
  end
667
667
 
668
668
  def temporary_table?(table_name) # :nodoc:
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "base64"
4
+
3
5
  describe "OracleEnhancedAdapter custom types handling" do
4
6
  include SchemaSpecHelper
5
7
 
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.1
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: 2022-01-13 00:00:00.000000000 Z
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.3.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: