ruby_doc 1.0.3 → 1.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bea0d19c697dddd4a4a635c8ca69683c4b4567e6da992835d3cb376164f5aacf
4
- data.tar.gz: c25bc2211e0be444657bbc1dcc5cc2d35a1e0772151219483e5f23e1d98d4321
3
+ metadata.gz: e38d7022794372628533e6570a4584f9c166c2ac75fc615391f3d26bb77139d2
4
+ data.tar.gz: b2d43d30a6a837db7e151e8dcb32aaf4c2a9f19066addafc163c58f3f193a5c8
5
5
  SHA512:
6
- metadata.gz: 380b83296bc8a1bcf5edf9b6bc326403432fc6add4a6ba2557ac3432005fe542e60d22140f7d94e317cb096e30ab35658b7694ccfd5cbc7b4bbb0f4326293383
7
- data.tar.gz: 9313cd4ac4162cb14cc52655e969f76ab4dcb8e3336c65e982bd96dc157c31c903675e38cf46f380dd2c9cfe5d757818765a633ec7fe381b607bc559bf11e7d5
6
+ metadata.gz: 7e311a89f49019a86467a64d50a0a33cf1ede6f8b735550bde2a8193db8daea2aa685bacea7503ea0715460f854aa8c59fec4dc93b3baab6c14d9303fe2e4dfd
7
+ data.tar.gz: b8c55f4db88df80d45dc65cd59c31a5b70f06564541fe3b901e8fcd5d8f8c1ce295ddba8595fe887964dd9395ba7070fb21819a7d5662bad0ef35541979c61e6
data/Notes.md ADDED
@@ -0,0 +1,37 @@
1
+ # NOTES:
2
+
3
+ ### SEARCH BY METHOD FEATURE:
4
+ For now the search feature only searches all doc objects (iterating Doc.all)
5
+ I would like to improve this to also search through all Meth objects.
6
+ The issue here explained below...
7
+
8
+ Population of all methods can only be done through scraping each individual
9
+ doc page for all its meth urls. In this site, methods are spread out
10
+ and not available in their entirety, in a singular container or list.
11
+
12
+ Roadmap: In this CLI I pre-load all docs through Scraper.loadDOCS in
13
+ environment.rb before my exec is ran. When user first lands at UI.greeting
14
+ all docs (objects) are already loaded.
15
+
16
+ To initiate the scrape I need to retrieve a method for instantiation,
17
+ I pass in a Doc class object's url attribute. Since, as previously stated,
18
+ ALL methods do not live in one place... The logical solution would be to
19
+ iterate through Doc.all, pass (obj).url to block and call Scraper.load_doc_page()
20
+ passing in every iteration. This would essentially instantiate meth objects
21
+ for all methods included on all doc pages.
22
+
23
+ 2 big issues arise with this fact. The first and most important URI will not
24
+ let me iterate and open each page (redirection open loop error). 2nd,
25
+ even if we did we would be opening, scraping, and iterating through
26
+ 2403 different site pages. As you can imagine this would not be practical
27
+
28
+ Plan for improvement:
29
+ I will be researching a way to patch this error so as to allow the iteration
30
+ and if successful decide on implementation based on run time.
31
+
32
+ If unsuccessful I will be looking into changing my scrapers to point to
33
+ http://ruby-doc.org/ which was my initial plan with this CLI. As this is
34
+ my very first CLI the layout of this site was a bit intimidating at first glance
35
+ as far as scraping successfully. At the completetion of this CLI I am now
36
+ a lot more confident in my abilities so this will most likely be the way
37
+ I go.
data/README.md CHANGED
@@ -15,14 +15,18 @@ Ever get tired of leaving your editor / environment to google a method, or more
15
15
  [![forthebadge](http://forthebadge.com/images/badges/thats-how-they-get-you.svg)](http://forthebadge.com)
16
16
 
17
17
  ![image](https://i.imgur.com/NmincSX.gif)
18
- ### Features
19
- * Search by name
18
+ ### Features:
19
+ * Search by Doc title
20
20
  * View related methods
21
21
  * Browse all Docs (Paginated Output To Terminal)
22
22
  * Source Links
23
23
  * Easy Navigation (Back To Main On Every Menu)
24
24
  * Random Dev Quotes (Ok This One Is Just For Fun Lol)
25
25
 
26
+ ### Coming Soon:
27
+ * Search by method name ([See Notes](https://github.com/AlphaDaniel/alpha-ruby_doc/blob/master/Notes.md))
28
+ * Multiple Doc sources
29
+
26
30
  ---
27
31
  ## INSTALLATION
28
32
 
@@ -146,41 +146,5 @@ module DataExtras
146
146
  uie.viewMenu#
147
147
  uie.choiceControl(matches)#
148
148
  end
149
- =begin
150
- # NOTES: For now this only searches all doc objects (iterating Doc.all)
151
- I would like to improve this to also search through all Meth objects.
152
- The issue here explained below...
153
-
154
- Population of all methods can only be done through scraping each individual
155
- doc page for all its meth urls. In this site, methods are spread out
156
- and not available in their entirety, in a singular container or list.
157
-
158
- Roadmap: In this CLI I pre-load all docs through Scraper.loadDOCS in
159
- environment.rb before my exec is ran. When user first lands at UI.greeting
160
- all docs (objects) are already loaded.
161
-
162
- To initiate the scrape I need to retrieve a method for instantiation,
163
- I pass in a Doc class object's url attribute. Since, as previously stated,
164
- ALL methods do not live in one place... The logical solution would be to
165
- iterate through Doc.all, pass (obj).url to block and call Scraper.load_doc_page()
166
- passing in every iteration. This would essentially instantiate meth objects
167
- for all methods included on all doc pages.
168
-
169
- 2 big issues arise with this fact. The first and most important URI will not
170
- let me iterate and open each page (redirection open loop error). 2nd,
171
- even if we did we would be opening, scraping, and iterating through
172
- 2403 different site pages. As you can imagine this would not be practical
173
-
174
- Plan for improvement:
175
- I will be researching a way to patch this error so as to allow the iteration
176
- and if successful decide on implementation based on run time.
177
-
178
- If unsuccessful I will be looking into changing my scrapers to point to
179
- http://ruby-doc.org/ which was my initial plan with this CLI. As this is
180
- my very first CLI the layout of this site was a bit intimidating at first glance
181
- as far as scraping successfully. At the completetion of this CLI I am now
182
- a lot more confident in my abilities so this will most likely be the way
183
- I go.
184
- =end
185
149
  #=====================================================================
186
150
  end
@@ -1,3 +1,3 @@
1
1
  module RubyDoc
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Nunez
@@ -124,6 +124,7 @@ files:
124
124
  - Gemfile
125
125
  - Gemfile.lock
126
126
  - LICENSE.txt
127
+ - Notes.md
127
128
  - README.md
128
129
  - Rakefile
129
130
  - bin/console