Package: ruby-buff-config / 2.0.0-2

0004-Support-newer-hashie-gem.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Hleb Valoshka <375gnu@gmail.com>
Date: Fri, 9 Mar 2018 21:57:18 +0300
Subject: Support newer hashie gem

---
 lib/buff/config/ruby.rb | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/lib/buff/config/ruby.rb b/lib/buff/config/ruby.rb
index 26f4abf..ff91998 100644
--- a/lib/buff/config/ruby.rb
+++ b/lib/buff/config/ruby.rb
@@ -1,5 +1,15 @@
 require 'buff/config'
 
+module OldInspect
+  if defined? Hashie::Array
+    refine Hashie::Array do
+      alias inspect array_inspect
+    end
+  end
+end
+
+using OldInspect
+
 module Buff
   module Config
     class Ruby < Config::Base