File: 0001-Remove-sfl-gem-dependency.patch

package info (click to toggle)
ruby-specinfra 2.94.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,464 kB
  • sloc: ruby: 10,562; makefile: 4
file content (51 lines) | stat: -rw-r--r-- 1,622 bytes parent folder | 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
From: Scott Leggett <scott@sl.id.au>
Date: Sun, 6 Nov 2016 01:20:03 +1100
Subject: Remove sfl gem dependency.

Forwarded: not-needed
Last-Update: 2024-02-12

This dependency is only required for ruby1.8, which is no longer in
Debian.
---
 lib/specinfra/backend/exec.rb | 1 -
 lib/specinfra/backend/lxd.rb  | 1 -
 specinfra.gemspec             | 1 -
 3 files changed, 3 deletions(-)

diff --git a/lib/specinfra/backend/exec.rb b/lib/specinfra/backend/exec.rb
index 00c28b9..60c9bee 100644
--- a/lib/specinfra/backend/exec.rb
+++ b/lib/specinfra/backend/exec.rb
@@ -1,7 +1,6 @@
 require 'singleton'
 require 'fileutils'
 require 'shellwords'
-require 'sfl' if Specinfra.ruby_is_older_than?(1, 9, 0)
 
 module Specinfra
   module Backend
diff --git a/lib/specinfra/backend/lxd.rb b/lib/specinfra/backend/lxd.rb
index d422838..14a07d3 100644
--- a/lib/specinfra/backend/lxd.rb
+++ b/lib/specinfra/backend/lxd.rb
@@ -3,7 +3,6 @@
 require 'singleton'
 require 'fileutils'
 require 'shellwords'
-require 'sfl' if Specinfra.ruby_is_older_than?(1, 9, 0)
 
 module Specinfra
   module Backend
diff --git a/specinfra.gemspec b/specinfra.gemspec
index 47e2c42..ce0eff1 100644
--- a/specinfra.gemspec
+++ b/specinfra.gemspec
@@ -23,7 +23,6 @@ Gem::Specification.new do |spec|
   spec.add_runtime_dependency "net-scp"
   spec.add_runtime_dependency "net-ssh", ">= 2.7"
   spec.add_runtime_dependency "net-telnet" # intentionally version-unspecified for Ruby older than 2.3.0
-  spec.add_runtime_dependency "sfl" # required for Ruby older than 1.9.0
 
   spec.add_development_dependency "rake"
   spec.add_development_dependency "rspec"