ardb 0.29.0 → 0.29.1

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: 81b830715964b5aace51929da208df3bf357a35c42e5c38aea50b4d98d625d96
4
- data.tar.gz: f4014e705ae352722d6a16f08061767d31c5851b7c3e0cdc5c6592abcd74d034
3
+ metadata.gz: 50d874e2df679ac2dff5d8617591ec70eb92cdf236324c6b9ba58e815c3a0f97
4
+ data.tar.gz: 28023038c65d75d082cd49545934657e3e11efb9be64cf7055335d09a68707ef
5
5
  SHA512:
6
- metadata.gz: '08a7091251f11c2969aae47148185eae17efe0996b7dd0d79f63ac9648ba13c7d60694fe6b3f46ef43e77924e928f209d0f13cdbdbbd249578e143fc3f6d18a9'
7
- data.tar.gz: 77f04eda98916783b4c1fb076a7bc461fd71f114547d62030f2379be7c5687219e2c5b3e3e925d42ead55d5e8b5e1a6651c0841710665d3313888b3c96935adc
6
+ metadata.gz: b7a3cfcb5f7bc262540e68ff4b0d259b8d9d95d5b109e521506229b4276bad96d3123c8cce6e7b0bf4f36777041fdbe2c714a17ca1f39e29846ba5d11b81b80b
7
+ data.tar.gz: 8cb2f15786e1a57c35ce32a39522aab648aa361ef29f4e0e6e8b63f70a3d5de3f41bfad99477751195a9d1ae68adf8363980211b1bd841841a508d57425246b0
data/Gemfile CHANGED
@@ -1,8 +1,24 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- ruby "~> 2.4"
3
+ ruby "~> 2.5"
4
4
 
5
5
  gemspec
6
6
 
7
+ # Uncomment one of these and run:
8
+ #
9
+ # bundle update activerecord activesupport
10
+ #
11
+ # to test a specific version.
12
+ #
13
+ # Rails 6.1
14
+ gem "activerecord", "~> 6.1"
15
+ gem "activesupport", "~> 6.1"
16
+ # Rails 6.0
17
+ # gem "activerecord", "~> 6.0.3"
18
+ # gem "activesupport", "~> 6.0.3"
19
+ # Rails 5.2
20
+ # gem "activerecord", "~> 5.2.4"
21
+ # gem "activesupport", "~> 5.2.4"
22
+
7
23
  gem "pg", "~> 1.1.4"
8
24
  gem "pry", "~> 0.12.2"
@@ -18,9 +18,9 @@ Gem::Specification.new do |gem|
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ["lib"]
20
20
 
21
- gem.required_ruby_version = "~> 2.4"
21
+ gem.required_ruby_version = "~> 2.5"
22
22
 
23
- gem.add_development_dependency("assert", ["~> 2.18.1"])
23
+ gem.add_development_dependency("assert", ["~> 2.19.0"])
24
24
 
25
25
  gem.add_dependency("activerecord", ["> 5.0", "< 7.0"])
26
26
  gem.add_dependency("activesupport", ["> 5.0", "< 7.0"])
@@ -12,7 +12,71 @@
12
12
  # For compatibility, we require active record first
13
13
  require "active_record"
14
14
 
