ransacker_translator 0.0.3 → 0.0.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bed23fbda662050ad5336f1bd759b5bce18abf62
|
4
|
+
data.tar.gz: d41bc7f0ad1ff7d7d8ba9133568aa2d0cf47a9c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7e12a13c5d4a3872af081d8f558efffada92839a4b8cc7d92e5b033455641d9363dfd7a876dc1155a830cebca1aa87ae20eae9770c2f9c4b1d98aea62bf1cf9
|
7
|
+
data.tar.gz: b3fd20b6c3c252ed6a0e53e692c55984c75063ec9b7c533226c7d1be4b1f11b507c2c1175b4fac31e091cb3eb4ebdb6708c7829c4245b5c1c2e9d079fcb57d5c
|
@@ -11,7 +11,10 @@ module RansackerTranslator
|
|
11
11
|
double_byte_char = '-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz !#$%&¥;:'
|
12
12
|
Arel::Nodes::NamedFunction.new("UPPER",
|
13
13
|
[Arel::Nodes::NamedFunction.new("TRANSLATE",
|
14
|
-
[parent.table[column],
|
14
|
+
[parent.table[column],
|
15
|
+
double_byte_char,
|
16
|
+
single_byte_char].map { |it| Arel::Nodes.build_quoted(it) })
|
17
|
+
])
|
15
18
|
end
|
16
19
|
end
|
17
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ransacker_translator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toyoaki Oko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|