yaml_extend 1.1.1 → 1.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: 260457e93f7baaedfbc284c732e7b3efbd34ba57c4d4e7d8bfeae0112bb464c4
4
- data.tar.gz: 39ee43948691830d4c3e241a7bad1aaae0586fa36eb91f0b120d72800657fe30
3
+ metadata.gz: 10653bd834aa1d969eae811a6b28678294d9803eb7d5a80c104cedbbb4ce23bc
4
+ data.tar.gz: 37b98892bd8d09f495175b1b7951054d29027490d4a6c3c9f3c8f476125f4b56
5
5
  SHA512:
6
- metadata.gz: 5ee160e95852303ad939d92666c480e89b292da689d4bb054256374919be77a66ca4baf28228044d6630b4b840db3cd46b66a53e2647a1569950451f0e8540bb
7
- data.tar.gz: d9ed54ef19a39c9c6bc2838b162e2eeb0dbb162833780d38566403d706bdf24cf985e0d9b8df49a4ac84147323c51e7aadde7ae6d3d5ed304ee02b80ad145317
6
+ metadata.gz: 666439b434d0c0d29462d4a71489eb59ee899250bb06f58dff732cf422b06b6314f7af6171705e266debfc030d9ccb521c8cbf26b9ea6aeff31d0f0320b075d5
7
+ data.tar.gz: ac940216127d089503b9b515e17d60656a31d33187b0f3ab475162c20b27e7b49a14eb6ecc5305d56939273825af2d9ceefb8389ec4aacdb706362d1aef56681
data/lib/yaml_extend.rb CHANGED
@@ -143,8 +143,12 @@ module YAML
143
143
  # caller_locations returns the current execution stack
144
144
  # [0] is the call from ext_load_file_recursive,
145
145
  # [1] is inside ext_load_file,
146
- # [2] is the exteranl caller of YAML.ext_load_file
147
- base_path = File.dirname(caller_locations[2].path)
146
+ # [2] is the external caller of YAML.ext_load_file
147
+ base_path = if defined?(caller_locations)
148
+ File.dirname(caller_locations[2].path)
149
+ else # Fallback for ruby < 2.1.10
150
+ File.dirname(caller[2])
151
+ end
148
152
  return base_path + '/' + file_path if File.exist? base_path + '/' + file_path # relative path from yaml file
149
153
  return Dir.pwd + '/' + file_path if File.exist? Dir.pwd + '/' + file_path # relative path from project
150
154
  error_message = "Can not find absolute path of '#{file_path}'"
@@ -1,3 +1,3 @@
1
1
  module YamlExtend
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.1.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaml_extend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthäus Beyrle
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-26 00:00:00.000000000 Z
11
+ date: 2021-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deep_merge
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []
110
- rubygems_version: 3.0.8
110
+ rubygems_version: 3.1.4
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: Extends YAML to support file based inheritance