activerecord_bulkoperation 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gemfiles/6.0.gemfile +1 -1
- data/gemfiles/6.1.gemfile +7 -0
- data/lib/activerecord_bulkoperation/base.rb +3 -1
- data/lib/activerecord_bulkoperation/version.rb +1 -1
- data/test/database.yml +1 -1
- data/test/test_helper.rb +6 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cd1a3f72c3b4baf9436779bc459ab59bcb3f7c7911b2f0e841aec228a32f66e
|
4
|
+
data.tar.gz: 7bd30bb4fdcb5ad7bc288a9fc157296fa719c521386677c6d1828a200bfa96db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccc9feeb4fe97d6b1ac4565caea284a30df03915c7a21952b9302a3369b317a34e32f359162f9416a52bf59ea1f42cd5fb6878be722f2530f330eb44ba52b583
|
7
|
+
data.tar.gz: 056b5188abd6b43920aaf54052d6e405ff6536d8e2f54f1baf8c03932d3f50b8806f4a6c8e2023c23db5ff7aa69bae64faf8569cc2ac6879a9d00566b6dbf5c7
|
data/gemfiles/6.0.gemfile
CHANGED
@@ -24,7 +24,9 @@ module ActiveRecord
|
|
24
24
|
|
25
25
|
# Loads the import functionality for the passed in ActiveRecord connection
|
26
26
|
def self.load_from_connection_pool(connection_pool)
|
27
|
-
|
27
|
+
# currently only oracle_enhanced_adapter is supported and connection_pool.spec does not work with Rails 6.1.
|
28
|
+
# require_adapter connection_pool.spec.config[:adapter]
|
29
|
+
require_adapter('oracle_enhanced')
|
28
30
|
end
|
29
31
|
end
|
30
32
|
end
|
data/test/database.yml
CHANGED
data/test/test_helper.rb
CHANGED
@@ -25,7 +25,12 @@ adapter = ENV["DB_ADAPTER"] || "oracle_enhanced"
|
|
25
25
|
FileUtils.mkdir_p 'log'
|
26
26
|
ActiveRecord::Base.logger = Logger.new("log/test.log")
|
27
27
|
ActiveRecord::Base.logger.level = Logger::DEBUG
|
28
|
-
|
28
|
+
|
29
|
+
if ActiveRecord.gem_version >= Gem::Version.new('6.1')
|
30
|
+
ActiveRecord::Base.configurations = ActiveRecord::DatabaseConfigurations.new(YAML.load(ERB.new(File.read(test_dir.join("database.yml"))).result))
|
31
|
+
else
|
32
|
+
ActiveRecord::Base.configurations['test'] = YAML.load(ERB.new(File.read(test_dir.join("database.yml"))).result)['test']
|
33
|
+
end
|
29
34
|
ActiveRecord::Base.default_timezone = :utc
|
30
35
|
|
31
36
|
require "activerecord_bulkoperation"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord_bulkoperation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OSP
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- gemfiles/5.1.gemfile
|
84
84
|
- gemfiles/5.2.gemfile
|
85
85
|
- gemfiles/6.0.gemfile
|
86
|
+
- gemfiles/6.1.gemfile
|
86
87
|
- lib/activerecord_bulkoperation.rb
|
87
88
|
- lib/activerecord_bulkoperation/active_record/adapters/abstract_adapter.rb
|
88
89
|
- lib/activerecord_bulkoperation/active_record/adapters/oracle_enhanced_adapter.rb
|
@@ -128,7 +129,7 @@ homepage: ''
|
|
128
129
|
licenses:
|
129
130
|
- Ruby
|
130
131
|
metadata: {}
|
131
|
-
post_install_message:
|
132
|
+
post_install_message:
|
132
133
|
rdoc_options: []
|
133
134
|
require_paths:
|
134
135
|
- lib
|
@@ -143,8 +144,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
144
|
- !ruby/object:Gem::Version
|
144
145
|
version: '0'
|
145
146
|
requirements: []
|
146
|
-
rubygems_version: 3.
|
147
|
-
signing_key:
|
147
|
+
rubygems_version: 3.2.3
|
148
|
+
signing_key:
|
148
149
|
specification_version: 4
|
149
150
|
summary: ''
|
150
151
|
test_files:
|