activerecord-import 1.8.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yaml +24 -6
  3. data/.rubocop.yml +6 -3
  4. data/CHANGELOG.md +35 -0
  5. data/Gemfile +5 -11
  6. data/README.markdown +2 -2
  7. data/Rakefile +4 -0
  8. data/benchmarks/benchmark.rb +0 -2
  9. data/benchmarks/lib/base.rb +6 -3
  10. data/benchmarks/lib/cli_parser.rb +8 -6
  11. data/gemfiles/8.0.gemfile +3 -0
  12. data/lib/activerecord-import/adapters/sqlite3_adapter.rb +1 -1
  13. data/lib/activerecord-import/base.rb +4 -0
  14. data/lib/activerecord-import/import.rb +8 -14
  15. data/lib/activerecord-import/version.rb +1 -1
  16. data/test/adapters/janus_mysql2.rb +3 -0
  17. data/test/adapters/janus_trilogy.rb +11 -0
  18. data/test/adapters/mysql2_proxy.rb +3 -0
  19. data/test/adapters/postgresql_proxy.rb +3 -0
  20. data/test/adapters/trilogy.rb +2 -0
  21. data/test/database.yml.sample +14 -0
  22. data/test/github/database.yml +15 -2
  23. data/test/import_test.rb +15 -39
  24. data/test/janus_mysql2/import_test.rb +8 -0
  25. data/test/janus_trilogy/import_test.rb +7 -0
  26. data/test/models/author.rb +3 -1
  27. data/test/models/book.rb +6 -2
  28. data/test/models/composite_book.rb +1 -1
  29. data/test/models/composite_chapter.rb +4 -1
  30. data/test/models/customer.rb +1 -1
  31. data/test/models/order.rb +1 -1
  32. data/test/models/tag_alias.rb +1 -1
  33. data/test/models/topic.rb +1 -0
  34. data/test/mysql2_proxy/import_test.rb +6 -0
  35. data/test/postgresql_proxy/import_test.rb +6 -0
  36. data/test/support/active_support/test_case_extensions.rb +1 -5
  37. data/test/support/mysql/import_examples.rb +6 -8
  38. data/test/support/postgresql/import_examples.rb +37 -53
  39. data/test/support/shared_examples/recursive_import.rb +39 -0
  40. data/test/test_helper.rb +9 -20
  41. metadata +23 -12
  42. data/gemfiles/4.2.gemfile +0 -4
  43. data/gemfiles/5.0.gemfile +0 -4
  44. data/gemfiles/5.1.gemfile +0 -4
  45. data/lib/activerecord-import/mysql2.rb +0 -9
  46. data/lib/activerecord-import/postgresql.rb +0 -9
  47. data/lib/activerecord-import/sqlite3.rb +0 -9
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
4
+
5
+ require File.expand_path("#{File.dirname(__FILE__)}/../support/assertions")
6
+ require File.expand_path("#{File.dirname(__FILE__)}/../support/mysql/import_examples")
7
+
8
+ should_support_mysql_import_functionality
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
4
+ require File.expand_path("#{File.dirname(__FILE__)}/../support/assertions")
5
+ require File.expand_path("#{File.dirname(__FILE__)}/../support/mysql/import_examples")
6
+
7
+ should_support_mysql_import_functionality
@@ -1,7 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Author < ActiveRecord::Base
4
- if ENV['AR_VERSION'].to_f >= 7.1
4
+ if ENV['AR_VERSION'].to_f >= 8.0
5
+ has_many :composite_books, foreign_key: [:id, :author_id], inverse_of: :author
6
+ elsif ENV['AR_VERSION'].to_f >= 7.1
5
7
  has_many :composite_books, query_constraints: [:id, :author_id], inverse_of: :author
6
8
  end
7
9
  end
data/test/models/book.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  class Book < ActiveRecord::Base
4
4
  belongs_to :topic, inverse_of: :books
