forked from pool/rubygem-gem2rpm
Marcus Rueckert
75caa909b3
- Use git format-patch instead, fixing one more exists? occurrence - Note 0004-added-example-gem2rpm.yml.patch has the Rakefile hunk removed OBS-URL: https://build.opensuse.org/request/show/1041094 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/rubygem-gem2rpm?expand=0&rev=46
26 lines
990 B
Diff
26 lines
990 B
Diff
From f6ace6130df3a2ea6ca8e987e9675d652940510e Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Marcus=20R=C3=BCckert?= <darix@nordisch.org>
|
|
Date: Fri, 13 Mar 2015 15:06:01 +0100
|
|
Subject: [PATCH 20/33] Ruby 1.8 insists on the () for the parameter
|
|
|
|
---
|
|
templates/gem_packages.spec.erb | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/templates/gem_packages.spec.erb b/templates/gem_packages.spec.erb
|
|
index 661539a..6add6a7 100644
|
|
--- a/templates/gem_packages.spec.erb
|
|
+++ b/templates/gem_packages.spec.erb
|
|
@@ -14,7 +14,7 @@
|
|
end
|
|
|
|
def self.get_extension_doc_dir(gem_spec)
|
|
- return nil unless Gem.ruby_engine == 'ruby' && Gem::Requirement.new("~> 2.1.0").satisfied_by? Gem.ruby_version
|
|
+ return nil unless Gem.ruby_engine == 'ruby' && Gem::Requirement.new("~> 2.1.0").satisfied_by?(Gem.ruby_version)
|
|
if gem_spec.respond_to?(:extensions_dir)
|
|
rp = gem_spec.extensions_dir.rpartition(gem_spec.base_dir)
|
|
return File.join(rp[1], 'doc', rp[2])
|
|
--
|
|
2.26.2
|
|
|