yaml_ref 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/yaml_ref/version.rb +1 -1
- data/lib/yaml_ref.rb +3 -0
- 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: fd4c58f31824d8a2ddd0e9cc4d46e63856a44319f90e566e7799010c8ed2316f
|
4
|
+
data.tar.gz: 5bcaa1bf7cea189869e5f44279c8fcb121c43eaca4fb775aa75bdaf25c07c450
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 763b3ac1ed9a4929fbea14b2122a440369b6ede212405c17c1644aba59ae0cc036ce416f75a353cf009a6f115b0ff8d82f89a4f9c25b0f9caa55a7a9b4b488d4
|
7
|
+
data.tar.gz: 39c0b1187511500bfee54d70e8a2dbc2db39268bd7844492b3e714c7db49c539badc6f03ba593db3c285d77d7cda6479fcc432c99dd914be5e1248fe19a76110
|
data/Gemfile.lock
CHANGED
data/lib/yaml_ref/version.rb
CHANGED
data/lib/yaml_ref.rb
CHANGED
@@ -88,6 +88,9 @@ module YamlRef
|
|
88
88
|
|
89
89
|
def file_ref(filepath, refpath)
|
90
90
|
path = File.expand_path(File.join(@ref_home || filepath, refpath))
|
91
|
+
raise(Error, <<~MESSAGE) unless File.exist?(path)
|
92
|
+
No such yml file -- #{path}
|
93
|
+
MESSAGE
|
91
94
|
[YAML.load_file(path), path]
|
92
95
|
end
|
93
96
|
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.1
|
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-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|