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: 69169d28871dd3550b69d84b51f7077a83a509ae
4
- data.tar.gz: 12462d3bf91a16c78bea987aeb951d914079c9e4
3
+ metadata.gz: bed23fbda662050ad5336f1bd759b5bce18abf62
4
+ data.tar.gz: d41bc7f0ad1ff7d7d8ba9133568aa2d0cf47a9c0
5
5
  SHA512:
6
- metadata.gz: 3649f0d5312f66e9583796237b9778f39b1f01fd368373caa1bd8d5ea1dd9ca1b864bb7ac72766f51d2853890dfea24a968fe72836fe7ea92d33de8000883f01
7
- data.tar.gz: cb9bb32fe484d8d7831425d39504883d21a04491b9c6c7025f3e41129ca2ffd77e3adc8cd6d9dc95948f18764ad9050a655ddf718779457e484270b28cb54fe2
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], double_byte_char, single_byte_char])])
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
@@ -1,3 +1,3 @@
1
1
  module RansackerTranslator
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  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.3
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: 2014-12-26 00:00:00.000000000 Z
11
+ date: 2015-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails