yaml_ref 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad52297c8836ced1bb7313a83cf608d79de8a441d624cecb3c15ee415040c73b
4
- data.tar.gz: 7aa1fd3d1bc58b4e7a785d5995ec8047feb14835c4fe1d8d32376b8502a91045
3
+ metadata.gz: fd4c58f31824d8a2ddd0e9cc4d46e63856a44319f90e566e7799010c8ed2316f
4
+ data.tar.gz: 5bcaa1bf7cea189869e5f44279c8fcb121c43eaca4fb775aa75bdaf25c07c450
5
5
  SHA512:
6
- metadata.gz: f11e54c4c6937f0451f2d8c4cf722552d9c85e2383e54177da055334823ed9e9b8f01fd44edaf9b18160694f39c84490793e8da84874182ccd20a57df1dea9ee
7
- data.tar.gz: 17e0633f6956ad24aaf0939a2e1f619a2677b53d9955b87b5305b0645b69aa52b0460e4cc2d4a4ea1c5f14a01916908434957f5eed78741ba42e5872f50680f5
6
+ metadata.gz: 763b3ac1ed9a4929fbea14b2122a440369b6ede212405c17c1644aba59ae0cc036ce416f75a353cf009a6f115b0ff8d82f89a4f9c25b0f9caa55a7a9b4b488d4
7
+ data.tar.gz: 39c0b1187511500bfee54d70e8a2dbc2db39268bd7844492b3e714c7db49c539badc6f03ba593db3c285d77d7cda6479fcc432c99dd914be5e1248fe19a76110
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yaml_ref (0.1.0)
4
+ yaml_ref (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module YamlRef
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-08 00:00:00.000000000 Z
11
+ date: 2020-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry