commit ddc0144a9566885e97f4b6b81c5470628d810ea2
Author: Elan Ruusamäe <g...@delfi.ee>
Date:   Sun Sep 18 21:59:59 2016 +0300

    uses Gem::Version.new, so preload rubygems

 ruby-neovim.spec | 3 +++
 rubygems.patch   | 7 +++++++
 2 files changed, 10 insertions(+)
---
diff --git a/ruby-neovim.spec b/ruby-neovim.spec
index 5a16224..08d22e8 100644
--- a/ruby-neovim.spec
+++ b/ruby-neovim.spec
@@ -11,6 +11,7 @@ License:      MIT
 Group:         Development/Languages
 Source0:       http://rubygems.org/downloads/%{pkgname}-%{version}.gem
 # Source0-md5: fc4441ed1758ffb76008f29e9cfbe774
+Patch0:                rubygems.patch
 URL:           https://github.com/alexgenco/neovim-ruby
 BuildRequires: rpm-rubyprov
 BuildRequires: rpmbuild(macros) >= 1.656
@@ -24,6 +25,7 @@ BuildRequires:        ruby-rspec >= 3.0
 %endif
 Requires:      ruby-msgpack < 2
 Requires:      ruby-msgpack >= 1.0
+Requires:      ruby-rubygems
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -33,6 +35,7 @@ A Ruby client for Neovim.
 %prep
 %setup -q -n %{pkgname}-%{version}
 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
+%patch0 -p1
 
 %build
 # write .gemspec
diff --git a/rubygems.patch b/rubygems.patch
new file mode 100644
index 0000000..6b84dcf
--- /dev/null
+++ b/rubygems.patch
@@ -0,0 +1,7 @@
+--- neovim-0.3.0/lib/neovim/version.rb~        2016-09-18 21:41:12.000000000 
+0300
++++ neovim-0.3.0/lib/neovim/version.rb 2016-09-18 21:56:35.335571728 +0300
+@@ -1,3 +1,4 @@
+ module Neovim
++  require 'rubygems'
+   VERSION = Gem::Version.new("0.3.0")
+ end
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-neovim.git/commitdiff/52935889a3f73e760ae7b062408d960d84dcaab3

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to