switchman 1.3.4 → 1.3.5
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09493336157f61ccb43f4e24f11209a77fda8c97
|
4
|
+
data.tar.gz: b44f57c7ef7a1021e0ef00e4ed994f3e2c39e910
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12532700fa9acf85c4e64ff0e5312a7927672bfa659e84d7d96ca1ebbff391d9117fc94fca5584dc7e5988cd11a9863227670edc1ac990dab709b015c4526981
|
7
|
+
data.tar.gz: 29e030c2de52373968eaed76061c7b9ebee85d8972f6ca827a427acb8d0988bab8f5526f77427c57406897568bc5dbcd868bc0a2af011919f650c4ea5f3046da
|
@@ -94,14 +94,14 @@ module Switchman
|
|
94
94
|
where = inddef.scan(/WHERE (.+)$/).flatten[0]
|
95
95
|
using = inddef.scan(/USING (.+?) /).flatten[0].to_sym
|
96
96
|
|
97
|
-
IndexDefinition.new(table_name, index_name, unique, column_names, [], orders, where, nil, using)
|
97
|
+
::ActiveRecord::ConnectionAdapters::IndexDefinition.new(table_name, index_name, unique, column_names, [], orders, where, nil, using)
|
98
98
|
end
|
99
99
|
else
|
100
100
|
# add info on sort order for columns (only desc order is explicitly specified, asc is the default)
|
101
101
|
desc_order_columns = inddef.scan(/(\w+) DESC/).flatten
|
102
102
|
orders = desc_order_columns.any? ? Hash[desc_order_columns.map {|order_column| [order_column, :desc]}] : {}
|
103
103
|
|
104
|
-
column_names.empty? ? nil : IndexDefinition.new(table_name, index_name, unique, column_names, [], orders)
|
104
|
+
column_names.empty? ? nil : ::ActiveRecord::ConnectionAdapters::IndexDefinition.new(table_name, index_name, unique, column_names, [], orders)
|
105
105
|
end
|
106
106
|
end.compact
|
107
107
|
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: 1.3.
|
4
|
+
version: 1.3.5
|
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: 2015-10-
|
13
|
+
date: 2015-10-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
@@ -548,7 +548,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
548
548
|
version: '0'
|
549
549
|
requirements: []
|
550
550
|
rubyforge_project:
|
551
|
-
rubygems_version: 2.4.
|
551
|
+
rubygems_version: 2.4.5.1
|
552
552
|
signing_key:
|
553
553
|
specification_version: 4
|
554
554
|
summary: Rails 3 sharding magic
|