5
- if ENV['AR_VERSION'].to_f <= 7.0
5
+ if ENV['AR_VERSION'].to_f <= 7.0 || ENV['AR_VERSION'].to_f >= 8.0
6
6
  belongs_to :tag, foreign_key: [:tag_id, :parent_id] unless ENV["SKIP_COMPOSITE_PK"]
7
7
  else
8
8
  belongs_to :tag, query_constraints: [:tag_id, :parent_id] unless ENV["SKIP_COMPOSITE_PK"]
@@ -10,5 +10,9 @@ class Book < ActiveRecord::Base
10
10
  has_many :chapters, inverse_of: :book
11
11
  has_many :discounts, as: :discountable
12
12
  has_many :end_notes, inverse_of: :book
13
- enum status: [:draft, :published] if ENV['AR_VERSION'].to_f >= 4.1
13
+ if ENV['AR_VERSION'].to_f >= 8.0
14
+ enum :status, [:draft, :published]
15
+ else
16
+ enum status: [:draft, :published]
17
+ end
14
18
  end
@@ -3,7 +3,7 @@
3
3
  class CompositeBook < ActiveRecord::Base
4
4
  self.primary_key = %i[id author_id]
5
5
  belongs_to :author
6
- if ENV['AR_VERSION'].to_f <= 7.0
6
+ if ENV['AR_VERSION'].to_f <= 7.0 || ENV['AR_VERSION'].to_f >= 8.0
7
7
  unless ENV["SKIP_COMPOSITE_PK"]
8
8
  has_many :composite_chapters, inverse_of: :composite_book,
9
9
  foreign_key: [:id, :author_id]
@@ -1,7 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class CompositeChapter < ActiveRecord::Base
4
- if ENV['AR_VERSION'].to_f >= 7.1
4
+ if ENV['AR_VERSION'].to_f >= 8.0
5
+ belongs_to :composite_book, inverse_of: :composite_chapters,
6
+ foreign_key: [:composite_book_id, :author_id]
7
+ elsif ENV['AR_VERSION'].to_f >= 7.1
5
8
  belongs_to :composite_book, inverse_of: :composite_chapters,
6
9
  query_constraints: [:composite_book_id, :author_id]
7
10
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  class Customer < ActiveRecord::Base
4
4
  unless ENV["SKIP_COMPOSITE_PK"]
5
- if ENV['AR_VERSION'].to_f <= 7.0
5
+ if ENV['AR_VERSION'].to_f <= 7.0 || ENV['AR_VERSION'].to_f >= 8.0
6
6
  has_many :orders,
7
7
  inverse_of: :customer,
8
8
  primary_key: %i(account_id id),
data/test/models/order.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  class Order < ActiveRecord::Base
4
4
  unless ENV["SKIP_COMPOSITE_PK"]
5
- if ENV['AR_VERSION'].to_f <= 7.0
5
+ if ENV['AR_VERSION'].to_f <= 7.0 || ENV['AR_VERSION'].to_f >= 8.0
6
6
  belongs_to :customer,
7
7
  inverse_of: :orders,
8
8
  primary_key: %i(account_id id),
@@ -2,7 +2,7 @@
2
2
 
3
3
  class TagAlias < ActiveRecord::Base
4
4
  unless ENV["SKIP_COMPOSITE_PK"]
5
- if ENV['AR_VERSION'].to_f <= 7.0
5
+ if ENV['AR_VERSION'].to_f <= 7.0 || ENV['AR_VERSION'].to_f >= 8.0
6
6
  belongs_to :tag, foreign_key: [:tag_id, :parent_id], required: true
7
7
  else
8
8
  belongs_to :tag, query_constraints: [:tag_id, :parent_id], required: true
data/test/models/topic.rb CHANGED
@@ -16,6 +16,7 @@ class Topic < ActiveRecord::Base
16
16
  before_validation -> { errors.add(:title, :invalid) if title == 'invalid' }
17
17
 
18
18
  has_many :books, inverse_of: :topic
19
+ has_many :novels, inverse_of: :topic, class_name: "Book"
19
20
  belongs_to :parent, class_name: "Topic"
