File: hardcode-version.patch

package info (click to toggle)
ruby-spider 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 252 kB
  • sloc: ruby: 1,125; makefile: 4
file content (20 lines) | stat: -rw-r--r-- 552 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Hardcode the version instead of autodetecting it to fix tests
Author: Simon Quigley <tsimonq2@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-03-05
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/lib/spider.rb
+++ b/lib/spider.rb
@@ -4,9 +4,7 @@ require File.dirname(__FILE__)+'/spider/
 # links, and doing it all over again.
 class Spider
 
-  VERSION = File.read(
-    File.expand_path('../VERSION', __dir__)
-  ).strip.freeze
+  VERSION = "0.7.0".freeze
 
   def self.version
     VERSION