active_record_query_fixer 0.0.6 → 0.0.7

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
  SHA256:
3
- metadata.gz: 286f64ce0867ac277cd2b0483b86336feeecc0ef1b1bfcb505fe180ceea0037a
4
- data.tar.gz: d27dfa1586fa4014ceeaeebb221f0e130b65664ae4236d67a57922fdfe4a1475
3
+ metadata.gz: 65c48f74a79cfa27fcc9c02cf33eba5dde33ce47d86e395ecb354d6819ae8943
4
+ data.tar.gz: 5bbb57d47062a495de2b1c337551f7b82063ae569094ab5e0b538974b6c1b581
5
5
  SHA512:
6
- metadata.gz: 305e9f4a2626d28488593418e5e53f6047675557f2cce27bee031cd22f907704bf188ce820dbfc9017a34cb5f6bfce217c6c6e55eb7c08e7a60a1083fb26d668
7
- data.tar.gz: b2068204ae6b377ee409d6a36bd97c8851bb22c742a41ae9f33c36490d09f5777b271e9b1ecb83116b7f87d67f0cbd9edde98c90a2ebfc250c3782eb24865af3
6
+ metadata.gz: 0cc9451b46d0a9df30beb5c5135c733bd3df30fd0c6758c033764d74e52052b9644b7c1fc3eadfdfeb5a8c3d01acd31ecb4379882d17ae423761574da6fef3fd
7
+ data.tar.gz: 2a8d48a3d80ad51d45fe2a7ff501337200e41ea2665078dc8cc380ac585941778919a861d48e4db2a5d57181734ea4f51aa270692cbcfd7c22dbb9db228ef83f
@@ -79,7 +79,7 @@ private
79
79
  end
80
80
 
81
81
  def group_by_order?(order)
82
- !order.match?(/\A\s*(COUNT|SUM)\(/i)
82
+ order.is_a?(String) && !order.match?(/\A\s*(COUNT|SUM)\(/i)
83
83
  end
84
84
  end
85
85
 
@@ -1,3 +1,3 @@
1
1
  class ActiveRecordQueryFixer
2
- VERSION = "0.0.6".freeze
2
+ VERSION = "0.0.7".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_query_fixer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-22 00:00:00.000000000 Z
11
+ date: 2019-10-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A library for automatically added `.select` on a column used for `.distinct`
14
14
  or automatically adding `.group` for a column used for order.
@@ -44,8 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
46
  requirements: []
47
- rubyforge_project:
48
- rubygems_version: 2.7.7
47
+ rubygems_version: 3.0.4
49
48
  signing_key:
50
49
  specification_version: 4
51
50
  summary: A library for automatically added `.select` on a column used for `.distinct`