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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2735a535f8978583510c6079c0cc148f1b9a54fe00e56069700b14a1e610cbd6
4
- data.tar.gz: 438a9abd06927a197a81f8989fc71918d50d165e0d4a4e30a8257007a649468d
3
+ metadata.gz: 8cd1a3f72c3b4baf9436779bc459ab59bcb3f7c7911b2f0e841aec228a32f66e
4
+ data.tar.gz: 7bd30bb4fdcb5ad7bc288a9fc157296fa719c521386677c6d1828a200bfa96db
5
5
  SHA512:
6
- metadata.gz: 101d242de66ba767fbe498e475c404303a71430546cd4ebf1330398afe5e45a4ac9429ca57526b535dcad51632b89f16472bbb6ba1e4f415a6640cbda314b012
7
- data.tar.gz: d3f1816e0cdf4854cfa665a72320b2e388bf0b73902228e3160db688eddac9e1bd4ce0b33066ffdab0a1334c71392cee1a2df5603a81a3bb681b4030bf6dcdfb
6
+ metadata.gz: ccc9feeb4fe97d6b1ac4565caea284a30df03915c7a21952b9302a3369b317a34e32f359162f9416a52bf59ea1f42cd5fb6878be722f2530f330eb44ba52b583
7
+ data.tar.gz: 056b5188abd6b43920aaf54052d6e405ff6536d8e2f54f1baf8c03932d3f50b8806f4a6c8e2023c23db5ff7aa69bae64faf8569cc2ac6879a9d00566b6dbf5c7
data/gemfiles/6.0.gemfile CHANGED
@@ -4,4 +4,4 @@ platforms :ruby do
4
4
  gem 'ruby-oci8', '~> 2.2'
5
5
  end
6
6
 
7
- gem 'activerecord', '~> 6.0'
7
+ gem 'activerecord', '~> 6.0.4'
@@ -0,0 +1,7 @@
1
+ gem 'activerecord-oracle_enhanced-adapter', '~> 6.0'
2
+
3
+ platforms :ruby do
4
+ gem 'ruby-oci8', '~> 2.2'
5
+ end
6
+
7
+ gem 'activerecord', '~> 6.1.4'
@@ -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
- require_adapter connection_pool.spec.config[:adapter]
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
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Bulkoperation
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
4
4
  end
5
5
  end
data/test/database.yml CHANGED
@@ -1,4 +1,4 @@
1
- oracle_enhanced:
1
+ test:
2
2
  adapter: oracle_enhanced
3
3
  # url: jdbc:oracle:thin:@localhost:1521:XEPDB1
4
4
  username: <%=ENV['DB_USER'] ||= "sample" %>
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
- ActiveRecord::Base.configurations['test'] = YAML.load(ERB.new(File.read(test_dir.join("database.yml"))).result)[adapter]
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.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: 2020-05-13 00:00:00.000000000 Z
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.0.6
147
- signing_key:
147
+ rubygems_version: 3.2.3
148
+ signing_key:
148
149
  specification_version: 4
149
150
  summary: ''
150
151
  test_files: