logasm 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logasm/preprocessors/whitelist.rb +2 -1
- data/logasm.gemspec +1 -1
- data/spec/preprocessors/whitelist_spec.rb +12 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f563cce04590bb7f18f91f0546b67c9cfb6317b
|
4
|
+
data.tar.gz: d0351070693d8d0e2ea59d1e05de36d9db34e016
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2904cdfca1b3020475ef4695910c646d768ba548a24333046ade905d8ddf9a2e4e867189509ca47ede5a4f0bcf99180cf4182b74509855db5c57f325ae5b674
|
7
|
+
data.tar.gz: 800f52b72bf15df87d88537589a8e25a4affb05c69a45933e9978b5d1c14ae4ebf67f87b71b5a92d5fefcf0629e011298c9e0440aa62f5ebfc4c5e1014ec2363
|
@@ -53,7 +53,8 @@ class Logasm
|
|
53
53
|
def get_wildcard_roots_of(pointer)
|
54
54
|
if (index = pointer.rindex("/#{WILDCARD}/"))
|
55
55
|
wildcard_root = pointer.slice(0, index + 2)
|
56
|
-
|
56
|
+
wildcard_path = pointer.end_with?(WILDCARD) ? pointer : wildcard_root
|
57
|
+
get_wildcard_roots_of(wildcard_root).merge(wildcard_path => true)
|
57
58
|
else
|
58
59
|
{pointer => true}
|
59
60
|
end
|
data/logasm.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "logasm"
|
7
|
-
gem.version = '0.8.
|
7
|
+
gem.version = '0.8.1'
|
8
8
|
gem.authors = ["Salemove"]
|
9
9
|
gem.email = ["support@salemove.com"]
|
10
10
|
gem.description = %q{It's logasmic}
|
@@ -112,6 +112,18 @@ describe Logasm::Preprocessors::Whitelist do
|
|
112
112
|
end
|
113
113
|
end
|
114
114
|
|
115
|
+
context 'with whitelisted string array elements in an array with wildcard' do
|
116
|
+
let(:data) {{
|
117
|
+
nested: [{array: ['secret', 'secret']}]
|
118
|
+
}}
|
119
|
+
let(:pointers) { ['/nested/~/array/~'] }
|
120
|
+
|
121
|
+
it 'includes array elements' do
|
122
|
+
expect(processed_data).to include(nested: [{array: ['secret', 'secret']}])
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
|
115
127
|
context 'with whitelisted array element' do
|
116
128
|
let(:pointers) { ['/array/0'] }
|
117
129
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logasm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Salemove
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inflecto
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.
|
127
|
+
rubygems_version: 2.4.5.2
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: What description said
|