lite-encryption 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +12 -3
- data/.travis.yml +1 -0
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +78 -73
- data/lib/lite/encryption/message.rb +2 -2
- data/lib/lite/encryption/version.rb +1 -1
- data/lite-encryption.gemspec +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bee1adb5f59f9936b73b6df036b6e483d59e05d6bb17d805cde12913bd6ed667
|
4
|
+
data.tar.gz: fc5e30962a65fa42361987c04c15bd23f8f895632723c13c355c1e06eae67c96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abfd6cb379a4dd97e8f297d2678a96ce821aec36b04cea2885abf36b5ee504ed269fc82603592ad2c2d38678235cca6744c666ac8f86613f8f5d9d1d2c6fe51c
|
7
|
+
data.tar.gz: a750806459a5fbccd5f4480fe46f44e3a8463d468f6cb8ca57549edb3720ca2d493e6165975319f7bd9068b099d79ccbdfab541cac2c62bc398792fec591a1a0
|
data/.rubocop.yml
CHANGED
@@ -2,11 +2,12 @@ require:
|
|
2
2
|
- rubocop-performance
|
3
3
|
- rubocop-rspec
|
4
4
|
AllCops:
|
5
|
-
TargetRubyVersion: 2.
|
5
|
+
TargetRubyVersion: 2.7
|
6
|
+
NewCops: enable
|
6
7
|
DisplayCopNames: true
|
7
8
|
DisplayStyleGuide: true
|
8
|
-
|
9
|
-
|
9
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
10
|
+
Enabled: true
|
10
11
|
Layout/EmptyLinesAroundBlockBody:
|
11
12
|
Exclude:
|
12
13
|
- 'spec/**/**/*'
|
@@ -14,6 +15,14 @@ Layout/EmptyLinesAroundClassBody:
|
|
14
15
|
EnforcedStyle: empty_lines_except_namespace
|
15
16
|
Layout/EmptyLinesAroundModuleBody:
|
16
17
|
EnforcedStyle: empty_lines_except_namespace
|
18
|
+
Layout/LineLength:
|
19
|
+
Max: 100
|
20
|
+
Layout/SpaceAroundMethodCallOperator:
|
21
|
+
Enabled: true
|
22
|
+
Lint/RaiseException:
|
23
|
+
Enabled: true
|
24
|
+
Lint/StructNewOverride:
|
25
|
+
Enabled: true
|
17
26
|
Metrics/BlockLength:
|
18
27
|
Exclude:
|
19
28
|
- 'spec/**/**/*'
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -6,7 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
-
## [1.0.
|
9
|
+
## [1.0.1] - 2020-07-03
|
10
|
+
### Added
|
11
|
+
- Added Ruby 2.7 support
|
12
|
+
|
13
|
+
## [1.0.1] - 2019-08-26
|
10
14
|
### Added
|
11
15
|
- Key class for key generation
|
12
16
|
### Changed
|
data/Gemfile.lock
CHANGED
@@ -1,123 +1,128 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lite-encryption (1.0.
|
4
|
+
lite-encryption (1.0.2)
|
5
5
|
activesupport
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionpack (6.0.
|
11
|
-
actionview (= 6.0.
|
12
|
-
activesupport (= 6.0.
|
13
|
-
rack (~> 2.0)
|
10
|
+
actionpack (6.0.3.2)
|
11
|
+
actionview (= 6.0.3.2)
|
12
|
+
activesupport (= 6.0.3.2)
|
13
|
+
rack (~> 2.0, >= 2.0.8)
|
14
14
|
rack-test (>= 0.6.3)
|
15
15
|
rails-dom-testing (~> 2.0)
|
16
16
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
17
|
-
actionview (6.0.
|
18
|
-
activesupport (= 6.0.
|
17
|
+
actionview (6.0.3.2)
|
18
|
+
activesupport (= 6.0.3.2)
|
19
19
|
builder (~> 3.1)
|
20
20
|
erubi (~> 1.4)
|
21
21
|
rails-dom-testing (~> 2.0)
|
22
22
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
23
|
-
activemodel (6.0.
|
24
|
-
activesupport (= 6.0.
|
25
|
-
activerecord (6.0.
|
26
|
-
activemodel (= 6.0.
|
27
|
-
activesupport (= 6.0.
|
28
|
-
activesupport (6.0.
|
23
|
+
activemodel (6.0.3.2)
|
24
|
+
activesupport (= 6.0.3.2)
|
25
|
+
activerecord (6.0.3.2)
|
26
|
+
activemodel (= 6.0.3.2)
|
27
|
+
activesupport (= 6.0.3.2)
|
28
|
+
activesupport (6.0.3.2)
|
29
29
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
30
30
|
i18n (>= 0.7, < 2)
|
31
31
|
minitest (~> 5.1)
|
32
32
|
tzinfo (~> 1.1)
|
33
|
-
zeitwerk (~> 2.
|
34
|
-
ast (2.4.
|
35
|
-
builder (3.2.
|
33
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
34
|
+
ast (2.4.1)
|
35
|
+
builder (3.2.4)
|
36
36
|
colorize (0.8.1)
|
37
|
-
concurrent-ruby (1.1.
|
38
|
-
crass (1.0.
|
39
|
-
database_cleaner (1.
|
40
|
-
diff-lcs (1.
|
41
|
-
erubi (1.
|
42
|
-
fasterer (0.
|
37
|
+
concurrent-ruby (1.1.6)
|
38
|
+
crass (1.0.6)
|
39
|
+
database_cleaner (1.8.5)
|
40
|
+
diff-lcs (1.4.4)
|
41
|
+
erubi (1.9.0)
|
42
|
+
fasterer (0.8.3)
|
43
43
|
colorize (~> 0.7)
|
44
|
-
ruby_parser (>= 3.
|
44
|
+
ruby_parser (>= 3.14.1)
|
45
45
|
generator_spec (0.9.4)
|
46
46
|
activesupport (>= 3.0.0)
|
47
47
|
railties (>= 3.0.0)
|
48
|
-
i18n (1.
|
48
|
+
i18n (1.8.3)
|
49
49
|
concurrent-ruby (~> 1.0)
|
50
|
-
|
51
|
-
loofah (2.2.3)
|
50
|
+
loofah (2.6.0)
|
52
51
|
crass (~> 1.0.2)
|
53
52
|
nokogiri (>= 1.5.9)
|
54
|
-
method_source (0.
|
53
|
+
method_source (1.0.0)
|
55
54
|
mini_portile2 (2.4.0)
|
56
|
-
minitest (5.
|
57
|
-
nokogiri (1.10.
|
55
|
+
minitest (5.14.1)
|
56
|
+
nokogiri (1.10.9)
|
58
57
|
mini_portile2 (~> 2.4.0)
|
59
|
-
parallel (1.
|
60
|
-
parser (2.
|
61
|
-
ast (~> 2.4.
|
62
|
-
rack (2.
|
58
|
+
parallel (1.19.2)
|
59
|
+
parser (2.7.1.4)
|
60
|
+
ast (~> 2.4.1)
|
61
|
+
rack (2.2.3)
|
63
62
|
rack-test (1.1.0)
|
64
63
|
rack (>= 1.0, < 3)
|
65
64
|
rails-dom-testing (2.0.3)
|
66
65
|
activesupport (>= 4.2.0)
|
67
66
|
nokogiri (>= 1.6)
|
68
|
-
rails-html-sanitizer (1.
|
69
|
-
loofah (~> 2.
|
70
|
-
railties (6.0.
|
71
|
-
actionpack (= 6.0.
|
72
|
-
activesupport (= 6.0.
|
67
|
+
rails-html-sanitizer (1.3.0)
|
68
|
+
loofah (~> 2.3)
|
69
|
+
railties (6.0.3.2)
|
70
|
+
actionpack (= 6.0.3.2)
|
71
|
+
activesupport (= 6.0.3.2)
|
73
72
|
method_source
|
74
73
|
rake (>= 0.8.7)
|
75
74
|
thor (>= 0.20.3, < 2.0)
|
76
75
|
rainbow (3.0.0)
|
77
|
-
rake (
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
rspec-
|
82
|
-
|
83
|
-
rspec-
|
84
|
-
rspec-
|
76
|
+
rake (13.0.1)
|
77
|
+
regexp_parser (1.7.1)
|
78
|
+
rexml (3.2.4)
|
79
|
+
rspec (3.9.0)
|
80
|
+
rspec-core (~> 3.9.0)
|
81
|
+
rspec-expectations (~> 3.9.0)
|
82
|
+
rspec-mocks (~> 3.9.0)
|
83
|
+
rspec-core (3.9.2)
|
84
|
+
rspec-support (~> 3.9.3)
|
85
|
+
rspec-expectations (3.9.2)
|
85
86
|
diff-lcs (>= 1.2.0, < 2.0)
|
86
|
-
rspec-support (~> 3.
|
87
|
-
rspec-mocks (3.
|
87
|
+
rspec-support (~> 3.9.0)
|
88
|
+
rspec-mocks (3.9.1)
|
88
89
|
diff-lcs (>= 1.2.0, < 2.0)
|
89
|
-
rspec-support (~> 3.
|
90
|
-
rspec-rails (
|
91
|
-
actionpack (>=
|
92
|
-
activesupport (>=
|
93
|
-
railties (>=
|
94
|
-
rspec-core (~> 3.
|
95
|
-
rspec-expectations (~> 3.
|
96
|
-
rspec-mocks (~> 3.
|
97
|
-
rspec-support (~> 3.
|
98
|
-
rspec-support (3.
|
99
|
-
rubocop (0.
|
100
|
-
jaro_winkler (~> 1.5.1)
|
90
|
+
rspec-support (~> 3.9.0)
|
91
|
+
rspec-rails (4.0.1)
|
92
|
+
actionpack (>= 4.2)
|
93
|
+
activesupport (>= 4.2)
|
94
|
+
railties (>= 4.2)
|
95
|
+
rspec-core (~> 3.9)
|
96
|
+
rspec-expectations (~> 3.9)
|
97
|
+
rspec-mocks (~> 3.9)
|
98
|
+
rspec-support (~> 3.9)
|
99
|
+
rspec-support (3.9.3)
|
100
|
+
rubocop (0.86.0)
|
101
101
|
parallel (~> 1.10)
|
102
|
-
parser (>= 2.
|
102
|
+
parser (>= 2.7.0.1)
|
103
103
|
rainbow (>= 2.2.2, < 4.0)
|
104
|
+
regexp_parser (>= 1.7)
|
105
|
+
rexml
|
106
|
+
rubocop-ast (>= 0.0.3, < 1.0)
|
104
107
|
ruby-progressbar (~> 1.7)
|
105
|
-
unicode-display_width (>= 1.4.0, <
|
106
|
-
rubocop-
|
108
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
109
|
+
rubocop-ast (0.1.0)
|
110
|
+
parser (>= 2.7.0.1)
|
111
|
+
rubocop-performance (1.6.1)
|
107
112
|
rubocop (>= 0.71.0)
|
108
|
-
rubocop-rspec (1.
|
109
|
-
rubocop (>= 0.
|
113
|
+
rubocop-rspec (1.41.0)
|
114
|
+
rubocop (>= 0.68.1)
|
110
115
|
ruby-progressbar (1.10.1)
|
111
|
-
ruby_parser (3.
|
116
|
+
ruby_parser (3.14.2)
|
112
117
|
sexp_processor (~> 4.9)
|
113
|
-
sexp_processor (4.
|
114
|
-
sqlite3 (1.4.
|
115
|
-
thor (0.
|
118
|
+
sexp_processor (4.15.0)
|
119
|
+
sqlite3 (1.4.2)
|
120
|
+
thor (1.0.1)
|
116
121
|
thread_safe (0.3.6)
|
117
|
-
tzinfo (1.2.
|
122
|
+
tzinfo (1.2.7)
|
118
123
|
thread_safe (~> 0.1)
|
119
|
-
unicode-display_width (1.
|
120
|
-
zeitwerk (2.1
|
124
|
+
unicode-display_width (1.7.0)
|
125
|
+
zeitwerk (2.3.1)
|
121
126
|
|
122
127
|
PLATFORMS
|
123
128
|
ruby
|
@@ -138,4 +143,4 @@ DEPENDENCIES
|
|
138
143
|
sqlite3
|
139
144
|
|
140
145
|
BUNDLED WITH
|
141
|
-
2.
|
146
|
+
2.1.4
|
@@ -29,11 +29,11 @@ module Lite
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def decrypt(value, opts = {})
|
32
|
-
encryptor.decrypt_and_verify(value, opts)
|
32
|
+
encryptor.decrypt_and_verify(value, **opts)
|
33
33
|
end
|
34
34
|
|
35
35
|
def encrypt(value, opts = {})
|
36
|
-
encryptor.encrypt_and_sign(value, opts)
|
36
|
+
encryptor.encrypt_and_sign(value, **opts)
|
37
37
|
end
|
38
38
|
|
39
39
|
private
|
data/lite-encryption.gemspec
CHANGED
@@ -10,9 +10,9 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.authors = ['Juan Gomez']
|
11
11
|
spec.email = %w[j.gomez@drexed.com]
|
12
12
|
|
13
|
-
# rubocop:disable
|
13
|
+
# rubocop:disable Layout/LineLength
|
14
14
|
spec.summary = 'ActiveSupport::MessageEncryptor encryption wrapper for PORO objects and ActiveModel attributes'
|
15
|
-
# rubocop:enable
|
15
|
+
# rubocop:enable Layout/LineLength
|
16
16
|
spec.homepage = 'http://drexed.github.io/lite-encryption'
|
17
17
|
spec.license = 'MIT'
|
18
18
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite-encryption
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -192,7 +192,7 @@ dependencies:
|
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
|
-
description:
|
195
|
+
description:
|
196
196
|
email:
|
197
197
|
- j.gomez@drexed.com
|
198
198
|
executables: []
|
@@ -227,7 +227,7 @@ homepage: http://drexed.github.io/lite-encryption
|
|
227
227
|
licenses:
|
228
228
|
- MIT
|
229
229
|
metadata: {}
|
230
|
-
post_install_message:
|
230
|
+
post_install_message:
|
231
231
|
rdoc_options: []
|
232
232
|
require_paths:
|
233
233
|
- lib
|
@@ -242,8 +242,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
242
|
- !ruby/object:Gem::Version
|
243
243
|
version: '0'
|
244
244
|
requirements: []
|
245
|
-
rubygems_version: 3.
|
246
|
-
signing_key:
|
245
|
+
rubygems_version: 3.1.4
|
246
|
+
signing_key:
|
247
247
|
specification_version: 4
|
248
248
|
summary: ActiveSupport::MessageEncryptor encryption wrapper for PORO objects and ActiveModel
|
249
249
|
attributes
|