File 0020-Ruby-1.8-insists-on-the-for-the-parameter.patch of Package rubygem-gem2rpm
26
1
From f6ace6130df3a2ea6ca8e987e9675d652940510e Mon Sep 17 00:00:00 2001
2
From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <darix@nordisch.org>
3
Date: Fri, 13 Mar 2015 15:06:01 +0100
4
Subject: [PATCH 20/26] Ruby 1.8 insists on the () for the parameter
5
6
---
7
templates/gem_packages.spec.erb | 2 +-
8
1 file changed, 1 insertion(+), 1 deletion(-)
9
10
diff --git a/templates/gem_packages.spec.erb b/templates/gem_packages.spec.erb
11
index 661539a..6add6a7 100644
12
--- a/templates/gem_packages.spec.erb
13
+++ b/templates/gem_packages.spec.erb
14
15
end
16
17
def self.get_extension_doc_dir(gem_spec)
18
- return nil unless Gem.ruby_engine == 'ruby' && Gem::Requirement.new("~> 2.1.0").satisfied_by? Gem.ruby_version
19
+ return nil unless Gem.ruby_engine == 'ruby' && Gem::Requirement.new("~> 2.1.0").satisfied_by?(Gem.ruby_version)
20
if gem_spec.respond_to?(:extensions_dir)
21
rp = gem_spec.extensions_dir.rpartition(gem_spec.base_dir)
22
return File.join(rp[1], 'doc', rp[2])
23
--
24
2.10.2
25
26