20
21
 
21
22
  composed_of :description, mapping: [%w(title title), %w(author_name author_name)], allow_nil: true, class_name: "TopicDescription"
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
4
+ require File.expand_path("#{File.dirname(__FILE__)}/../support/mysql/import_examples")
5
+
6
+ should_support_mysql_import_functionality
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require File.expand_path("#{File.dirname(__FILE__)}/../test_helper")
4
+ require File.expand_path("#{File.dirname(__FILE__)}/../support/postgresql/import_examples")
5
+
6
+ should_support_postgresql_import_functionality
@@ -3,11 +3,7 @@
3
3
  class ActiveSupport::TestCase
4
4
  include ActiveRecord::TestFixtures
5
5
 
6
- if ENV['AR_VERSION'].to_f >= 5.0
7
- self.use_transactional_tests = true
8
- else
9
- self.use_transactional_fixtures = true
10
- end
6
+ self.use_transactional_tests = true
11
7
 
12
8
  class << self
13
9
  def requires_active_record_version(version_string, &blk)
@@ -84,14 +84,12 @@ def should_support_mysql_import_functionality
84
84
  end
85
85
  end
86
86
 
87
- if ENV['AR_VERSION'].to_f >= 5.1
88
- context "with virtual columns" do
89
- let(:books) { [Book.new(author_name: "foo", title: "bar")] }
90
-
91
- it "ignores virtual columns and creates record" do
92
- assert_difference "Book.count", +1 do
93
- Book.import books
94
- end
87
+ context "with virtual columns" do
88
+ let(:books) { [Book.new(author_name: "foo", title: "bar")] }
89
+
90
+ it "ignores virtual columns and creates record" do
91
+ assert_difference "Book.count", +1 do
92
+ Book.import books
95
93
  end
96
94
  end
97
95
  end
@@ -38,10 +38,8 @@ def should_support_postgresql_import_functionality
38
38
  assert !topic.changed?
39
39
  end
40
40
 
41
- if ENV['AR_VERSION'].to_f > 4.1
42
- it "moves the dirty changes to previous_changes" do
43
- assert topic.previous_changes.present?
44
- end
41
+ it "moves the dirty changes to previous_changes" do
42
+ assert topic.previous_changes.present?
45
43
  end
46
44
 
47
45
  it "marks models as persisted" do
@@ -96,15 +94,9 @@ def should_support_postgresql_import_functionality
96
94
  describe "returning" do
97
95
  let(:books) { [Book.new(author_name: "King", title: "It")] }
98
96
  let(:result) { Book.import(books, returning: %w(author_name title)) }
99
- let(:book_id) do
100
- if RUBY_PLATFORM == 'java' || ENV['AR_VERSION'].to_i >= 5.0
101
- books.first.id
102
- else
103
- books.first.id.to_s
104
- end
105
- end
106
- let(:true_returning_value) { ENV['AR_VERSION'].to_f >= 5.0 ? true : 't' }
107
- let(:false_returning_value) { ENV['AR_VERSION'].to_f >= 5.0 ? false : 'f' }
97
+ let(:book_id) { books.first.id }
98
+ let(:true_returning_value) { true }
99
+ let(:false_returning_value) { false }
108
100
 
109
101
  it "creates records" do
110
102
  assert_difference("Book.count", +1) { result }
@@ -222,23 +214,21 @@ def should_support_postgresql_import_functionality
222
214
  end
223
215
  end
224
216
 
225
- if ENV['AR_VERSION'].to_f >= 4.0
226
- describe "with a uuid primary key" do
227
- let(:vendor) { Vendor.new(name: "foo") }
228
- let(:vendors) { [vendor] }
217
+ describe "with a uuid primary key" do
218
+ let(:vendor) { Vendor.new(name: "foo") }
219
+ let(:vendors) { [vendor] }
229
220
 
