immutable_struct_ex_redactable 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile +4 -4
- data/Gemfile.lock +8 -10
- data/lib/immutable_struct_ex_redactable/redacted_accessible.rb +1 -1
- data/lib/immutable_struct_ex_redactable/version.rb +1 -1
- data/lib/immutable_struct_ex_redactable.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 239f6572810600a88955cba831e0689de109f800dd329bf87bc716f073ca2de6
|
4
|
+
data.tar.gz: e67a56c48cf5289919b754cf7ca562d4929dcfe52c50780d743e393d070942ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4e62ce4e944d6b3a3def66565c2af9eb8e13fc76eb4ea9f287ff0c91ded1070597779b0c9dce0de22127fbb9cd1a52a338cd5e15312903a3712eeac7f8a5884
|
7
|
+
data.tar.gz: 72c1560a60a83f33e2795db5f577dc811a8dcb9087565d56f082c04c33c4eb9eeff588711bb73506943bbf524643f66273a0edecff5bc6625c5bd33148fe072e
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -5,9 +5,9 @@ source 'https://rubygems.org'
|
|
5
5
|
# Specify your gem's dependencies in immutable_struct_ex_redactable.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
-
gem 'pry-byebug', '
|
8
|
+
gem 'pry-byebug', '>= 3.9', '< 4.0'
|
9
9
|
gem 'rake', '~> 13.0'
|
10
10
|
gem 'reek', '~> 6.1'
|
11
|
-
gem 'rspec', '
|
12
|
-
gem 'rubocop', '
|
13
|
-
gem 'simplecov', '
|
11
|
+
gem 'rspec', '>= 3.12', '< 4.0'
|
12
|
+
gem 'rubocop', '>= 1.56.0', '< 2.0'
|
13
|
+
gem 'simplecov', '>= 0.22.0', '< 1.0'
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
immutable_struct_ex_redactable (1.3.
|
4
|
+
immutable_struct_ex_redactable (1.3.3)
|
5
5
|
immutable_struct_ex (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
10
|
ast (2.4.2)
|
11
|
-
base64 (0.1.1)
|
12
11
|
byebug (11.1.3)
|
13
12
|
coderay (1.1.3)
|
14
13
|
diff-lcs (1.5.0)
|
@@ -50,16 +49,15 @@ GEM
|
|
50
49
|
diff-lcs (>= 1.2.0, < 2.0)
|
51
50
|
rspec-support (~> 3.12.0)
|
52
51
|
rspec-support (3.12.1)
|
53
|
-
rubocop (1.
|
54
|
-
base64 (~> 0.1.1)
|
52
|
+
rubocop (1.58.0)
|
55
53
|
json (~> 2.3)
|
56
54
|
language_server-protocol (>= 3.17.0)
|
57
55
|
parallel (~> 1.10)
|
58
|
-
parser (>= 3.2.2.
|
56
|
+
parser (>= 3.2.2.4)
|
59
57
|
rainbow (>= 2.2.2, < 4.0)
|
60
58
|
regexp_parser (>= 1.8, < 3.0)
|
61
59
|
rexml (>= 3.2.5, < 4.0)
|
62
|
-
rubocop-ast (>= 1.
|
60
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
63
61
|
ruby-progressbar (~> 1.7)
|
64
62
|
unicode-display_width (>= 2.4.0, < 3.0)
|
65
63
|
rubocop-ast (1.30.0)
|
@@ -80,12 +78,12 @@ PLATFORMS
|
|
80
78
|
|
81
79
|
DEPENDENCIES
|
82
80
|
immutable_struct_ex_redactable!
|
83
|
-
pry-byebug (
|
81
|
+
pry-byebug (>= 3.9, < 4.0)
|
84
82
|
rake (~> 13.0)
|
85
83
|
reek (~> 6.1)
|
86
|
-
rspec (
|
87
|
-
rubocop (
|
88
|
-
simplecov (
|
84
|
+
rspec (>= 3.12, < 4.0)
|
85
|
+
rubocop (>= 1.56.0, < 2.0)
|
86
|
+
simplecov (>= 0.22.0, < 1.0)
|
89
87
|
|
90
88
|
BUNDLED WITH
|
91
89
|
2.3.22
|
@@ -12,7 +12,7 @@ module ImmutableStructExRedactable
|
|
12
12
|
def redacted_accessible_module_for(hash:, config:)
|
13
13
|
Module.new do
|
14
14
|
if config.whitelist.any?
|
15
|
-
hash.
|
15
|
+
hash.each_key do |attr|
|
16
16
|
next if config.whitelist.include? attr
|
17
17
|
|
18
18
|
unredacted_attr_method = "unredacted_#{attr}"
|