activerecord-import 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +74 -8
  3. data/Brewfile +3 -1
  4. data/CHANGELOG.md +6 -0
  5. data/Gemfile +3 -1
  6. data/README.markdown +2 -2
  7. data/Rakefile +2 -0
  8. data/activerecord-import.gemspec +2 -1
  9. data/benchmarks/benchmark.rb +2 -0
  10. data/benchmarks/lib/base.rb +2 -0
  11. data/benchmarks/lib/cli_parser.rb +3 -1
  12. data/benchmarks/lib/float.rb +2 -0
  13. data/benchmarks/lib/mysql2_benchmark.rb +2 -0
  14. data/benchmarks/lib/output_to_csv.rb +2 -0
  15. data/benchmarks/lib/output_to_html.rb +4 -2
  16. data/benchmarks/models/test_innodb.rb +2 -0
  17. data/benchmarks/models/test_memory.rb +2 -0
  18. data/benchmarks/models/test_myisam.rb +2 -0
  19. data/benchmarks/schema/mysql2_schema.rb +2 -0
  20. data/gemfiles/4.2.gemfile +2 -0
  21. data/gemfiles/5.0.gemfile +2 -0
  22. data/gemfiles/5.1.gemfile +2 -0
  23. data/gemfiles/5.2.gemfile +2 -0
  24. data/gemfiles/6.0.gemfile +2 -0
  25. data/gemfiles/6.1.gemfile +2 -0
  26. data/gemfiles/7.0.gemfile +3 -0
  27. data/lib/activerecord-import/active_record/adapters/abstract_adapter.rb +2 -0
  28. data/lib/activerecord-import/active_record/adapters/jdbcmysql_adapter.rb +2 -0
  29. data/lib/activerecord-import/active_record/adapters/jdbcpostgresql_adapter.rb +2 -0
  30. data/lib/activerecord-import/active_record/adapters/jdbcsqlite3_adapter.rb +2 -0
  31. data/lib/activerecord-import/active_record/adapters/mysql2_adapter.rb +2 -0
  32. data/lib/activerecord-import/active_record/adapters/postgresql_adapter.rb +2 -0
  33. data/lib/activerecord-import/active_record/adapters/seamless_database_pool_adapter.rb +2 -0
  34. data/lib/activerecord-import/active_record/adapters/sqlite3_adapter.rb +2 -0
  35. data/lib/activerecord-import/adapters/abstract_adapter.rb +2 -0
  36. data/lib/activerecord-import/adapters/em_mysql2_adapter.rb +2 -0
  37. data/lib/activerecord-import/adapters/mysql2_adapter.rb +2 -0
  38. data/lib/activerecord-import/adapters/mysql_adapter.rb +2 -0
  39. data/lib/activerecord-import/adapters/postgresql_adapter.rb +37 -24
  40. data/lib/activerecord-import/adapters/sqlite3_adapter.rb +4 -2
  41. data/lib/activerecord-import/base.rb +3 -1
  42. data/lib/activerecord-import/import.rb +21 -10
  43. data/lib/activerecord-import/mysql2.rb +2 -0
  44. data/lib/activerecord-import/postgresql.rb +2 -0
  45. data/lib/activerecord-import/sqlite3.rb +2 -0
  46. data/lib/activerecord-import/synchronize.rb +2 -0
  47. data/lib/activerecord-import/value_sets_parser.rb +2 -0
  48. data/lib/activerecord-import/version.rb +3 -1
  49. data/lib/activerecord-import.rb +3 -1
  50. data/test/adapters/jdbcmysql.rb +2 -0
  51. data/test/adapters/jdbcpostgresql.rb +2 -0
  52. data/test/adapters/jdbcsqlite3.rb +2 -0
  53. data/test/adapters/makara_postgis.rb +2 -0
  54. data/test/adapters/mysql2.rb +2 -0
  55. data/test/adapters/mysql2_makara.rb +2 -0
  56. data/test/adapters/mysql2spatial.rb +2 -0
  57. data/test/adapters/postgis.rb +2 -0
  58. data/test/adapters/postgresql.rb +2 -0
  59. data/test/adapters/postgresql_makara.rb +2 -0
  60. data/test/adapters/seamless_database_pool.rb +2 -0
  61. data/test/adapters/spatialite.rb +2 -0
  62. data/test/adapters/sqlite3.rb +2 -0
  63. data/test/import_test.rb +21 -0
  64. data/test/jdbcmysql/import_test.rb +2 -0
  65. data/test/jdbcpostgresql/import_test.rb +2 -0
  66. data/test/jdbcsqlite3/import_test.rb +2 -0
  67. data/test/makara_postgis/import_test.rb +2 -0
  68. data/test/models/account.rb +2 -0
  69. data/test/models/alarm.rb +2 -0
  70. data/test/models/animal.rb +2 -0
  71. data/test/models/bike_maker.rb +2 -0
  72. data/test/models/book.rb +2 -0
  73. data/test/models/car.rb +2 -0
  74. data/test/models/card.rb +2 -0
  75. data/test/models/chapter.rb +2 -0
  76. data/test/models/customer.rb +2 -0
  77. data/test/models/deck.rb +2 -0
  78. data/test/models/dictionary.rb +2 -0
  79. data/test/models/discount.rb +2 -0
  80. data/test/models/end_note.rb +2 -0
  81. data/test/models/group.rb +2 -0
  82. data/test/models/order.rb +2 -0
  83. data/test/models/playing_card.rb +2 -0
  84. data/test/models/promotion.rb +2 -0
  85. data/test/models/question.rb +2 -0
  86. data/test/models/rule.rb +2 -0
  87. data/test/models/tag.rb +3 -0
  88. data/test/models/tag_alias.rb +5 -0
  89. data/test/models/topic.rb +2 -0
  90. data/test/models/user.rb +2 -0
  91. data/test/models/user_token.rb +2 -0
  92. data/test/models/vendor.rb +2 -0
  93. data/test/models/widget.rb +2 -0
  94. data/test/mysql2/import_test.rb +2 -0
  95. data/test/mysql2_makara/import_test.rb +2 -0
  96. data/test/mysqlspatial2/import_test.rb +2 -0
  97. data/test/postgis/import_test.rb +2 -0
  98. data/test/postgresql/import_test.rb +2 -0
  99. data/test/schema/generic_schema.rb +8 -0
  100. data/test/schema/jdbcpostgresql_schema.rb +2 -0
  101. data/test/schema/mysql2_schema.rb +2 -0
  102. data/test/schema/postgis_schema.rb +2 -0
  103. data/test/schema/postgresql_schema.rb +2 -0
  104. data/test/schema/sqlite3_schema.rb +2 -0
  105. data/test/schema/version.rb +2 -0
  106. data/test/sqlite3/import_test.rb +2 -0
  107. data/test/support/active_support/test_case_extensions.rb +2 -0
  108. data/test/support/assertions.rb +2 -0
  109. data/test/support/factories.rb +2 -0
  110. data/test/support/generate.rb +4 -2
  111. data/test/support/mysql/import_examples.rb +2 -1
  112. data/test/support/postgresql/import_examples.rb +40 -1
  113. data/test/support/shared_examples/on_duplicate_key_ignore.rb +2 -0
  114. data/test/support/shared_examples/on_duplicate_key_update.rb +2 -0
  115. data/test/support/shared_examples/recursive_import.rb +2 -0
  116. data/test/support/sqlite3/import_examples.rb +2 -1
  117. data/test/synchronize_test.rb +2 -0
  118. data/test/test_helper.rb +8 -0
  119. data/test/value_sets_bytes_parser_test.rb +2 -0
  120. data/test/value_sets_records_parser_test.rb +2 -0
  121. metadata +5 -3
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.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Dennis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-31 00:00:00.000000000 Z
11
+ date: 2022-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -138,6 +138,7 @@ files:
138
138
  - test/models/question.rb
139
139
  - test/models/rule.rb
140
140
  - test/models/tag.rb
141
+ - test/models/tag_alias.rb
141
142
  - test/models/topic.rb
142
143
  - test/models/user.rb
143
144
  - test/models/user_token.rb
@@ -189,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
190
  - !ruby/object:Gem::Version
190
191
  version: '0'
191
192
  requirements: []
192
- rubygems_version: 3.0.3
193
+ rubygems_version: 3.0.3.1
193
194
  signing_key:
194
195
  specification_version: 4
195
196
  summary: Bulk insert extension for ActiveRecord
@@ -234,6 +235,7 @@ test_files:
234
235
  - test/models/question.rb
235
236
  - test/models/rule.rb
236
237
  - test/models/tag.rb
238
+ - test/models/tag_alias.rb
237
239
  - test/models/topic.rb
238
240
  - test/models/user.rb
239
241
  - test/models/user_token.rb