On Tue, Jan 6, 2015 at 3:11 PM, Allen Hewes <allen(a)decisiv.net> wrote:
Could you provide a link or sample (like you did above)?. I'm interested... I need to
be spoon fed sometimes. ;-)
Sure thing. Here's a patch where I only modified the package for Ruby
2.1 and Minitest 5:
http://pkgs.fedoraproject.org/cgit/rubygem-capillary.git/commit/?id=2bba5...
The "Ruby 2.1" part of that change was when I added the "%if 0%{?fc19}
|| 0%{?fc20} || 0%{?el7}" conditionals.
The "Minitest 5" part of that change was when I changed the code in
%check to run "ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb",
&method(:require)'" instead of using testrb.
I was already touching this rubygem-capillary package in order to fix
the Minitest 5 issue (the FTBFS bug,
https://bugzilla.redhat.com/1107075), so I decided to implement the
Ruby 2.1 changes as well. That's generally how it goes - I will adjust
the package to deprecate the explicit Requires/Provides when I get
around to it due to other bugs cropping up :)
Now that Fedora 19 is EOL, I can go through my gem packages and remove
the "0%{?fc19}" dist tag, leaving only the fc20 and el7 ones, so it's
a bit less crufty.
- Ken