directiverecord 0.1.30 → 0.1.31

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: 8af004fe8d656116a9a968b0ceea0a5c558685cc
4
- data.tar.gz: 3835a1b1137052e19f2994688fb48ab8412963ba
3
+ metadata.gz: c9efd9975c4ca2c83cb43138711e0700470e3b43
4
+ data.tar.gz: fdd9f3e1885b7c357bf63659c685d8a0f1b3f970
5
5
  SHA512:
6
- metadata.gz: 72a42dd40f987a4467f51a2dfb79964fd4e2b90b7d2c38cfd36acf31ee48f0ed97a343ed950e41d95695c8a272803b7f425060f10c8ecb674ab9948985e88e80
7
- data.tar.gz: eb544e7122a967db1e3929398070b8a0a85eca0bd4a5cc1e3a6ce207e47f1a879996e421ae063dcbe1f24a4d6dde2b1cd76d307b390a6766eabf4fc6bf05d19e
6
+ metadata.gz: 0631e86b65c613be8a629d11483ead27423658d9c93e063d78c9586ceac6bc0e23365210311bdb5291399cfa1aa543efb1ae8f470b2814b75e5886c7c23ac0e3
7
+ data.tar.gz: 57624b34287d89498c51b4d98f8672597c72adc0c97e5edad0c49f003f3f89090a160922892dc2a8b9787a8c28523e4c3caa643c5867e9c453043a297042ca11
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = DirectiveRecord CHANGELOG
2
2
 
3
+ == Version 0.1.31 (August 26, 2015)
4
+
5
+ * Improved the :group_by, :having and :order_by option correction
6
+
3
7
  == Version 0.1.30 (August 26, 2015)
4
8
 
5
9
  * Made the :group_by, :having and :order_by option correction more strict
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.30
1
+ 0.1.31
@@ -48,7 +48,7 @@ module DirectiveRecord
48
48
  keys.each do |key|
49
49
  if value = options[key]
50
50
  value = value.join delimiter
51
- aliases.each{|pattern, replacement| value.gsub! /(?=\b|\s)#{Regexp.escape pattern}(?=\b|\s)/, replacement}
51
+ aliases.each{|pattern, replacement| value.gsub! /(?=^|\b|\s)#{Regexp.escape pattern}(?=\b|\s|$)/, replacement}
52
52
  options[key] = value
53
53
  end
54
54
  end
@@ -24,7 +24,7 @@ module DirectiveRecord
24
24
  [:group_by, :having, :order_by].each do |key|
25
25
  if value = options[key]
26
26
  value = value.join ", "
27
- aliases.each{|pattern, replacement| value.gsub! /(?=\b|\s)#{Regexp.escape pattern}(?=\b|\s)/, replacement}
27
+ aliases.each{|pattern, replacement| value.gsub! /(?=^|\b|\s)#{Regexp.escape pattern}(?=\b|\s|$)/, replacement}
28
28
  options[key] = value
29
29
  end
30
30
  end
@@ -1,7 +1,7 @@
1
1
  module DirectiveRecord
2
2
  MAJOR = 0
3
3
  MINOR = 1
4
- TINY = 30
4
+ TINY = 31
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: directiverecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.30
4
+ version: 0.1.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Engel