File: use_ruby-indentation.patch

package info (click to toggle)
ruby-safe-yaml 1.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 356 kB
  • sloc: ruby: 2,060; sh: 30; makefile: 8
file content (22 lines) | stat: -rw-r--r-- 648 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: use 'indentation' gem instead of unpackaged 'heredoc_unindent'
 and provide an alias for the unindent method, called reset_indentation in
 indentation gem.
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: not-needed
Last-Update: 2014-05-10

--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -29,7 +29,11 @@
 require "safe_yaml/load"
 require "ostruct"
 require "hashie"
-require "heredoc_unindent"
+require "indentation"
+
+class String
+  alias unindent reset_indentation
+end
 
 # Stolen from Rails:
 # https://github.com/rails/rails/blob/3-2-stable/activesupport/lib/active_support/core_ext/kernel/reporting.rb#L10-25