json_matchers 0.11.0 → 0.11.1
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 +4 -4
- data/NEWS.md +7 -0
- data/lib/json_matchers/matcher.rb +7 -1
- data/lib/json_matchers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a750067693f06088b29828831251c36a7a1911c191ba232d727c2fe718d7a5b
|
4
|
+
data.tar.gz: d92e24c1d72bda97869f638052b24127bd888410aeebe214fd12245d24ad09e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ccac9d3f4efcca861a8c5b70b3bff6a68fc834cd3ad0cb8054251735c6619021f9d2178959370e228fd823df8448d722d51825e6d87c71c8cd0dd3a539bba28
|
7
|
+
data.tar.gz: 944483edffaadaebb437d35c191aa0d21972d6fed8f96ebf97b255e2eafea5bb443c02d4ead18c65ff9f0aef7088a2322484fa7eb47199e766eb944d438a0b44
|
data/NEWS.md
CHANGED
@@ -31,7 +31,7 @@ module JsonMatchers
|
|
31
31
|
def build_and_populate_document_store
|
32
32
|
document_store = JsonSchema::DocumentStore.new
|
33
33
|
|
34
|
-
|
34
|
+
traverse_schema_root_with_first_level_symlinks.
|
35
35
|
map { |path| Pathname.new(path) }.
|
36
36
|
map { |schema_path| Parser.new(schema_path).parse }.
|
37
37
|
map { |schema| document_store.add_schema(schema) }.
|
@@ -39,5 +39,11 @@ module JsonMatchers
|
|
39
39
|
|
40
40
|
document_store
|
41
41
|
end
|
42
|
+
|
43
|
+
def traverse_schema_root_with_first_level_symlinks
|
44
|
+
# follow one symlink and direct children
|
45
|
+
# http://stackoverflow.com/questions/357754/can-i-traverse-symlinked-directories-in-ruby-with-a-glob
|
46
|
+
Dir.glob("#{JsonMatchers.schema_root}/**{,/*/**}/*.json")
|
47
|
+
end
|
42
48
|
end
|
43
49
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Doyle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json_schema
|