json_matchers 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9fecae5a2677672d70b145cd3414a8bdb8026322d45ce5f1ec823cb5215a2b5f
4
- data.tar.gz: 1e0c74062d1a5070fad748bc5c07014429dc9bfae7854df6b9ccaa68b52ab4e4
3
+ metadata.gz: 0a750067693f06088b29828831251c36a7a1911c191ba232d727c2fe718d7a5b
4
+ data.tar.gz: d92e24c1d72bda97869f638052b24127bd888410aeebe214fd12245d24ad09e7
5
5
  SHA512:
6
- metadata.gz: cd933b24a0e345c0b7499d8eecf03edb49d0eef23a1ae1b7225bd4e9a9fa288483df4823e71668b846ed7f95a4416b9662e86a611ae311acc446acdd5ea59013
7
- data.tar.gz: '0815f896a0015905b2945588b234e0e6e5947641bc1b55f4d9cbae6bc4141e26f6d6c9b661001900a7a5fc179cc55e1efbcc8105dd060df922c7a7f39c8178af'
6
+ metadata.gz: 4ccac9d3f4efcca861a8c5b70b3bff6a68fc834cd3ad0cb8054251735c6619021f9d2178959370e228fd823df8448d722d51825e6d87c71c8cd0dd3a539bba28
7
+ data.tar.gz: 944483edffaadaebb437d35c191aa0d21972d6fed8f96ebf97b255e2eafea5bb443c02d4ead18c65ff9f0aef7088a2322484fa7eb47199e766eb944d438a0b44
data/NEWS.md CHANGED
@@ -1,6 +1,13 @@
1
1
  master
2
2
  ======
3
3
 
4
+ 0.11.1
5
+ ======
6
+
7
+ * Follow first-level symlinks in the document store. [#99]
8
+
9
+ [#99]: https://github.com/thoughtbot/json_matchers/pull/99
10
+
4
11
  0.11.0
5
12
  ======
6
13
 
@@ -31,7 +31,7 @@ module JsonMatchers
31
31
  def build_and_populate_document_store
32
32
  document_store = JsonSchema::DocumentStore.new
33
33
 
34
- Dir.glob("#{JsonMatchers.schema_root}/**/*.json").
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
@@ -1,3 +1,3 @@
1
1
  module JsonMatchers
2
- VERSION = "0.11.0".freeze
2
+ VERSION = "0.11.1".freeze
3
3
  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.0
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-04-05 00:00:00.000000000 Z
11
+ date: 2019-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_schema