attr_encryption 0.4.1 → 0.4.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
  SHA256:
3
- metadata.gz: f5a7e26f6c080b0c6d914cffa8de79150718d6af3623c7e2dc3f14d2c73334cb
4
- data.tar.gz: 3b674633927d3d612ce78807753d1c754608377205aad170574bf3c9c25803d0
3
+ metadata.gz: 258965db5320b47075771bde469ef7904a814c72439f03b8bc9b986d37beb1a8
4
+ data.tar.gz: b4bd421e811239df1b3d7495075531aaa5e4163883f3f1738b5bc763e1beb801
5
5
  SHA512:
6
- metadata.gz: c0fb60fc8a51bf09b2a8515aa4d7bb08ec31653dff91b6a203df85b6b06947df161f384f82a8ff1b5ed012b13535d1464f853e451d5586772e4af370ea7f6d68
7
- data.tar.gz: d383b3a5718c3eadacb2b6b3b2418df125a4855e81cd0d75cbf1e8f4a9cce1dfcd1710a8384ac648693c9a472fb4c184c66fbe2b692acf3cef9b9b6f77d3c788
6
+ metadata.gz: 6bc244e2af6c350ff72b1f795325bc1ae7f5daed1f5d0d2ec98240b800aea955cb66dfd9c1181c1dc2feb2d7a0314fd76ac0facfe48b1e55643665a5b131a701
7
+ data.tar.gz: d20af4210f1f9b3d33db7f2223efc8349db9edec11a7a199033e8a2e08bc11c7cf2cd61a037af0e38b33a4764223d661838210f9d269867dbd2c75b3fe305135
@@ -6,7 +6,7 @@
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "attr_encryption".freeze
9
- s.version = "0.4.1"
9
+ s.version = "0.4.2"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
@@ -170,7 +170,7 @@ module AttrEncryption
170
170
  value = send(attribute)
171
171
  value.respond_to?(:empty?) ? !value.empty? : !!value
172
172
  end
173
-
173
+ self.encrypted_attributes ||= {}
174
174
  encrypted_attributes[attribute.to_sym] = options.merge(:attribute => encrypted_attribute_name)
175
175
  end
176
176
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attr_encryption
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Sieh