rubydoc 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/rubydoc +21 -0
- data/lib/rubydoc.rb +1 -0
- data/lib/rubydoc/rubydoc.rb +12 -0
- metadata +83 -0
data/bin/rubydoc
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'optiflag'
|
5
|
+
require 'rubydoc'
|
6
|
+
|
7
|
+
module RubyDocCommand extend OptiFlagSet
|
8
|
+
optional_flag "v" do
|
9
|
+
long_form "version"
|
10
|
+
description "Specify a specific version of a gem"
|
11
|
+
end
|
12
|
+
optional_switch_flag "f" do
|
13
|
+
long_form "no-frames"
|
14
|
+
description "Don't display the documentation in frames"
|
15
|
+
end
|
16
|
+
extended_help_flag "help"
|
17
|
+
|
18
|
+
and_process!
|
19
|
+
end
|
20
|
+
|
21
|
+
`open #{RubyDoc.url ARGV.first, RubyDocCommand.flags.v, RubyDocCommand.flags.f}`
|
data/lib/rubydoc.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'rubydoc/rubydoc'
|
metadata
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubydoc
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Matt Parker
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-01-09 00:00:00 -05:00
|
19
|
+
default_executable: rubydoc
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: optiflag
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 5
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 7
|
33
|
+
version: "0.7"
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
description: A command that quickly opens gem documentation on rubydoc.info
|
37
|
+
email: moonmaster9000@gmail.com
|
38
|
+
executables:
|
39
|
+
- rubydoc
|
40
|
+
extensions: []
|
41
|
+
|
42
|
+
extra_rdoc_files: []
|
43
|
+
|
44
|
+
files:
|
45
|
+
- lib/rubydoc.rb
|
46
|
+
- lib/rubydoc/rubydoc.rb
|
47
|
+
- bin/rubydoc
|
48
|
+
has_rdoc: true
|
49
|
+
homepage: http://github.com/moonmaster9000/rubydoc
|
50
|
+
licenses: []
|
51
|
+
|
52
|
+
post_install_message:
|
53
|
+
rdoc_options: []
|
54
|
+
|
55
|
+
require_paths:
|
56
|
+
- lib
|
57
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
hash: 3
|
63
|
+
segments:
|
64
|
+
- 0
|
65
|
+
version: "0"
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
75
|
+
requirements: []
|
76
|
+
|
77
|
+
rubyforge_project:
|
78
|
+
rubygems_version: 1.3.7
|
79
|
+
signing_key:
|
80
|
+
specification_version: 3
|
81
|
+
summary: A command line utility for opening gem documentation.
|
82
|
+
test_files: []
|
83
|
+
|