yaml_ref 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/yaml_ref/version.rb +1 -1
- data/lib/yaml_ref.rb +2 -1
- metadata +2 -3
- data/Gemfile.lock +0 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34b893abd750af2529919c6548200f4fe20348304b8c87dd0dac9947b1315772
|
4
|
+
data.tar.gz: 74e9c07d4918d09f91d998bff961c737080912483b9d757743521a41ceffd66b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74fffa8fd4bac915d18518eb655235c7cc0662e76bf4ff2cab5aec7b10cd72c4c7cbeb4d69352aa76cdefa99cb839e88d435ef8ea42f5ad633c6a1e0f2c5161f
|
7
|
+
data.tar.gz: 5997e1a568fb4582d11041237a9b667fa5db8b9fc4452a01f7a587c2c34caf5b849210fb5591b915f997a7717e40f0182a4b0d4a1dd7c7036202386c6d5617c7
|
data/.gitignore
CHANGED
data/lib/yaml_ref/version.rb
CHANGED
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
|
-
|
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.
|
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-
|
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
|