File: 0002-gemspec-don-t-assume-lib-exists.patch

package info (click to toggle)
ruby-flexmock 2.3.6-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 868 kB
  • sloc: ruby: 7,416; makefile: 6
file content (18 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
From: Antonio Terceiro <terceiro@debian.org>
Date: Tue, 15 Sep 2015 13:40:25 -0300
Subject: gemspec: don't assume lib/ exists

This fixes running the test suite under autopkgtest
---
 flexmock.gemspec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/flexmock.gemspec
+++ b/flexmock.gemspec
@@ -1,4 +1,5 @@
-require './lib/flexmock/version.rb'
+$LOAD_PATH << 'lib'
+require 'flexmock/version.rb'
 spec = Gem::Specification.new do |s|
   #### Basic information.
   s.name = 'flexmock'