defunkt / gem-man Goto Github PK
View Code? Open in Web Editor NEWRubyGems plugin to view a gem's manpage.
Home Page: http://defunkt.io/gem-man/
License: MIT License
RubyGems plugin to view a gem's manpage.
Home Page: http://defunkt.io/gem-man/
License: MIT License
At http://defunkt.io/gem-man/ it points to http://rtomayko.github.com/ron/ but it doesn't work any more.
It's http://rtomayko.github.io/ronn/
Being able to search the installed gem's man pages, as well as falling back to the system installed man pages (if -s is given, of course).
Would be nice if you could even extend it to support regular expressions. :)
Calling gem man
with no arguments produces an error. Should print the usage instead.
$ gem man ERROR: While executing gem ... (TypeError) can't convert NilClass to String
I had some trouble finding this project, since it does not comply with the defacto rubygem plugin naming convention of rubygems-foo
.
just a small typo, fix adds missing '
diff --git a/lib/rubygems/commands/man_command.rb b/lib/rubygems/commands/man_command.rb
index 2e8328b..d931ffa 100644
--- a/lib/rubygems/commands/man_command.rb
+++ b/lib/rubygems/commands/man_command.rb
@@ -115,7 +115,7 @@ class Gem::Commands::ManCommand < Gem::Command
pattern = /#{Regexp.escape name}/
get_spec(pattern, &block)
else
- say "Can't find any manpages for '#{name.inspect}"
+ say "Can't find any manpages for '#{name.inspect}'"
nil
end
elsif specs.length == 1 || options[:latest]
Hello,
gem-man 0.2.0 does not recognize some gem manpages. For instance:
> gem man -a
These gems have man pages:
kramdown 0.13.2
rdiscount 1.6.8
kramdown 0.10.0
In particular, my Inochi project isn't listed there, even though it has the same man/
hierarchy as kramdown:
/home/stash/app/gems/gems/inochi-6.0.2/
|+bin/
|+lib/
|~man/
| `~man1/
| `-inochi.1
`-LICENSE
/home/stash/app/gems/gems/kramdown-0.13.2/
|+benchmark/
|+bin/
|+data/
|+doc/
|+lib/
|~man/
| `~man1/
| `-kramdown.1
file(1) has this to say about the .1 files:
> file `gem env gemdir`/gems/*/man/man1/*.1 | sed 's,^.*gems/,,'
detest-3.1.3/man/man1/detest.1: troff or preprocessor input, UTF-8 Unicode text, with very long lines
ember-0.3.1/man/man1/ember.1: troff or preprocessor input, ASCII text, with very long lines
inochi-6.0.2/man/man1/inochi.1: Ruby module source, UTF-8 Unicode text, with very long lines
kramdown-0.10.0/man/man1/kramdown.1: troff or preprocessor input, ASCII text
kramdown-0.13.2/man/man1/kramdown.1: troff or preprocessor input, ASCII text
rumai-4.1.2/man/man1/rumai.1: troff or preprocessor input, ASCII text, with very long lines
unicorn-3.6.0/man/man1/unicorn.1: troff or preprocessor input, ASCII text
unicorn-3.6.0/man/man1/unicorn_rails.1: troff or preprocessor input, ASCII text
webgen-0.5.14/man/man1/webgen.1: troff or preprocessor input, ASCII text
What's going on?
Thanks for your consideration.
I installed gem-man via gem install gem-man w/ gem 1.3.5 in ruby 1.8 and ruby 1.9.1, and receive this error in both for gem-man commands. am I missing a dependency? OS is ubuntu-server karmic.
$ gem1.8 man gem-man
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::VersionOption
$ gem1.9.1 man gem-man
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::VersionOption
this seems like a useful gem, thanks for sharing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.