attr_encryption 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -2
- data/attr_encryption.gemspec +6 -6
- data/lib/attr_encryption.rb +2 -2
- data/spec/mysql_encryption_spec.rb +0 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffa5d165ddabf25bd02d8609762a66dcd3456bd6a2faae99a4f2e5b899840605
|
4
|
+
data.tar.gz: ebd7e6a042acc3adb9cdc01844fe78422c2a2da991c845cea68c28fa18e686ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b3de9ba0bc16f2297cb89a3f1befe742194357fe841b46f7ba236fd106231cac6c29590718cd5b99c0129170d04034438b5f4e8c12257ba2b983697c25d9366
|
7
|
+
data.tar.gz: 92960abb6db742633ca889b49ce227859854e52dd7e4053702e718914fda916fdd7e0a6975b81eba3c7098035f55e4a793ef10f9f4194b3a555b00e56d60b6ac
|
data/Gemfile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
# Add dependencies required to use your gem here.
|
3
3
|
# Example:
|
4
|
-
gem "activesupport", "= 7.
|
5
|
-
|
4
|
+
#gem "activesupport", "= 7.1.1"
|
5
|
+
gem 'activesupport', '~> 6.1.7.6'
|
6
6
|
# Add dependencies to develop your gem here.
|
7
7
|
# Include everything needed to run rake, tests, features, etc.
|
8
8
|
group :development do
|
@@ -10,4 +10,5 @@ group :development do
|
|
10
10
|
gem "rdoc", "~> 4.1"
|
11
11
|
gem "bundler", "~> 2.4.10"
|
12
12
|
gem "jeweler", "~> 2.3"
|
13
|
+
gem "pry-byebug"
|
13
14
|
end
|
data/attr_encryption.gemspec
CHANGED
@@ -6,12 +6,12 @@
|
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "attr_encryption".freeze
|
9
|
-
s.version = "0.4.
|
9
|
+
s.version = "0.4.3"
|
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]
|
13
13
|
s.authors = ["Dave Sieh".freeze, "Kendra".freeze]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2017-07-21"
|
15
15
|
s.description = "Provides an extension for Ruby and rails object to support a flexible means of encrypting attributes.".freeze
|
16
16
|
s.email = "dave.sieh@providigm.com".freeze
|
17
17
|
s.extra_rdoc_files = [
|
@@ -46,23 +46,23 @@ Gem::Specification.new do |s|
|
|
46
46
|
s.specification_version = 4
|
47
47
|
|
48
48
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
49
|
-
s.add_runtime_dependency(%q<activesupport>.freeze, ["
|
49
|
+
s.add_runtime_dependency(%q<activesupport>.freeze, ["6.1.7.6"])
|
50
50
|
s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
|
51
51
|
s.add_development_dependency(%q<rdoc>.freeze, ["~> 4.1"])
|
52
52
|
s.add_development_dependency(%q<bundler>.freeze, ["~> 2.4.10"])
|
53
53
|
s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.3"])
|
54
54
|
else
|
55
|
-
s.add_dependency(%q<activesupport>.freeze, ["
|
55
|
+
s.add_dependency(%q<activesupport>.freeze, ["6.1.7.6"])
|
56
56
|
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
57
57
|
s.add_dependency(%q<rdoc>.freeze, ["~> 4.1"])
|
58
58
|
s.add_dependency(%q<bundler>.freeze, ["~> 2.4.10"])
|
59
59
|
s.add_dependency(%q<jeweler>.freeze, ["~> 2.3"])
|
60
60
|
end
|
61
61
|
else
|
62
|
-
s.add_dependency(%q<activesupport>.freeze, ["
|
62
|
+
s.add_dependency(%q<activesupport>.freeze, ["6.1.7.6"])
|
63
63
|
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
64
64
|
s.add_dependency(%q<rdoc>.freeze, ["~> 4.1"])
|
65
|
-
s.add_dependency(%q<bundler>.freeze, ["~>2.4.10"])
|
65
|
+
s.add_dependency(%q<bundler>.freeze, ["~> 2.4.10"])
|
66
66
|
s.add_dependency(%q<jeweler>.freeze, ["~> 2.3"])
|
67
67
|
end
|
68
68
|
end
|
data/lib/attr_encryption.rb
CHANGED
@@ -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
|
+
|
174
174
|
encrypted_attributes[attribute.to_sym] = options.merge(:attribute => encrypted_attribute_name)
|
175
175
|
end
|
176
176
|
end
|
@@ -355,4 +355,4 @@ end
|
|
355
355
|
Object.extend AttrEncryption
|
356
356
|
|
357
357
|
# require File.expand_path('attr_encryption/adapters/active_record.rb', File.dirname(__FILE__))
|
358
|
-
require 'attr_encryption/adapters/active_record.rb'
|
358
|
+
require 'attr_encryption/adapters/active_record.rb'
|
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.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Sieh
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-07-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 6.1.7.6
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - '='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 6.1.7.6
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rspec
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|