summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix `RuntimeError` having multiple plugins installedrawhideVít Ondruch2023-03-081-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add dependency generatorVít Ondruch2023-03-083-4/+44
| | | | | This generates `rdoc-generator-fedora-darkfish-assets` dependency for standard RubyGems doc locations, which contains symlinks to the assets.
* Use `super` instead of alias.Vít Ondruch2023-03-081-6/+2
| | | | | This was residue of initial implementation, which was not using inheritance yet.
* Only use 'fedora' version of generator when availableVít Ondruch2023-03-081-1/+2
| | | | | | | | | | | | | | | | | 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 ... ~~~
* Drop unneeded debug message.Vít Ondruch2023-03-081-1/+0
|
* Use valid SPDX identifier.Vít Ondruch2023-03-081-1/+1
| | | | | | While it still unclear if the `-only` is the right variang :/ https://github.com/ruby/rdoc/issues/924
* Rename the package following the generator name.Vít Ondruch2023-03-081-17/+17
|
* Revert back to plain library instead of gem.Vít Ondruch2022-11-234-164/+74
| | | | | | | | 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.
* Explore RubyGems plugin idea.Vít Ondruch2022-11-113-6/+149
|
* Initial version.Vít Ondruch2022-10-245-0/+336
|
* Initial setup of the local repoVít Ondruch2022-10-202-0/+0