directiverecord 0.1.19 → 0.1.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Yzk0MWI2Y2VlNTdlZTlhN2YxYmFhNWUzNjFiYWExMmVkY2FjMTNiZA==
4
+ Nzc2MmU5YWE1N2FhM2VhYzFhYmQ3OWMyOTYzNjAwNDZjYjgyOTAzNw==
5
5
  data.tar.gz: !binary |-
6
- MDBiMWY2N2NkYWRlMDkzOGQwNTRmMmU0MzM1NTgwY2FlOTk4N2UyNQ==
6
+ ZjdmNzkzNGNhYTJmYTM1YzVlYWRlY2NkNzk0MzNmNjFmMWQzODllNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGI0ZTBhNTY4MGU5NTQ5YTIyNWI3MTJiYWRkMzlkODRhOTNlZWJmZmJjZDM3
10
- NDcxZTg1YjA0NjU3OGUyMDlkYWVlMzUzMjkzYWZmZjg5MTE5ZjEzMTk4ODZk
11
- MGU5ODQzOGJiNjE5MzNjZWY4NjBmZjUzZjI2ZTYxZTJiZDc4MDk=
9
+ OTZjYjJjMzliZDljNjY3OTQ2MzU0MWMwOTJlZWU1ODNlMzM1Mjk0MmE0ZmJm
10
+ MWEwOGMwYzNlMzEzMmIyYjBlNzJlM2MzMWI4ZDZhZmNlMGFlMzcwNjM4NjUz
11
+ YjRjZjY3YWM1ZTkxYzhlOTE2Y2RkNGY3YWVmMjA5YjI0OGJlMWI=
12
12
  data.tar.gz: !binary |-
13
- MmEzN2M3ZjhlZWE5YmZkZGRkNDMyN2ZhNDkxZjBkOTc0YWExYjYxMDc5NDQ1
14
- MmU2N2JjMGRjZTQ1ODMyNTIzNzYwNWY5OWViZjgwMmEwOWY0OGU3YjZlZTQ0
15
- OTAzYjg1ZjQ3MzcyN2QzMGM2MGFiNzZjMDFkZTg1Y2U2OWU1MmU=
13
+ NGU5ZDkzYjIyZGE1MDU2ZjgzODFjODgzZmZhM2Y5OGM1ODgxOTkwZjE5Mzhk
14
+ NmU0NjY1ZWI4ZWI2ZGU3ZTljOTlkOTEyOTBjY2UwZmYyZjQwMmQwOTU0NmY4
15
+ OGY2ZmE1NjJjY2FmZTA2OGNhNzZkOWUyMmJlZDVhYWIzOGNmNWQ=
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = DirectiveRecord CHANGELOG
2
2
 
3
+ == Version 0.1.20 (April 3, 2015)
4
+
5
+ * Improved HAVING statement detection
6
+
3
7
  == Version 0.1.19 (March 25, 2015)
4
8
 
5
9
  * Corrected normalize_group_by! when dealing with numerized calculations
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.19
1
+ 0.1.20
@@ -240,7 +240,7 @@ SQL
240
240
  .split(/\b(and|or)\b/i).reject{|sql| %w(and or).include? sql.downcase}
241
241
  .collect{|sql| sql = sql.strip; (sql[0] == "(" && sql[-1] == ")" ? sql[1..-1] : sql)}
242
242
  .all? do |sql|
243
- sql.match /(.*)\s*(=|<=>|>=|>|<=|<|<>|!=|is|like|rlike|regexp|in|between|not|sounds|soundex)(\b|\s|$)/i
243
+ sql.match /(.*?)\s*(=|<=>|>=|>|<=|<|<>|!=|is|like|rlike|regexp|in|between|not|sounds|soundex)(\b|\s|$)/i
244
244
  path = $1.strip
245
245
  !(aliases[path] || path).match(/\b(count|sum|min|max|avg)\(/i)
246
246
  end
@@ -1,7 +1,7 @@
1
1
  module DirectiveRecord
2
2
  MAJOR = 0
3
3
  MINOR = 1
4
- TINY = 19
4
+ TINY = 20
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: directiverecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Engel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-25 00:00:00.000000000 Z
11
+ date: 2015-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord