ruby_doc 1.0.5 → 1.1.5
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.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/changelog.md +5 -0
- data/lib/ruby_doc/ui/UI.rb +8 -1
- data/lib/ruby_doc/ui/ui_extras.rb +10 -0
- data/lib/ruby_doc/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce6c50fa59859ab477b3a2bdd0af629adabd6492eb68d988851868893fdbc73a
|
4
|
+
data.tar.gz: 1dbb4fe3ccb1eca4f707e46fbed8a5de498a5b3403e6280ff8388f1a41450d92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3b691614a0b80c69e82a0240541c8a2ca7045e9e0d673c8762431177106ca5fd76c14cac63d62d7d82bad82a769825d4543f066abf56093fdb6c74b250a5d7b
|
7
|
+
data.tar.gz: 56d76686e5aea2b98c2630d0aaf3d154f3bbf43f2bb54d0a273b196e8783f3b2d079b46d2664599bfd8347d72f65103721a58960de8a3a4edb4b3ce4e68906a6
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ Ever get tired of leaving your editor / environment to google a method, or more
|
|
30
30
|
* View related methods
|
31
31
|
* Browse all Docs (Paginated Output To Terminal)
|
32
32
|
* Source Links
|
33
|
-
* Easy Navigation
|
33
|
+
* Easy Navigation
|
34
34
|
* Random Dev Quotes (Ok This One Is Just For Fun Lol)
|
35
35
|
|
36
36
|
### Coming Soon:
|
@@ -71,6 +71,10 @@ Once installed execute
|
|
71
71
|
|
72
72
|
$ ruby_doc
|
73
73
|
|
74
|
+
To exit
|
75
|
+
|
76
|
+
$ exit!
|
77
|
+
|
74
78
|
---
|
75
79
|
## Contributing
|
76
80
|
|
data/changelog.md
ADDED
data/lib/ruby_doc/ui/UI.rb
CHANGED
@@ -17,7 +17,14 @@ module RubyDoc::CLI
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def self.main_Shuttle(iN)
|
20
|
-
iN
|
20
|
+
case iN
|
21
|
+
when "b"
|
22
|
+
paginateALL
|
23
|
+
when "exit!"
|
24
|
+
exit!
|
25
|
+
else
|
26
|
+
superSEARCH(iN)
|
27
|
+
end
|
21
28
|
end
|
22
29
|
|
23
30
|
def self.search_Shuttle(iN, matches)
|
@@ -22,6 +22,8 @@ module UIExtras
|
|
22
22
|
DataExtras.nextPage(currentPg)
|
23
23
|
when "m"
|
24
24
|
main
|
25
|
+
when "exit!"
|
26
|
+
exit!
|
25
27
|
end
|
26
28
|
# else
|
27
29
|
!iN.to_i.between?(1,docRange.count) ? browseError(iN, currentPg, docRange) : Doc.display(docRange[iN.to_i-1])
|
@@ -37,6 +39,8 @@ module UIExtras
|
|
37
39
|
|
38
40
|
if iN == "m"
|
39
41
|
main
|
42
|
+
elsif iN == "exit!"
|
43
|
+
exit!
|
40
44
|
elsif !iN.to_i.between?(1,matches.count)
|
41
45
|
choiceError(matches)
|
42
46
|
else
|
@@ -53,6 +57,8 @@ module UIExtras
|
|
53
57
|
Doc.listMeths(doc)
|
54
58
|
when "m"
|
55
59
|
main
|
60
|
+
when "exit!"
|
61
|
+
exit!
|
56
62
|
else
|
57
63
|
docError(doc)
|
58
64
|
end
|
@@ -65,6 +71,8 @@ module UIExtras
|
|
65
71
|
case iN
|
66
72
|
when "m"
|
67
73
|
main
|
74
|
+
when "exit!"
|
75
|
+
exit!
|
68
76
|
else
|
69
77
|
methError
|
70
78
|
end
|
@@ -76,6 +84,8 @@ module UIExtras
|
|
76
84
|
|
77
85
|
if iN == "m"
|
78
86
|
main
|
87
|
+
elsif iN == "exit!"
|
88
|
+
exit!
|
79
89
|
elsif !iN.to_i.between?(1,doc.methods.count) ? methListError(doc) : RubyDoc::CLI::UI.meth_Shuttle(iN, doc)
|
80
90
|
end
|
81
91
|
end
|
data/lib/ruby_doc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_doc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Nunez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -130,6 +130,7 @@ files:
|
|
130
130
|
- bin/console
|
131
131
|
- bin/ruby_doc
|
132
132
|
- bin/setup
|
133
|
+
- changelog.md
|
133
134
|
- config/environment.rb
|
134
135
|
- lib/ruby_doc/data/data_extras.rb
|
135
136
|
- lib/ruby_doc/data/doc.rb
|