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-omniauth.spec#_56

_______________________________________________
ruby-sig mailing list -- ruby-sig@lists.fedoraproject.org
To unsubscribe send an email to ruby-sig-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/ruby-sig@lists.fedoraproject.org

Reply via email to