yaml_ref 0.1.1 → 0.1.3

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: fd4c58f31824d8a2ddd0e9cc4d46e63856a44319f90e566e7799010c8ed2316f
4
- data.tar.gz: 5bcaa1bf7cea189869e5f44279c8fcb121c43eaca4fb775aa75bdaf25c07c450
3
+ metadata.gz: 34b893abd750af2529919c6548200f4fe20348304b8c87dd0dac9947b1315772
4
+ data.tar.gz: 74e9c07d4918d09f91d998bff961c737080912483b9d757743521a41ceffd66b
5
5
  SHA512:
6
- metadata.gz: 763b3ac1ed9a4929fbea14b2122a440369b6ede212405c17c1644aba59ae0cc036ce416f75a353cf009a6f115b0ff8d82f89a4f9c25b0f9caa55a7a9b4b488d4
7
- data.tar.gz: 39c0b1187511500bfee54d70e8a2dbc2db39268bd7844492b3e714c7db49c539badc6f03ba593db3c285d77d7cda6479fcc432c99dd914be5e1248fe19a76110
6
+ metadata.gz: 74fffa8fd4bac915d18518eb655235c7cc0662e76bf4ff2cab5aec7b10cd72c4c7cbeb4d69352aa76cdefa99cb839e88d435ef8ea42f5ad633c6a1e0f2c5161f
7
+ data.tar.gz: 5997e1a568fb4582d11041237a9b667fa5db8b9fc4452a01f7a587c2c34caf5b849210fb5591b915f997a7717e40f0182a4b0d4a1dd7c7036202386c6d5617c7
data/.gitignore CHANGED
@@ -7,6 +7,7 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /Gemfile.lock
10
11
 
11
12
  # rspec failure tracking
12
13
  .rspec_status
@@ -1,3 +1,3 @@
1
1
  module YamlRef
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/yaml_ref.rb CHANGED
@@ -13,7 +13,8 @@ module YamlRef
13
13
  # pass ref_home argument or define ref_home on root level in YAML file.
14
14
  #
15
15
  def load_file(path, ref_home: nil)
16
- schema = YAML.load_file(path)
16
+ result = ERB.new(File.read(path)).result
17
+ schema = YAML.load(result)
17
18
  @ref_home = ref_home || schema["ref_home"]
18
19
  parse_schema(schema, path)
19
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml_ref
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - atomiyama
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-09 00:00:00.000000000 Z
11
+ date: 2020-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -78,7 +78,6 @@ files:
78
78
  - ".travis.yml"
79
79
  - CODE_OF_CONDUCT.md
80
80
  - Gemfile
81
- - Gemfile.lock
82
81
  - LICENSE.txt
83
82
  - README.md
84
83
  - Rakefile
data/Gemfile.lock DELETED
@@ -1,45 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- yaml_ref (0.1.1)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- byebug (11.1.1)
10
- coderay (1.1.2)
11
- diff-lcs (1.3)
12
- method_source (0.9.2)
13
- pry (0.12.2)
14
- coderay (~> 1.1.0)
15
- method_source (~> 0.9.0)
16
- pry-byebug (3.8.0)
17
- byebug (~> 11.0)
18
- pry (~> 0.10)
19
- rake (12.3.3)
20
- rspec (3.9.0)
21
- rspec-core (~> 3.9.0)
22
- rspec-expectations (~> 3.9.0)
23
- rspec-mocks (~> 3.9.0)
24
- rspec-core (3.9.1)
25
- rspec-support (~> 3.9.1)
26
- rspec-expectations (3.9.0)
27
- diff-lcs (>= 1.2.0, < 2.0)
28
- rspec-support (~> 3.9.0)
29
- rspec-mocks (3.9.1)
30
- diff-lcs (>= 1.2.0, < 2.0)
31
- rspec-support (~> 3.9.0)
32
- rspec-support (3.9.2)
33
-
34
- PLATFORMS
35
- ruby
36
-
37
- DEPENDENCIES
38
- pry
39
- pry-byebug
40
- rake (~> 12.0)
41
- rspec (~> 3.0)
42
- yaml_ref!
43
-
44
- BUNDLED WITH
45
- 2.1.2