File: fix-relative-lib-path.patch

package info (click to toggle)
ruby-hashie 5.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 876 kB
  • sloc: ruby: 7,082; sh: 8; makefile: 6
file content (19 lines) | stat: -rw-r--r-- 650 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fall back to the installed gem if lib is not available
Author: Simon Quigley <tsimonq2@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-03-15
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/spec/support/integration_specs.rb
+++ b/spec/support/integration_specs.rb
@@ -1,4 +1,8 @@
-require File.expand_path('../../../lib/hashie/extensions/ruby_version', __FILE__)
+begin
+  require File.expand_path('../../../lib/hashie/extensions/ruby_version', __FILE__)
+rescue LoadError
+  require "hashie/extensions/ruby_version"
+end
 
 # Generates the bundle command for running an integration test
 #