230
- it "creates records" do
231
- assert_difference "Vendor.count", +1 do
232
- Vendor.import vendors
233
- end
234
- end
235
-
236
- it "assigns an id to the model objects" do
221
+ it "creates records" do
222
+ assert_difference "Vendor.count", +1 do
237
223
  Vendor.import vendors
238
- assert_not_nil vendor.id
239
224
  end
240
225
  end
241
226
 
227
+ it "assigns an id to the model objects" do
228
+ Vendor.import vendors
229
+ assert_not_nil vendor.id
230
+ end
231
+
242
232
  describe "with an assigned uuid primary key" do
243
233
  let(:id) { SecureRandom.uuid }
244
234
  let(:vendor) { Vendor.new(id: id, name: "foo") }
@@ -254,44 +244,38 @@ def should_support_postgresql_import_functionality
254
244
  end
255
245
 
256
246
  describe "with store accessor fields" do
257
- if ENV['AR_VERSION'].to_f >= 4.0
258
- it "imports values for json fields" do
259
- vendors = [Vendor.new(name: 'Vendor 1', size: 100)]
260
- assert_difference "Vendor.count", +1 do
261
- Vendor.import vendors
262
- end
263
- assert_equal(100, Vendor.first.size)
247
+ it "imports values for json fields" do
248
+ vendors = [Vendor.new(name: 'Vendor 1', size: 100)]
249
+ assert_difference "Vendor.count", +1 do
250
+ Vendor.import vendors
264
251
  end
252
+ assert_equal(100, Vendor.first.size)
253
+ end
265
254
 
266
- it "imports values for hstore fields" do
267
- vendors = [Vendor.new(name: 'Vendor 1', contact: 'John Smith')]
268
- assert_difference "Vendor.count", +1 do
269
- Vendor.import vendors
270
- end
271
- assert_equal('John Smith', Vendor.first.contact)
255
+ it "imports values for hstore fields" do
256
+ vendors = [Vendor.new(name: 'Vendor 1', contact: 'John Smith')]
257
+ assert_difference "Vendor.count", +1 do
258
+ Vendor.import vendors
272
259
  end
260
+ assert_equal('John Smith', Vendor.first.contact)
273
261
  end
274
262
 
275
- if ENV['AR_VERSION'].to_f >= 4.2
276
- it "imports values for jsonb fields" do
277
- vendors = [Vendor.new(name: 'Vendor 1', charge_code: '12345')]
278
- assert_difference "Vendor.count", +1 do
279
- Vendor.import vendors
280
- end
281
- assert_equal('12345', Vendor.first.charge_code)
263
+ it "imports values for jsonb fields" do
264
+ vendors = [Vendor.new(name: 'Vendor 1', charge_code: '12345')]
265
+ assert_difference "Vendor.count", +1 do
266
+ Vendor.import vendors
282
267
  end
268
+ assert_equal('12345', Vendor.first.charge_code)
283
269
  end
284
270
  end
285
271
 
286
- if ENV['AR_VERSION'].to_f >= 4.2
287
- describe "with serializable fields" do
288
- it "imports default values as correct data type" do
289
- vendors = [Vendor.new(name: 'Vendor 1')]
290
- assert_difference "Vendor.count", +1 do
291
- Vendor.import vendors
292
- end
293
- assert_equal({}, Vendor.first.json_data)
272
+ describe "with serializable fields" do
273
+ it "imports default values as correct data type" do
274
+ vendors = [Vendor.new(name: 'Vendor 1')]
275
+ assert_difference "Vendor.count", +1 do
276
+ Vendor.import vendors
294
277
  end
278
+ assert_equal({}, Vendor.first.json_data)
295
279
  end
296
280
 
297
281
  %w(json jsonb).each do |json_type|
@@ -278,6 +278,45 @@ def should_support_recursive_import
278
278
  end
279
279
  assert_equal new_chapter_title, Chapter.find(example_chapter.id).title
280
280
  end
