activerecord-oracle_enhanced-adapter 6.1.2 → 6.1.4

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: fe153e95c0604a0c3c4d99c15e96122be421cf0ae458508cd0177a57434afe9e
4
- data.tar.gz: 4d0bb45de045b0a51dfdd4c7328ad64999c2b4494e10791f361ae95f7d805523
3
+ metadata.gz: 0a0830e05dfb361ea469742a3642461cbd839ea4ca40b3c1f1bb3ec0d8443657
4
+ data.tar.gz: 46c6a959835694b0a6f38dcddbba03cb23ae1b20fef66c13c53ed3eac9a1fd8d
5
5
  SHA512:
6
- metadata.gz: 1d692b70253c15a57353fe49cb6a576b067c00614fba6ed6f6eaef5169364c5e1899c0e69c9c8259224d9b7d6e0c1ac4299a31dad812403c51c41bbfeb90bfb3
7
- data.tar.gz: 7f1b51e8ced3139c1a380804b772113ae3004d045de9c4b2c1632b833364b06f434b4b10446fc3a60290578f44fca2dde368227a25cfa4aefdaa101404baf252
6
+ metadata.gz: 2561b2089a74bb3f4e3cb0d30a7597fe2491a41b52dfaaa68e6d8055b4c9d0e80044a6f8b720f7d40d8b5fdb9697396e29a29d2025424edb6ab178fb3612812d
7
+ data.tar.gz: cff42212affbc978b55dd3683ec939b8b2381ed0fcd09e1d1c597d06c695e68bc14dbb486680fd19abfd1ced46d014a3e65b931500483554b20a0d87fb59921a
data/History.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## 6.1.4 / 2021-04-01
2
+
3
+ * Changes and bug fixes
4
+ * Support use of ojdbc11.jar [#2155, #2168]
5
+ * Add missing default granted permission "ulimited tablespace" [#2156, #2167]
6
+ * Prevent from including ojdbc8.jar file to gem file [#2163, #2164, #2165]
7
+ * Oracle enhanced adapter 6.1.3 has been yanked since #2163
8
+
9
+ * CI
10
+ * Allow-failure CI against jruby-head for release61 branch [#2166]
11
+
12
+ ## 6.1.3 / 2021-03-31
13
+
14
+ * Changes and bug fixes
15
+ * Address FrozenError (can't modify frozen Hash): error [#2139 #2151 #2160]
16
+
17
+ * CI
18
+ * CI against JRuby 9.2.15.0 [#2150]
19
+
1
20
  ## 6.1.2 / 2021-02-10
2
21
  * Changes and bug fixes
3
22
  * Fixed ORA-01935: missing user or role name with config read issue [#1943 #2135, #2142]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.1.2
1
+ 6.1.4
@@ -16,7 +16,8 @@ begin
16
16
  # Oracle 11g client ojdbc6.jar is also compatible with Java 1.7
17
17
  # Oracle 12c Release 1 client provides ojdbc7.jar
18
18
  # Oracle 12c Release 2 client provides ojdbc8.jar
19
- ojdbc_jars = %w(ojdbc8.jar ojdbc7.jar ojdbc6.jar)
19
+ # Oracle 21c provides ojdbc11.jar for Java 11 and above
20
+ ojdbc_jars = %w(ojdbc11.jar ojdbc8.jar ojdbc7.jar ojdbc6.jar)
20
21
 
21
22
  if !ENV_JAVA["java.class.path"]&.match?(Regexp.new(ojdbc_jars.join("|")))
22
23
  # On Unix environment variable should be PATH, on Windows it is sometimes Path
@@ -98,6 +99,8 @@ module ActiveRecord
98
99
  @raw_connection = @raw_connection.underlying_connection
99
100
  end
100
101
 
102
+ # Workaround FrozenError (can't modify frozen Hash):
103
+ config = config.dup
101
104
  config[:driver] ||= @raw_connection.meta_data.connection.java_class.name
102
105
  username = @raw_connection.meta_data.user_name
103
106
  else
@@ -10,14 +10,11 @@ module ActiveRecord
10
10
 
11
11
  def quote_column_name(name) #:nodoc:
12
12
  name = name.to_s
13
- self.class.quoted_column_names[name] ||= begin
14
- # if only valid lowercase column characters in name
15
- if /\A[a-z][a-z_0-9\$#]*\Z/.match?(name)
16
- "\"#{name.upcase}\""
17
- else
18
- # remove double quotes which cannot be used inside quoted identifier
19
- "\"#{name.gsub('"', '')}\""
20
- end
13
+ self.class.quoted_column_names[name] ||= if /\A[a-z][a-z_0-9\$#]*\Z/.match?(name)
14
+ "\"#{name.upcase}\""
15
+ else
16
+ # remove double quotes which cannot be used inside quoted identifier
17
+ "\"#{name.gsub('"', '')}\""
21
18
  end
22
19
  end
23
20
 
@@ -226,7 +226,7 @@ module ActiveRecord
226
226
  # ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.permissions =
227
227
  # ["create session", "create table", "create view", "create sequence", "create trigger", "ctxapp"]
228
228
  cattr_accessor :permissions
229
- self.permissions = ["create session", "create table", "create view", "create sequence"]
229
+ self.permissions = ["unlimited tablespace", "create session", "create table", "create view", "create sequence"]
230
230
 
231
231
  ##
232
232
  # :singleton-method:
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: 6.1.2
4
+ version: 6.1.4
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: 2021-02-10 00:00:00.000000000 Z
11
+ date: 2021-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -122,7 +122,7 @@ homepage: http://github.com/rsim/oracle-enhanced
122
122
  licenses:
123
123
  - MIT
124
124
  metadata: {}
125
- post_install_message:
125
+ post_install_message:
126
126
  rdoc_options: []
127
127
  require_paths:
128
128
  - lib
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  version: 1.8.11
139
139
  requirements: []
140
140
  rubygems_version: 3.2.3
141
- signing_key:
141
+ signing_key:
142
142
  specification_version: 4
143
143
  summary: Oracle enhanced adapter for ActiveRecord
144
144
  test_files: