activerecord-import 2.0.0 → 2.1.0

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: f55c9faf85e948fbeb480ebca5baeca11b2275a626bc6ba7517e9d3e8c37e9e7
4
- data.tar.gz: 80b267b08ef3a10bb91b029401e8fb6b49fdfcadeeb29a2e5e18fd6c8f529192
3
+ metadata.gz: ed6151dcefbe456505980e5f6a89898da893ee6e25ae4aeddc28aa0b1efe0765
4
+ data.tar.gz: 381eb0b7b0910fc6900a73448728644e2e1d996e7744f9c8ff98d65ffefbaaf0
5
5
  SHA512:
6
- metadata.gz: f838da07331afe7827ad7d4f323ebf3f2191decd59a82359393f20eee866345258abb979875dd1c9b853533099797cdf7599ded20ca4e07997f8bce491f4c03e
7
- data.tar.gz: 5a257bacb43492f25a65ecc382fe8ad126c4dac474eae7ee2beb3ba92c2cb95e64070a40cd20c48e47f46b51e64b69c2addd76a15fed75863df2ecb4a0fbdb70
6
+ metadata.gz: '08492e9de01d21c6c8b5a12c8cd35c01b92040d148a7abc72a098405b10d0f1ae971ed2eb4185b8a2415a9bdb578452746f90aff5f57f50b4568082227a9dad4'
7
+ data.tar.gz: 297a437db1f4098f716bc55c47b22346634677d3abf3706634ed7c2aecd74d959d356720d353f369e588bcba4b9f0c09db5ce444908b0e75c75353ebc74fa059
@@ -125,11 +125,13 @@ jobs:
125
125
  bundle exec rake test:mysql2
126
126
  bundle exec rake test:mysql2_makara
127
127
  bundle exec rake test:mysql2spatial
128
+ bundle exec rake test:mysql2_proxy
128
129
  - name: Run tests with postgresql
129
130
  run: |
130
131
  bundle exec rake test:postgis
131
132
  bundle exec rake test:postgresql
132
133
  bundle exec rake test:postgresql_makara
134
+ bundle exec rake test:postgresql_proxy
133
135
  - name: Run tests with seamless_database_pool
134
136
  run: |
135
137
  bundle exec rake test:seamless_database_pool
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## Changes in 2.1.0
2
+
3
+ ### New Features
4
+
5
+ * Add Support for `active_record_proxy_adapters` gem thanks to @stingrayzboy via #\867.
6
+ Since Rails 7.1 makara no longer works and it is not currently maintained. The @nasdaq team
7
+ have written a gem called [active_record_proxy_adapters](https://rubygems.org/gems/active_record_proxy_adapters)
8
+ that implements some makara functionality.
9
+
1
10
  ## Changes in 2.0.0
2
11
 
3
12
  ### Breaking Changes
data/Rakefile CHANGED
@@ -19,11 +19,13 @@ ADAPTERS = %w(
19
19
  mysql2
20
20
  mysql2_makara
21
21
  mysql2spatial
22
+ mysql2_proxy
22
23
  jdbcmysql
23
24
  jdbcsqlite3
24
25
  jdbcpostgresql
25
26
  postgresql
26
27
  postgresql_makara
28
+ postgresql_proxy
27
29
  postgis
28
30
  makara_postgis
29
31
  sqlite3
@@ -11,8 +11,10 @@ module ActiveRecord::Import
11
11
  case adapter
12
12
  when 'mysql2_makara' then 'mysql2'
13
13
  when 'mysql2spatial' then 'mysql2'
14
+ when 'mysql2_proxy' then 'mysql2'
14
15
  when 'spatialite' then 'sqlite3'
15
16
  when 'postgresql_makara' then 'postgresql'
17
+ when 'postgresql_proxy' then 'postgresql'
16
18
  when 'makara_postgis' then 'postgresql'
17
19
  when 'postgis' then 'postgresql'
18
20
  when 'cockroachdb' then 'postgresql'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveRecord
4
4
  module Import
5
- VERSION = "2.0.0"
5
+ VERSION = "2.1.0"
6
6
  end
7
7
  end
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ ENV["ARE_DB"] = "mysql2"
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ ENV["ARE_DB"] = "postgresql"
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'logger'
4
+
3
5
  ENV["ARE_DB"] = "trilogy"
4
6
 
5
7
  if ENV['AR_VERSION'].to_f <= 7.0
@@ -16,6 +16,9 @@ mysql2spatial:
16
16
  mysql2_makara:
17
17
  <<: *mysql2
18
18
 
19
+ mysql2_proxy:
20
+ <<: *mysql2
21
+
19
22
  postgresql: &postgresql
20
23
  <<: *common
21
24
  username: postgres
@@ -26,6 +29,9 @@ postgresql: &postgresql
26
29
  postresql_makara:
27
30
  <<: *postgresql
28
31
 
32
+ postresql_proxy:
33
+ <<: *postgresql
34
+
29
35
  postgis:
30
36
  <<: *postgresql
31
37
 
@@ -30,6 +30,9 @@ mysql2spatial:
30
30
  mysql2_makara:
31
31
  <<: *mysql2
32
32
 
33
+ mysql2_proxy:
34
+ <<: *mysql2
35
+
33
36
  oracle:
34
37
  <<: *common
35
38
  adapter: oracle
@@ -45,6 +48,9 @@ postgresql: &postgresql
45
48
  postresql_makara:
46
49
  <<: *postgresql
47
50
 
51
+ postresql_proxy:
52
+ <<: *postgresql
53
+
48
54
  postgis:
49
55
  <<: *postgresql
50
56
 
@@ -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
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__))
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: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Dennis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
11
+ date: 2025-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -105,10 +105,12 @@ files:
105
105
  - test/adapters/makara_postgis.rb
106
106
  - test/adapters/mysql2.rb
107
107
  - test/adapters/mysql2_makara.rb
108
+ - test/adapters/mysql2_proxy.rb
108
109
  - test/adapters/mysql2spatial.rb
109
110
  - test/adapters/postgis.rb
110
111
  - test/adapters/postgresql.rb
111
112
  - test/adapters/postgresql_makara.rb
113
+ - test/adapters/postgresql_proxy.rb
112
114
  - test/adapters/seamless_database_pool.rb
113
115
  - test/adapters/spatialite.rb
114
116
  - test/adapters/sqlite3.rb
@@ -151,9 +153,11 @@ files:
151
153
  - test/models/widget.rb
152
154
  - test/mysql2/import_test.rb
153
155
  - test/mysql2_makara/import_test.rb
156
+ - test/mysql2_proxy/import_test.rb
154
157
  - test/mysqlspatial2/import_test.rb
155
158
  - test/postgis/import_test.rb
156
159
  - test/postgresql/import_test.rb
160
+ - test/postgresql_proxy/import_test.rb
157
161
  - test/schema/generic_schema.rb
158
162
  - test/schema/jdbcpostgresql_schema.rb
159
163
  - test/schema/mysql2_schema.rb
@@ -208,10 +212,12 @@ test_files:
208
212
  - test/adapters/makara_postgis.rb
209
213
  - test/adapters/mysql2.rb
210
214
  - test/adapters/mysql2_makara.rb
215
+ - test/adapters/mysql2_proxy.rb
211
216
  - test/adapters/mysql2spatial.rb
212
217
  - test/adapters/postgis.rb
213
218
  - test/adapters/postgresql.rb
214
219
  - test/adapters/postgresql_makara.rb
220
+ - test/adapters/postgresql_proxy.rb
215
221
  - test/adapters/seamless_database_pool.rb
216
222
  - test/adapters/spatialite.rb
217
223
  - test/adapters/sqlite3.rb
@@ -254,9 +260,11 @@ test_files:
254
260
  - test/models/widget.rb
255
261
  - test/mysql2/import_test.rb
256
262
  - test/mysql2_makara/import_test.rb
263
+ - test/mysql2_proxy/import_test.rb
257
264
  - test/mysqlspatial2/import_test.rb
258
265
  - test/postgis/import_test.rb
259
266
  - test/postgresql/import_test.rb
267
+ - test/postgresql_proxy/import_test.rb
260
268
  - test/schema/generic_schema.rb
261
269
  - test/schema/jdbcpostgresql_schema.rb
262
270
  - test/schema/mysql2_schema.rb