281
+
282
+ context "when a non-standard association name is used" do
283
+ let(:new_topics) do
284
+ topic = Build(:topic)
285
+
286
+ 2.times do
287
+ novel = topic.novels.build(title: FactoryBot.generate(:book_title), author_name: 'Stephen King')
288
+ 3.times do
289
+ novel.chapters.build(title: FactoryBot.generate(:chapter_title))
290
+ end
291
+
292
+ 4.times do
293
+ novel.end_notes.build(note: FactoryBot.generate(:end_note))
294
+ end
295
+ end
296
+
297
+ [topic]
298
+ end
299
+
300
+ it "updates nested associated objects" do
301
+ new_chapter_title = 'The Final Chapter'
302
+ novel = new_topics.first.novels.first
303
+ novel.author_name = 'Richard Bachman'
304
+
305
+ example_chapter = novel.chapters.first
306
+ example_chapter.title = new_chapter_title
307
+
308
+ assert_nothing_raised do
309
+ Topic.import new_topics,
310
+ recursive: true,
311
+ on_duplicate_key_update: [:id],
312
+ recursive_on_duplicate_key_update: {
313
+ novels: { conflict_target: [:id], columns: [:author_name] },
314
+ chapters: { conflict_target: [:id], columns: [:title] }
315
+ }
316
+ end
317
+ assert_equal new_chapter_title, Chapter.find(example_chapter.id).title
318
+ end
319
+ end
281
320
  end
282
321
  end
283
322
 
data/test/test_helper.rb CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  require 'pathname'
4
4
  require 'rake'
5
+ require 'logger'
6
+
5
7
  test_dir = Pathname.new File.dirname(__FILE__)
6
8
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
7
9
  $LOAD_PATH.unshift(File.dirname(__FILE__))
@@ -13,19 +15,16 @@ ENV["RAILS_ENV"] = "test"
13
15
  require "bundler"
14
16
  Bundler.setup
15
17
 
16
- require 'pry' unless RbConfig::CONFIG["RUBY_INSTALL_NAME"] =~ /jruby/
18
+ unless RbConfig::CONFIG["RUBY_INSTALL_NAME"] =~ /jruby/
19
+ require 'pry'
20
+ require 'pry-byebug'
21
+ end
17
22
 
18
23
  require "active_record"
19
24
  require "active_record/fixtures"
20
25
  require "active_support/test_case"
21
-
22
- if ActiveSupport::VERSION::STRING < "4.0"
23
- require 'test/unit'
24
- require 'mocha/test_unit'
25
- else
26
- require 'active_support/testing/autorun'
27
- require "mocha/minitest"
28
- end
26
+ require 'active_support/testing/autorun'
27
+ require "mocha/minitest"
29
28
 
30
29
  require 'timecop'
31
30
  require 'chronic'
@@ -38,16 +37,6 @@ rescue LoadError
38
37
  end
39
38
  end
40
39
 
41
- # Support MySQL 5.7
42
- if ActiveSupport::VERSION::STRING < "4.1"
43
- require "active_record/connection_adapters/mysql2_adapter"
44
- class ActiveRecord::ConnectionAdapters::Mysql2Adapter
45
- NATIVE_DATABASE_TYPES[:primary_key] = "int(11) auto_increment PRIMARY KEY"
46
- end
47
- end
48
-
49
- require "ruby-debug" if RUBY_VERSION.to_f < 1.9
50
-
51
40
  adapter = ENV["ARE_DB"] || "sqlite3"
52
41
 
53
42
  FileUtils.mkdir_p 'log'
@@ -99,4 +88,4 @@ Dir["#{File.dirname(__FILE__)}/models/*.rb"].sort.each { |file| require file }
99
88
  # Prevent this deprecation warning from breaking the tests.
100
89
  Rake::FileList.send(:remove_method, :import)
101
90
 
102
- ActiveSupport::TestCase.test_order = :random if ENV['AR_VERSION'].to_f >= 4.2
91
+ ActiveSupport::TestCase.test_order = :random
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-import
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Dennis
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-23 00:00:00.000000000 Z
11
+ date: 2025-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -70,15 +70,13 @@ files:
70
70
  - benchmarks/models/test_myisam.rb
