switchman 3.0.10 → 3.0.11
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.
- checksums.yaml +4 -4
- data/lib/switchman/engine.rb +5 -5
- data/lib/switchman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 49ec10390b095e34032d625e9a1540217c8d4361b7d0961d0f10218d2349ef6a
|
|
4
|
+
data.tar.gz: 29f9748cbf4f1d4d268171ae7c0863d296b23788c8ee0153ee9cb32938933c03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c0c79ce80057b54bb0a7234d9ff09b7b9aa6af18c25b1b0c1b32365244ecb22332c90b2d477d537c24869ec84f9a1af06059e77e9f53a21c2391164df7758338
|
|
7
|
+
data.tar.gz: 7e335d49f3e8e44eb1d2ea1061dd837ceffb5a7505c7d2dbefe11c5bea2ba290bf0795b0f74a938bedd2e79f69dda03bd2da62ffabe8f6f8771da5053007a073
|
data/lib/switchman/engine.rb
CHANGED
|
@@ -68,6 +68,9 @@ module Switchman
|
|
|
68
68
|
|
|
69
69
|
initializer 'switchman.extend_ar', before: 'active_record.initialize_database' do
|
|
70
70
|
::ActiveSupport.on_load(:active_record) do
|
|
71
|
+
# Switchman requires postgres, so just always load the pg adapter
|
|
72
|
+
require 'active_record/connection_adapters/postgresql_adapter'
|
|
73
|
+
|
|
71
74
|
require 'switchman/active_record/abstract_adapter'
|
|
72
75
|
require 'switchman/active_record/association'
|
|
73
76
|
require 'switchman/active_record/attribute_methods'
|
|
@@ -81,6 +84,7 @@ module Switchman
|
|
|
81
84
|
require 'switchman/active_record/migration'
|
|
82
85
|
require 'switchman/active_record/model_schema'
|
|
83
86
|
require 'switchman/active_record/persistence'
|
|
87
|
+
require 'switchman/active_record/postgresql_adapter'
|
|
84
88
|
require 'switchman/active_record/predicate_builder'
|
|
85
89
|
require 'switchman/active_record/query_cache'
|
|
86
90
|
require 'switchman/active_record/query_methods'
|
|
@@ -128,6 +132,7 @@ module Switchman
|
|
|
128
132
|
::ActiveRecord::ConnectionAdapters::AbstractAdapter.prepend(ActiveRecord::AbstractAdapter)
|
|
129
133
|
::ActiveRecord::ConnectionAdapters::ConnectionPool.prepend(ActiveRecord::ConnectionPool)
|
|
130
134
|
::ActiveRecord::ConnectionAdapters::AbstractAdapter.prepend(ActiveRecord::QueryCache)
|
|
135
|
+
::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend(ActiveRecord::PostgreSQLAdapter)
|
|
131
136
|
|
|
132
137
|
::ActiveRecord::DatabaseConfigurations.prepend(ActiveRecord::DatabaseConfigurations)
|
|
133
138
|
::ActiveRecord::DatabaseConfigurations::DatabaseConfig.prepend(ActiveRecord::DatabaseConfigurations::DatabaseConfig)
|
|
@@ -180,11 +185,6 @@ module Switchman
|
|
|
180
185
|
require 'switchman/active_record/table_definition'
|
|
181
186
|
::ActiveRecord::ConnectionAdapters::TableDefinition.prepend(ActiveRecord::TableDefinition)
|
|
182
187
|
|
|
183
|
-
if defined?(::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter)
|
|
184
|
-
require 'switchman/active_record/postgresql_adapter'
|
|
185
|
-
::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend(ActiveRecord::PostgreSQLAdapter)
|
|
186
|
-
end
|
|
187
|
-
|
|
188
188
|
Shard.send(:initialize_sharding)
|
|
189
189
|
end
|
|
190
190
|
end
|
data/lib/switchman/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: switchman
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cody Cutrer
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2022-03-
|
|
13
|
+
date: 2022-03-22 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activerecord
|