| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Having multiple RubyGems plugins installed (e.g. rubygems-server) in
addition to RDoc, the original code was too conservative and causing
errors such as:
~~~
$ gem server
Error loading RubyGems plugin "/usr/share/gems/plugins/rdoc-generator-fedora-darkfish_plugin.rb": (RuntimeError)
Server started at http://0.0.0.0:8808
Server started at http://[::]:8808
... snip ..
~~~
or
~~~
$ gem list
Error loading RubyGems plugin "/usr/share/gems/plugins/rdoc-generator-fedora-darkfish_plugin.rb": (RuntimeError)
*** LOCAL GEMS ***
abbrev (default: 0.1.1)
... snip ...
~~~
Newly try to load the RDoc hooks and check if we have only one
hook afterwards and assume that is the right one.
It would be nice to be able to compare if the hook really is the
expected `Gem::RDoc.method(:generation_hook)`, but there is no way to do
it easily to my knowledge.
|
|
|
|
|
| |
This generates `rdoc-generator-fedora-darkfish-assets` dependency for
standard RubyGems doc locations, which contains symlinks to the assets.
|
|
|
|
|
| |
This was residue of initial implementation, which was not using
inheritance yet.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This prevents other generators such as 'ri' to fail:
~~~
$ gem install gem2rpm
WARNING: You don't have /builddir/bin in your PATH,
gem executables will not run.
Successfully installed gem2rpm-1.0.2
Parsing documentation for gem2rpm-1.0.2
ERROR: While executing gem ... (OptionParser::InvalidArgument)
invalid argument: Invalid output formatter fedora::ri
/usr/share/gems/gems/rdoc-6.5.0/lib/rdoc/options.rb:1235:in `setup_generator'
... snip ...
~~~
|
| |
|
|
|
|
|
|
| |
While it still unclear if the `-only` is the right variang :/
https://github.com/ruby/rdoc/issues/924
|
| |
|
|
|
|
|
|
|
|
| |
The RubyGems plugin intercace can still be used to load the generator,
while it enables to keep the assets out of the RubyGems direcotry
structure. The split would be otherwise akward.
This commit also includes change from monkey patching to inheritance.
|
| |
|
| |
|
|
|