71
71
  - benchmarks/schema/mysql2_schema.rb
72
72
  - docker-compose.yml
73
- - gemfiles/4.2.gemfile
74
- - gemfiles/5.0.gemfile
75
- - gemfiles/5.1.gemfile
76
73
  - gemfiles/5.2.gemfile
77
74
  - gemfiles/6.0.gemfile
78
75
  - gemfiles/6.1.gemfile
79
76
  - gemfiles/7.0.gemfile
80
77
  - gemfiles/7.1.gemfile
81
78
  - gemfiles/7.2.gemfile
79
+ - gemfiles/8.0.gemfile
82
80
  - lib/activerecord-import.rb
83
81
  - lib/activerecord-import/active_record/adapters/abstract_adapter.rb
84
82
  - lib/activerecord-import/active_record/adapters/jdbcmysql_adapter.rb
@@ -98,22 +96,23 @@ files:
98
96
  - lib/activerecord-import/adapters/trilogy_adapter.rb
99
97
  - lib/activerecord-import/base.rb
100
98
  - lib/activerecord-import/import.rb
101
- - lib/activerecord-import/mysql2.rb
102
- - lib/activerecord-import/postgresql.rb
103
- - lib/activerecord-import/sqlite3.rb
104
99
  - lib/activerecord-import/synchronize.rb
105
100
  - lib/activerecord-import/value_sets_parser.rb
106
101
  - lib/activerecord-import/version.rb
102
+ - test/adapters/janus_mysql2.rb
103
+ - test/adapters/janus_trilogy.rb
107
104
  - test/adapters/jdbcmysql.rb
108
105
  - test/adapters/jdbcpostgresql.rb
109
106
  - test/adapters/jdbcsqlite3.rb
110
107
  - test/adapters/makara_postgis.rb
111
108
  - test/adapters/mysql2.rb
112
109
  - test/adapters/mysql2_makara.rb
110
+ - test/adapters/mysql2_proxy.rb
113
111
  - test/adapters/mysql2spatial.rb
114
112
  - test/adapters/postgis.rb
115
113
  - test/adapters/postgresql.rb
116
114
  - test/adapters/postgresql_makara.rb
115
+ - test/adapters/postgresql_proxy.rb
117
116
  - test/adapters/seamless_database_pool.rb
118
117
  - test/adapters/spatialite.rb
119
118
  - test/adapters/sqlite3.rb
@@ -121,6 +120,8 @@ files:
121
120
  - test/database.yml.sample
122
121
  - test/github/database.yml
123
122
  - test/import_test.rb
123
+ - test/janus_mysql2/import_test.rb
124
+ - test/janus_trilogy/import_test.rb
124
125
  - test/jdbcmysql/import_test.rb
125
126
  - test/jdbcpostgresql/import_test.rb
126
127
  - test/jdbcsqlite3/import_test.rb
@@ -156,9 +157,11 @@ files:
156
157
  - test/models/widget.rb
157
158
  - test/mysql2/import_test.rb
158
159
  - test/mysql2_makara/import_test.rb
160
+ - test/mysql2_proxy/import_test.rb
159
161
  - test/mysqlspatial2/import_test.rb
160
162
  - test/postgis/import_test.rb
161
163
  - test/postgresql/import_test.rb
164
+ - test/postgresql_proxy/import_test.rb
162
165
  - test/schema/generic_schema.rb
163
166
  - test/schema/jdbcpostgresql_schema.rb
164
167
  - test/schema/mysql2_schema.rb
@@ -187,7 +190,7 @@ licenses:
187
190
  - MIT
188
191
  metadata:
189
192
  changelog_uri: https://github.com/zdennis/activerecord-import/blob/master/CHANGELOG.md
190
- post_install_message:
193
+ post_install_message:
191
194
  rdoc_options: []
192
195
  require_paths:
193
196
  - lib
@@ -202,21 +205,25 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
205
  - !ruby/object:Gem::Version
