Hi everybody,
Looking at omniauth PR [1], I just realized that on a lot of places, we
remove references to SimpleCov, Coveralls, Bundler and probably others
to cut down the dependencies. What if we shipped in rubygems-devel some
fake libraries, which would try to load the original library, but
silently provided the miminum mock to make the test suite pass without
the library?
E.g. for rubygem-omniauth and Coveralls, we would have:
~~~
$ cat /usr/share/ruby/vendor_ruby/coveralls.rb
begin
gem 'coveralls'
require 'coveralls'
rescue LoadError
puts '!!! Mocking Coveralls !!!'
class Coveralls
end
end
~~~
This is just an idea. I have not tested it. WDYT?
Vít
[1]
https://src.fedoraproject.org/rpms/rubygem-omniauth/pull-request/1
[2]
https://src.fedoraproject.org/rpms/rubygem-omniauth/blob/master/f/rubygem...