action_encrypt 0.1.3 → 0.1.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
  SHA256:
3
- metadata.gz: 8e59f5f46d1b9550b12c9d27443b58b79a725a3d24b1b1edb6886394c12863ed
4
- data.tar.gz: c757724f523f8d78bffc1e22ebc6210aae1a32a3322061f8d59fad1808203def
3
+ metadata.gz: 4846f11674bd318a064d4954d612a33bb4eee3a9ecba96472333889b27063a97
4
+ data.tar.gz: f73a0307327d54fd56de0b2b2b585b2d31dd5f94e9f536f2ef0718f7e223e2d5
5
5
  SHA512:
6
- metadata.gz: a30f681847e6bff7679a3e380f06118e134c15053147389767259292181933fd29e8eafbcd9399d8938155042cedef6d1e89381be9ef27cf21509fd78594ef63
7
- data.tar.gz: f9a1ed8ac7fd15cc68a8545055c4ae83f1ea9315837651ff3ec7ba79f13eec87e7852d0eac15fa988e21e71c6de6264363543229840c4a1c4c986d5d02a1327f
6
+ metadata.gz: c326bbf69c0365c39a1d8109903115b34726dff1c628eda207022b1da3b72c26580ab73f82aa5a2f4e1e6869b2b806402462fa08b530c821cd8ad0b55f3b9f3d
7
+ data.tar.gz: bf5013ec2d414675e37f2ae803711fdf6ffd129ff8cc0a626dcd9322c39eac41680bc38b24428965876a64c8229450089486f36ea40fc690f3eebdda2bcb80ee
@@ -6,6 +6,8 @@ module ActionEncrypt
6
6
 
7
7
  class_methods do
8
8
  def search_encrypted(name, opts = {})
9
+ require 'blind_index'
10
+
9
11
  blind_index :"#{name}", key: [Rails.application.credentials.blind_index_key].pack("H*")
10
12
 
11
13
  before_validation :"compute_#{name}_bidx"
@@ -1,3 +1,3 @@
1
1
  module ActionEncrypt
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_encrypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Van Der Beek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-29 00:00:00.000000000 Z
11
+ date: 2021-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails