pg_saurus 3.4.0 → 3.4.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
  SHA1:
3
- metadata.gz: bfdd2685401333873ea9a135aae494ceadae569c
4
- data.tar.gz: f9655837b68a589bf27decdf20c2f4601bd71536
3
+ metadata.gz: 618aace6dddc8e43129c5d58d4841c1dc56b73ea
4
+ data.tar.gz: 0d615cbdb00ec89301e0338598abc71580099b5f
5
5
  SHA512:
6
- metadata.gz: 56a742d9ee24d6c27e5057aa87a9fb9034670e0e577a8ef66128850a489321019d0e5016ad0160f54a2e01dc3c8be66f992dc692d94e6d8c0f8734c6be250ed5
7
- data.tar.gz: 4c047507f0762b571c64aec2a85a000d779bab42f98aed65652fe2e918f5f25291ea5cf62f0aa3a918d04cf5557958432281cfdae8e477247bf15f3dc97f3eea
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 = /(.+)\s(\w+)$/
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
@@ -1,4 +1,4 @@
1
1
  module PgSaurus
2
2
  # Version of pg_saurus gem.
3
- VERSION = "3.4.0"
3
+ VERSION = "3.4.1"
4
4
  end
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.0
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-14 00:00:00.000000000 Z
16
+ date: 2019-03-20 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: pg