203
206
  version: '0'
204
207
  requirements: []
205
- rubygems_version: 3.5.11
206
- signing_key:
208
+ rubygems_version: 3.0.3.1
209
+ signing_key:
207
210
  specification_version: 4
208
211
  summary: Bulk insert extension for ActiveRecord
209
212
  test_files:
213
+ - test/adapters/janus_mysql2.rb
214
+ - test/adapters/janus_trilogy.rb
210
215
  - test/adapters/jdbcmysql.rb
211
216
  - test/adapters/jdbcpostgresql.rb
212
217
  - test/adapters/jdbcsqlite3.rb
213
218
  - test/adapters/makara_postgis.rb
214
219
  - test/adapters/mysql2.rb
215
220
  - test/adapters/mysql2_makara.rb
221
+ - test/adapters/mysql2_proxy.rb
216
222
  - test/adapters/mysql2spatial.rb
217
223
  - test/adapters/postgis.rb
218
224
  - test/adapters/postgresql.rb
219
225
  - test/adapters/postgresql_makara.rb
226
+ - test/adapters/postgresql_proxy.rb
220
227
  - test/adapters/seamless_database_pool.rb
221
228
  - test/adapters/spatialite.rb
222
229
  - test/adapters/sqlite3.rb
@@ -224,6 +231,8 @@ test_files:
224
231
  - test/database.yml.sample
225
232
  - test/github/database.yml
226
233
  - test/import_test.rb
234
+ - test/janus_mysql2/import_test.rb
235
+ - test/janus_trilogy/import_test.rb
227
236
  - test/jdbcmysql/import_test.rb
228
237
  - test/jdbcpostgresql/import_test.rb
229
238
  - test/jdbcsqlite3/import_test.rb
@@ -259,9 +268,11 @@ test_files:
259
268
  - test/models/widget.rb
260
269
  - test/mysql2/import_test.rb
261
270
  - test/mysql2_makara/import_test.rb
271
+ - test/mysql2_proxy/import_test.rb
262
272
  - test/mysqlspatial2/import_test.rb
263
273
  - test/postgis/import_test.rb
264
274
  - test/postgresql/import_test.rb
275
+ - test/postgresql_proxy/import_test.rb
265
276
  - test/schema/generic_schema.rb
266
277
  - test/schema/jdbcpostgresql_schema.rb
267
278
  - test/schema/mysql2_schema.rb
data/gemfiles/4.2.gemfile DELETED
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- gem 'activerecord', '~> 4.2.0'
4
- gem 'composite_primary_keys', '~> 8.0'
data/gemfiles/5.0.gemfile DELETED
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- gem 'activerecord', '~> 5.0.0'
4
- gem 'composite_primary_keys', '~> 9.0'
data/gemfiles/5.1.gemfile DELETED
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- gem 'activerecord', '~> 5.1.0'
4
- gem 'composite_primary_keys', '~> 10.0'
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- warn <<-MSG
4
- [DEPRECATION] loading activerecord-import via 'require "activerecord-import/<adapter-name>"'
5
- is deprecated. Update to autorequire using 'require "activerecord-import"'. See
6
- http://github.com/zdennis/activerecord-import/wiki/Requiring for more information
7
- MSG
8
-
9
- require "activerecord-import"
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- warn <<-MSG
4
- [DEPRECATION] loading activerecord-import via 'require "activerecord-import/<adapter-name>"'
5
- is deprecated. Update to autorequire using 'require "activerecord-import"'. See
6
- http://github.com/zdennis/activerecord-import/wiki/Requiring for more information
7
- MSG
8
-
9
- require "activerecord-import"
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- warn <<-MSG
4
- [DEPRECATION] loading activerecord-import via 'require "activerecord-import/<adapter-name>"'
5
- is deprecated. Update to autorequire using 'require "activerecord-import"'. See
6
- http://github.com/zdennis/activerecord-import/wiki/Requiring for more information
7
- MSG
8
-
9
- require "activerecord-import"