switchman 1.12.0 → 1.12.1
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7f51b0f73ecf8a120874ea26b445667fec18f05
|
4
|
+
data.tar.gz: b5a6230b66f1ada9c4e43723455e3a2e89d1b890
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe5d162dd3898d974f646821b20530657e98ff432c31900a924668852df2ab745c2bf9b9dee8f43dab50d02b0085f320c9b5e64804ba4c87166c94f15f4be47a
|
7
|
+
data.tar.gz: ac04c1e4f2908c1361e95f1d13a6fccf014c2f0a15b4ff2277a0a0e60afa8d53041e96204b0f1e71331ab8187eaec81fb909d286c3ccb78938e2a60902d820e4
|
@@ -185,7 +185,7 @@ module Switchman
|
|
185
185
|
|
186
186
|
scope ||= Shard.all
|
187
187
|
if ::ActiveRecord::Relation === scope && scope.order_values.empty?
|
188
|
-
scope = scope.order("database_server_id IS NOT NULL, database_server_id, id")
|
188
|
+
scope = scope.order(::Arel.sql("database_server_id IS NOT NULL, database_server_id, id"))
|
189
189
|
end
|
190
190
|
|
191
191
|
if parallel > 0
|
data/lib/switchman/version.rb
CHANGED
data/lib/tasks/switchman.rake
CHANGED
@@ -26,7 +26,7 @@ module Switchman
|
|
26
26
|
|
27
27
|
servers = filter_database_servers_chain.call(servers)
|
28
28
|
|
29
|
-
scope = base_scope.order("database_server_id IS NOT NULL, database_server_id, id")
|
29
|
+
scope = base_scope.order(::Arel.sql("database_server_id IS NOT NULL, database_server_id, id"))
|
30
30
|
if servers != DatabaseServer.all
|
31
31
|
conditions = ["database_server_id IN (?)", servers.map(&:id)]
|
32
32
|
conditions.first << " OR database_server_id IS NULL" if servers.include?(Shard.default.database_server)
|
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: 1.12.
|
4
|
+
version: 1.12.1
|
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: 2018-04-
|
13
|
+
date: 2018-04-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|