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 +4 -4
- data/lib/ardb/adapter/base.rb +1 -0
- data/lib/ardb/version.rb +1 -1
- data/test/unit/adapter/base_tests.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA512:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4a5484485c36474860b31db1f64cd6c2d50bfa9dbfc885b38ac248a79fe6022f34915085a842b3cbee868ac8bbe7de5bc03b80d84600185a7154be93675a0dd
|
4
|
+
data.tar.gz: c52b82f4e6277afeac490fae8e3c80b4f71f8b0c73b8fa3170a7a42bf1d88894d4ad6b005961177976e6b68cc6533d965400cfe020fcf8378fea84755ad2d14f
|
5
5
|
SHA1:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e44fd7cb818b602d49e0e5db5fd6a63ae9c23cfa
|
7
|
+
data.tar.gz: 4e687f31400cf5c08a32e29b1153261a7b2c026a
|
data/lib/ardb/adapter/base.rb
CHANGED
@@ -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
|
data/lib/ardb/version.rb
CHANGED
@@ -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.
|
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-
|
13
|
+
date: 2016-06-13 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: assert
|