15
- if ActiveRecord.version.segments.first == 6
15
+ if (
16
+ ActiveRecord.version.segments[0] == 6 &&
17
+ ActiveRecord.version.segments[1] > 0
18
+ )
19
+ require "active_record/aggregations"
20
+ require "active_record/association_relation"
21
+ require "active_record/associations"
22
+ require "active_record/associations/alias_tracker"
23
+ require "active_record/associations/association"
24
+ require "active_record/associations/association_scope"
25
+ require "active_record/associations/belongs_to_association"
26
+ require "active_record/associations/belongs_to_polymorphic_association"
27
+ require "active_record/associations/builder/association"
28
+ require "active_record/associations/builder/belongs_to"
29
+ require "active_record/associations/builder/collection_association"
30
+ require "active_record/associations/builder/has_and_belongs_to_many"
31
+ require "active_record/associations/builder/has_many"
32
+ require "active_record/associations/builder/has_one"
33
+ require "active_record/associations/collection_association"
34
+ require "active_record/associations/collection_proxy"
35
+ require "active_record/associations/foreign_association"
36
+ require "active_record/associations/has_many_association"
37
+ require "active_record/associations/has_many_through_association"
38
+ require "active_record/associations/has_one_association"
39
+ require "active_record/associations/has_one_through_association"
40
+ require "active_record/associations/join_dependency"
41
+ require "active_record/associations/join_dependency/join_association"
42
+ require "active_record/associations/join_dependency/join_base"
43
+ require "active_record/associations/preloader"
44
+ require "active_record/associations/preloader/association"
45
+ require "active_record/associations/preloader/through_association"
46
+ require "active_record/attribute_assignment"
47
+ require "active_record/attribute_methods/before_type_cast"
48
+ require "active_record/attribute_methods/dirty"
49
+ require "active_record/attribute_methods/primary_key"
50
+ require "active_record/attribute_methods/query"
51
+ require "active_record/attribute_methods/read"
52
+ require "active_record/attribute_methods/serialization"
53
+ require "active_record/attribute_methods/time_zone_conversion"
54
+ require "active_record/attribute_methods/write"
55
+ require "active_record/attributes"
56
+ require "active_record/autosave_association"
57
+ require "active_record/base"
58
+ require "active_record/coders/json"
59
+ require "active_record/internal_metadata"
60
+ require "active_record/legacy_yaml_adapter"
61
+ require "active_record/middleware/database_selector"
62
+ require "active_record/null_relation"
63
+ require "active_record/relation/predicate_builder"
64
+ require "active_record/relation/record_fetch_warning"
65
+ require "active_record/result"
66
+ require "active_record/runtime_registry"
67
+ require "active_record/statement_cache"
68
+ require "active_record/table_metadata"
69
+ require "active_record/tasks/database_tasks"
70
+ require "active_record/tasks/mysql_database_tasks"
71
+ require "active_record/tasks/postgresql_database_tasks"
72
+ require "active_record/tasks/sqlite_database_tasks"
73
+ require "arel/collectors/bind"
74
+ require "arel/collectors/composite"
75
+ require "arel/collectors/substitute_binds"
76
+ elsif (
77
+ ActiveRecord.version.segments[0] == 6 &&
78
+ ActiveRecord.version.segments[1] == 0
79
+ )
16
80
  require "active_record/advisory_lock_base"
17
81
  require "active_record/associations/alias_tracker"
18
82
  require "active_record/associations/association"
@@ -51,7 +115,7 @@ if ActiveRecord.version.segments.first == 6
51
115
  require "active_record/tasks/mysql_database_tasks"
52
116
  require "active_record/tasks/postgresql_database_tasks"
53
117
  require "active_record/tasks/sqlite_database_tasks"
54
- else # ActiveRecord 5
118
+ elsif ActiveRecord.version.segments[0] == 5
55
119
  require "active_record/aggregations"
56
120
  require "active_record/association_relation"
57
121
  require "active_record/associations"
@@ -106,6 +170,11 @@ else # ActiveRecord 5
106
170
  require "active_record/tasks/mysql_database_tasks"
107
171
  require "active_record/tasks/postgresql_database_tasks"
108
172
  require "active_record/tasks/sqlite_database_tasks"
173
+ else
174
+ raise(
175
+ "ActiveRecord #{ActiveRecord.version} isn't supported. "\
176
+ "Switch to 5.X or 6.X"
177
+ )
109
178
  end
110
179
 
111
180
  # There are also issues with requiring ActiveSupport. This doesn"t require every
@@ -1,3 +1,3 @@
1
1
  module Ardb
2
- VERSION = "0.29.0"
2
+ VERSION = "0.29.1"
3
3
  end
@@ -23,7 +23,9 @@ ignored_regexes = [
23
23
  /active_record\/test_case/,
24
24
  /active_record\/test_databases/,
25
25
  /active_record\/test_fixtures/,
26
- /active_record\/coders\/yaml_column/
26
+ /active_record\/coders\/yaml_column/,
27
+ # `destroy_association_async_job` requires `ActiveJob` to be required.
28
+ /active_record\/destroy_association_async_job/,
27
29
  ]
28
30
 
29
31
  Result = Struct.new(:file, :state, :reason)
@@ -1,8 +1,9 @@
1
1
  require "assert"
2
2
  require "ardb/adapter/base"
3
3
 
4
+ require "active_record/migration"
4
5
  require "ardb"
5
- # This is needed by the schema dumper but it doesn"t handle requiring it so we
6
+ # This is needed by the schema dumper but it doesn't handle requiring it so we
6
7
  # have to manually, otherwise this errors when you try to run the adapter base
7
8
  # tests by themselves
8
9
  require "active_support/core_ext/class/attribute_accessors"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ardb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 0.29.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-12-17 00:00:00.000000000 Z
12
+ date: 2021-01-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: assert
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 2.18.1
20
+ version: 2.19.0
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 2.18.1
27
+ version: 2.19.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: activerecord
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -164,14 +164,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - "~>"
166
166
  - !ruby/object:Gem::Version
167
- version: '2.4'
167
+ version: '2.5'
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - ">="
171
171
  - !ruby/object:Gem::Version
172
172
  version: '0'
173
173
  requirements: []
174
- rubygems_version: 3.1.2
174
+ rubyforge_project:
175
+ rubygems_version: 2.7.6.2
175
176
  signing_key:
176
177
  specification_version: 4
177
178
  summary: Activerecord database tools.