lite-encryption 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e5dbff683b56821e5cc5cffca290b4b6a63273a0adc46507ade25394a88e986
4
- data.tar.gz: c3264eba8d78cbf8088e1e2782eafb7c5bd5f54ece8896e82850e714873b2859
3
+ metadata.gz: bee1adb5f59f9936b73b6df036b6e483d59e05d6bb17d805cde12913bd6ed667
4
+ data.tar.gz: fc5e30962a65fa42361987c04c15bd23f8f895632723c13c355c1e06eae67c96
5
5
  SHA512:
6
- metadata.gz: 9076047d3c5cd4286cd6a75ec870a04e6f5cd983a0ceb9e198efdee538224beccc23364f8747d454582248b71fd6eb59bf875b5f03c953d6e523015d2b00bccc
7
- data.tar.gz: afe7e6507321ebf8d2b166e3f0c30b7c244106915d4cff946926c3e42ec7dfa22822d18cc1694eb9c49a2d3b222b401b9c6332bccadde632a8bf7bee31a8d2f0
6
+ metadata.gz: abfd6cb379a4dd97e8f297d2678a96ce821aec36b04cea2885abf36b5ee504ed269fc82603592ad2c2d38678235cca6744c666ac8f86613f8f5d9d1d2c6fe51c
7
+ data.tar.gz: a750806459a5fbccd5f4480fe46f44e3a8463d468f6cb8ca57549edb3720ca2d493e6165975319f7bd9068b099d79ccbdfab541cac2c62bc398792fec591a1a0
@@ -2,11 +2,12 @@ require:
2
2
  - rubocop-performance
3
3
  - rubocop-rspec
4
4
  AllCops:
5
- TargetRubyVersion: 2.6
5
+ TargetRubyVersion: 2.7
6
+ NewCops: enable
6
7
  DisplayCopNames: true
7
8
  DisplayStyleGuide: true
8
- LineLength:
9
- Max: 100
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/**/**/*'
@@ -4,6 +4,7 @@ cache: bundler
4
4
  rvm:
5
5
  - 2.5
6
6
  - 2.6
7
+ - 2.7
7
8
  - ruby-head
8
9
  matrix:
9
10
  fast_finish: true
@@ -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.0] - 2019-08-26
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
@@ -1,123 +1,128 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-encryption (1.0.1)
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.0)
11
- actionview (= 6.0.0)
12
- activesupport (= 6.0.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.0)
18
- activesupport (= 6.0.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.0)
24
- activesupport (= 6.0.0)
25
- activerecord (6.0.0)
26
- activemodel (= 6.0.0)
27
- activesupport (= 6.0.0)
28
- activesupport (6.0.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.1, >= 2.1.8)
34
- ast (2.4.0)
35
- builder (3.2.3)
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.5)
38
- crass (1.0.4)
39
- database_cleaner (1.7.0)
40
- diff-lcs (1.3)
41
- erubi (1.8.0)
42
- fasterer (0.6.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.13.0)
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.6.0)
48
+ i18n (1.8.3)
49
49
  concurrent-ruby (~> 1.0)
50
- jaro_winkler (1.5.3)
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.9.2)
53
+ method_source (1.0.0)
55
54
  mini_portile2 (2.4.0)
56
- minitest (5.11.3)
57
- nokogiri (1.10.4)
55
+ minitest (5.14.1)
56
+ nokogiri (1.10.9)
58
57
  mini_portile2 (~> 2.4.0)
59
- parallel (1.17.0)
60
- parser (2.6.3.0)
61
- ast (~> 2.4.0)
62
- rack (2.0.7)
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.2.0)
69
- loofah (~> 2.2, >= 2.2.2)
70
- railties (6.0.0)
71
- actionpack (= 6.0.0)
72
- activesupport (= 6.0.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 (12.3.3)
78
- rspec (3.8.0)
79
- rspec-core (~> 3.8.0)
80
- rspec-expectations (~> 3.8.0)
81
- rspec-mocks (~> 3.8.0)
82
- rspec-core (3.8.2)
83
- rspec-support (~> 3.8.0)
84
- rspec-expectations (3.8.4)
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.8.0)
87
- rspec-mocks (3.8.1)
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.8.0)
90
- rspec-rails (3.8.2)
91
- actionpack (>= 3.0)
92
- activesupport (>= 3.0)
93
- railties (>= 3.0)
94
- rspec-core (~> 3.8.0)
95
- rspec-expectations (~> 3.8.0)
96
- rspec-mocks (~> 3.8.0)
97
- rspec-support (~> 3.8.0)
98
- rspec-support (3.8.2)
99
- rubocop (0.74.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.6)
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, < 1.7)
106
- rubocop-performance (1.4.1)
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.35.0)
109
- rubocop (>= 0.60.0)
113
+ rubocop-rspec (1.41.0)
114
+ rubocop (>= 0.68.1)
110
115
  ruby-progressbar (1.10.1)
111
- ruby_parser (3.13.1)
116
+ ruby_parser (3.14.2)
112
117
  sexp_processor (~> 4.9)
113
- sexp_processor (4.12.1)
114
- sqlite3 (1.4.1)
115
- thor (0.20.3)
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.5)
122
+ tzinfo (1.2.7)
118
123
  thread_safe (~> 0.1)
119
- unicode-display_width (1.6.0)
120
- zeitwerk (2.1.9)
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.0.1
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
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Encryption
5
5
 
6
- VERSION ||= '1.0.1'
6
+ VERSION ||= '1.0.2'
7
7
 
8
8
  end
9
9
  end
@@ -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 Metrics/LineLength
13
+ # rubocop:disable Layout/LineLength
14
14
  spec.summary = 'ActiveSupport::MessageEncryptor encryption wrapper for PORO objects and ActiveModel attributes'
15
- # rubocop:enable Metrics/LineLength
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.1
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: 2019-08-26 00:00:00.000000000 Z
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.0.4
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