pg_saurus 3.4.0 → 3.4.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: 618aace6dddc8e43129c5d58d4841c1dc56b73ea
|
|
4
|
+
data.tar.gz: 0d615cbdb00ec89301e0338598abc71580099b5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fd6a9d724576108778232318bf5d126cf0093d7761f1b4b0fdd12eb178a80bb14cc589b41fe4ea37fdb820cdb65e2251f2a846d862cbacd80bd4996fb94e7ce5
|
|
7
|
+
data.tar.gz: 8270bf73dc1723b0c2db75259d764e8968f3403081a15ff616838022fb4ac02a8edc9a38589fffaf64fc1b1ef0910eab76b6833fc400e10140e8ee449afe0f5f
|
|
@@ -2,11 +2,11 @@ module ActiveRecord
|
|
|
2
2
|
module ConnectionAdapters # :nodoc:
|
|
3
3
|
module SchemaStatements # :nodoc:
|
|
4
4
|
# Regexp used to find the function name and function argument of a
|
|
5
|
-
# function call
|
|
5
|
+
# function call:
|
|
6
6
|
FUNCTIONAL_INDEX_REGEXP = /(\w+)\(((?:'.+'(?:::\w+)?, *)*)(\w+)\)/
|
|
7
7
|
|
|
8
|
-
# Regexp used to find the operator name
|
|
9
|
-
OPERATOR_REGEXP = /(
|
|
8
|
+
# Regexp used to find the operator name (or operator string, e.g. "DESC NULLS LAST"):
|
|
9
|
+
OPERATOR_REGEXP = /(.+?)\s([\w\s]+)$/
|
|
10
10
|
|
|
11
11
|
# Redefine original add_index method to handle :concurrently option.
|
|
12
12
|
#
|
|
@@ -159,7 +159,7 @@ module ActiveRecord
|
|
|
159
159
|
column_name
|
|
160
160
|
end
|
|
161
161
|
|
|
162
|
-
result_name += "_" + operator_name if operator_name
|
|
162
|
+
result_name += "_" + operator_name.parameterize.underscore if operator_name
|
|
163
163
|
|
|
164
164
|
result_name
|
|
165
165
|
end
|
data/lib/pg_saurus/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pg_saurus
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.4.
|
|
4
|
+
version: 3.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Potapov Sergey
|
|
@@ -13,7 +13,7 @@ authors:
|
|
|
13
13
|
autorequire:
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
|
-
date: 2019-03-
|
|
16
|
+
date: 2019-03-20 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: pg
|