ardb 0.28.1 → 0.28.2

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
  SHA512:
3
- metadata.gz: 3a33083aa8a07a009733067aef0a4ccf2d54f59a9a8ef0bb928e54239930fbfa8ff9a5338fdfc1a872104dd3d1d96dbf628802467b5c1ff60f4c6230b87b0e47
4
- data.tar.gz: 63c06b03761b7e1e38fed261aa4168db133019130a5dc8170b908605a7b3594292bb05dd099b5ad779cea0d645703ef20379b5a1babff7a83b4ba3ee4a8ccfb5
3
+ metadata.gz: f4a5484485c36474860b31db1f64cd6c2d50bfa9dbfc885b38ac248a79fe6022f34915085a842b3cbee868ac8bbe7de5bc03b80d84600185a7154be93675a0dd
4
+ data.tar.gz: c52b82f4e6277afeac490fae8e3c80b4f71f8b0c73b8fa3170a7a42bf1d88894d4ad6b005961177976e6b68cc6533d965400cfe020fcf8378fea84755ad2d14f
5
5
  SHA1:
6
- metadata.gz: c1b302324ad7f7951179fd764b611ac576aabae6
7
- data.tar.gz: 51d0ce79158fb332dcf788e4d1c7625c19389800
6
+ metadata.gz: e44fd7cb818b602d49e0e5db5fd6a63ae9c23cfa
7
+ data.tar.gz: 4e687f31400cf5c08a32e29b1153261a7b2c026a
@@ -30,6 +30,7 @@ module Ardb::Adapter
30
30
  pattern.gsub!(escape_char){ escape_char * 2 }
31
31
  # don't allow custom wildcards
32
32
  pattern.gsub!(/%|_/){ |wildcard_char| "#{escape_char}#{wildcard_char}" }
33
+ pattern
33
34
  end
34
35
 
35
36
  def foreign_key_add_sql(*args); raise NotImplementedError; end
@@ -1,3 +1,3 @@
1
1
  module Ardb
2
- VERSION = "0.28.1"
2
+ VERSION = "0.28.2"
3
3
  end
@@ -51,6 +51,9 @@ class Ardb::Adapter::Base
51
51
  "#{Factory.string}"
52
52
  exp = pattern.gsub("\\"){ "\\\\" }.gsub('%', "\\%").gsub('_', "\\_")
53
53
  assert_equal exp, subject.escape_like_pattern(pattern)
54
+
55
+ pattern = Factory.string
56
+ assert_equal pattern, subject.escape_like_pattern(pattern)
54
57
  end
55
58
 
56
59
  should "allow using a custom escape char when escaping like patterns" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ardb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.1
4
+ version: 0.28.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2016-06-03 00:00:00 Z
13
+ date: 2016-06-13 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: assert