ruby_doc 1.0.0 → 1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b09601af432f79494e4d3f0c09b02784dd3f0af1f760e004e9357ab88e042c5b
4
- data.tar.gz: 76d41e4142c9f62c59032232e2041c71c6bd4fac536773353f9270711a287f4d
3
+ metadata.gz: '08d1a548be7004ba6857ec08d7b5df5ffb5742250aa51bad24bf9c5ad60f8813'
4
+ data.tar.gz: d29d26870fd1b3080b26a8d2cea9d78c6431583ad63b441844eaf5698a9e9ebe
5
5
  SHA512:
6
- metadata.gz: a72e71471748518ef5774a953c95ea54c874b15db028c5c4bb391ba655c0e06f6e425eb099f0c5c680886f8cb466f944e37d2bb8282e5c38bb5f27e6c695ff9a
7
- data.tar.gz: 596a152273eaa76311f7a480761351535c429fc155db81e355d18025bf96073fc57dffe971b4a0a73c0978d30739a25cc9b2ea5660c4508c7c984fc74cb7e987
6
+ metadata.gz: bb6ad7c377bbf70b11fea4ad2036f3c1946ec54dfc1dc9264dda437dda33383969944806712fec59c5b62b040b15894fa31c104b76d05042e13a687ae761d198
7
+ data.tar.gz: f3e9b27735ebb001c061d8852259e3fc16d8456daa39cb519821d2ff279976f05abb876da8dcef8d76344d5b58a32a6d67315bcee60eab8685eb719df4c4da9c
@@ -1,27 +1,48 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_doc (1.0.0)
4
+ ruby_doc (1.0.1)
5
+ colorize (~> 0.8.1)
6
+ nokogiri (~> 1.8, >= 1.8.1)
7
+ require_all (~> 1.5, >= 1.5.0)
5
8
 
6
9
  GEM
7
10
  remote: https://rubygems.org/
8
11
  specs:
12
+ coderay (1.1.2)
9
13
  colorize (0.8.1)
14
+ diff-lcs (1.3)
15
+ method_source (0.9.0)
10
16
  mini_portile2 (2.3.0)
11
17
  nokogiri (1.8.1)
12
18
  mini_portile2 (~> 2.3.0)
19
+ pry (0.11.3)
20
+ coderay (~> 1.1.0)
21
+ method_source (~> 0.9.0)
13
22
  rake (10.5.0)
14
23
  require_all (1.5.0)
24
+ rspec (3.7.0)
25
+ rspec-core (~> 3.7.0)
26
+ rspec-expectations (~> 3.7.0)
27
+ rspec-mocks (~> 3.7.0)
28
+ rspec-core (3.7.1)
29
+ rspec-support (~> 3.7.0)
30
+ rspec-expectations (3.7.0)
31
+ diff-lcs (>= 1.2.0, < 2.0)
32
+ rspec-support (~> 3.7.0)
33
+ rspec-mocks (3.7.0)
34
+ diff-lcs (>= 1.2.0, < 2.0)
35
+ rspec-support (~> 3.7.0)
36
+ rspec-support (3.7.0)
15
37
 
16
38
  PLATFORMS
17
39
  ruby
18
40
 
19
41
  DEPENDENCIES
20
42
  bundler (~> 1.16)
21
- colorize
22
- nokogiri
43
+ pry (~> 0.11.3)
23
44
  rake (~> 10.0)
24
- require_all
45
+ rspec (~> 3.7, >= 3.7.0)
25
46
  ruby_doc!
26
47
 
27
48
  BUNDLED WITH
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Alpha Ruby Doc
1
+ # Alpha Ref Doc
2
2
  [![forthebadge](http://forthebadge.com/images/badges/powered-by-electricity.svg)](http://forthebadge.com)
3
3
  [![forthebadge](http://forthebadge.com/images/badges/pretty-risque.svg)](http://forthebadge.com)
4
4
 
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
- require_relative '../lib/environment'
2
+ require "bundler/setup"
3
+ require_relative '../config/environment'
3
4
 
4
5
  RubyDoc::CLI.iLoad
5
6
 
@@ -1,11 +1,9 @@
1
1
  #===========Requires==========
2
2
  require 'require_all'
3
3
  require 'colorize'
4
- require 'pry'
5
- # require_all 'bin'
6
- require_all 'lib'
7
- #===========Scraping==========
8
4
  require 'open-uri'
9
5
  require 'nokogiri'
10
- #===========Patches===========
6
+ require_all 'lib'
7
+ #===========Testing===========
8
+ # require 'pry'
11
9
  def x; exit!; end #Quit Exit
@@ -0,0 +1 @@
1
+ require_relative '../config/environment'
@@ -1,5 +1,7 @@
1
1
  module DataExtras
2
- #==================important===================
2
+ #=====================================================================
3
+ #DRYHELPERS
4
+ #=====================================================================
3
5
  #@all set/get maker
4
6
  def self.extended(base)
5
7
  base.class_variable_set(:@@all, [])
@@ -1,16 +1,16 @@
1
1
  class Meth
2
- #==================modules=====================
3
- extend DataExtras #sets/get @@all
4
- #=================properties===================
2
+ #========================modules===========================
3
+ extend DataExtras #sets/gets @@all
4
+ #=================properties===================
5
5
  attr_accessor :name, :url, :description, :type, :docs
6
- #==============================================
6
+ #==============================================
7
7
  def initialize(name, url)
8
8
  self.name = name
9
9
  self.url = url
10
10
  @@all << self
11
11
  self.docs = []
12
12
  end
13
- #==============================================
13
+ #==============================================
14
14
  def self.find(name)
15
15
  self.all.find{|meth| meth.name.downcase == name.downcase}
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module RubyDoc
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -9,21 +9,25 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Daniel Nunez"]
10
10
  spec.email = ["daniel.nunez.nyc@gmail.com"]
11
11
 
12
- spec.summary = %q{A CLI Gem that scrapes Ruby documentation for quick referencing. This will be the first in a series of Gems that accomplish the same for other languages.}
13
- spec.description = %q{Ever get tired of leaving your editor/environment to google a method? This gem aims to make Ruby referencing quick and more importantly, LOCAL! Enjoy.}
14
- spec.homepage = "https://github.com/AlphaDaniel/alpha-ruby_docs"
12
+ spec.summary = %q{A CLI Gem that scrapes Ruby documentation.}
13
+ spec.description = %q{Ever get tired of leaving your editor/environment to google a method, or more in depth info on a class or module? This gem aims to make Ruby referencing quick and more importantly, LOCAL! Ruby Doc scrapes Ruby documentation and allows users to quickly reference Ruby Language methods and additional information all your terminal. Have a query? run, hunt, and done. Never lose momentum, keep all things in your line of sight and get right back to coding. Enjoy.}
14
+ spec.homepage = "https://github.com/AlphaDaniel/Alpha-Ruby_Doc"
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
18
  f.match(%r{^(test|spec|features)/})
19
19
  end
20
-
20
+ spec.bindir = "bin"
21
21
  spec.executables = ['ruby_doc']
22
22
  spec.require_paths = ["lib"]
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.16"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
- spec.add_development_dependency "require_all"
27
- spec.add_development_dependency "colorize"
28
- spec.add_development_dependency "nokogiri"
26
+ spec.add_development_dependency 'rspec', '~> 3.7', '>= 3.7.0'
27
+ spec.add_development_dependency "pry", "~>0.11.3"
28
+ #==============================================
29
+ spec.add_runtime_dependency 'require_all', '~> 1.5', '>= 1.5.0'
30
+ spec.add_dependency "colorize", "~>0.8.1"
31
+ spec.add_runtime_dependency 'nokogiri', '~> 1.8', '>= 1.8.1'
32
+ #==============================================
29
33
  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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Nunez
@@ -39,49 +39,99 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: require_all
42
+ name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.7'
45
48
  - - ">="
46
49
  - !ruby/object:Gem::Version
47
- version: '0'
50
+ version: 3.7.0
48
51
  type: :development
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '3.7'
52
58
  - - ">="
53
59
  - !ruby/object:Gem::Version
54
- version: '0'
60
+ version: 3.7.0
55
61
  - !ruby/object:Gem::Dependency
56
- name: colorize
62
+ name: pry
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
- - - ">="
65
+ - - "~>"
60
66
  - !ruby/object:Gem::Version
61
- version: '0'
67
+ version: 0.11.3
62
68
  type: :development
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 0.11.3
75
+ - !ruby/object:Gem::Dependency
76
+ name: require_all
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '1.5'
66
82
  - - ">="
67
83
  - !ruby/object:Gem::Version
68
- version: '0'
84
+ version: 1.5.0
85
+ type: :runtime
86
+ prerelease: false
87
+ version_requirements: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '1.5'
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 1.5.0
95
+ - !ruby/object:Gem::Dependency
96
+ name: colorize
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: 0.8.1
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: 0.8.1
69
109
  - !ruby/object:Gem::Dependency
70
110
  name: nokogiri
71
111
  requirement: !ruby/object:Gem::Requirement
72
112
  requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '1.8'
73
116
  - - ">="
74
117
  - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
118
+ version: 1.8.1
119
+ type: :runtime
77
120
  prerelease: false
78
121
  version_requirements: !ruby/object:Gem::Requirement
79
122
  requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '1.8'
80
126
  - - ">="
81
127
  - !ruby/object:Gem::Version
82
- version: '0'
83
- description: Ever get tired of leaving your editor/environment to google a method?
84
- This gem aims to make Ruby referencing quick and more importantly, LOCAL! Enjoy.
128
+ version: 1.8.1
129
+ description: Ever get tired of leaving your editor/environment to google a method,
130
+ or more in depth info on a class or module? This gem aims to make Ruby referencing
131
+ quick and more importantly, LOCAL! Ruby Doc scrapes Ruby documentation and allows
132
+ users to quickly reference Ruby Language methods and additional information all
133
+ your terminal. Have a query? run, hunt, and done. Never lose momentum, keep all
134
+ things in your line of sight and get right back to coding. Enjoy.
85
135
  email:
86
136
  - daniel.nunez.nyc@gmail.com
87
137
  executables:
@@ -99,7 +149,8 @@ files:
99
149
  - bin/console
100
150
  - bin/ruby_doc
101
151
  - bin/setup
102
- - lib/environment.rb
152
+ - config/environment.rb
153
+ - lib/ruby_doc.rb
103
154
  - lib/ruby_doc/data/data_extras.rb
104
155
  - lib/ruby_doc/data/doc.rb
105
156
  - lib/ruby_doc/data/meth.rb
@@ -109,7 +160,7 @@ files:
109
160
  - lib/ruby_doc/ui/ui_extras.rb
110
161
  - lib/ruby_doc/version.rb
111
162
  - ruby_doc.gemspec
112
- homepage: https://github.com/AlphaDaniel/alpha-ruby_docs
163
+ homepage: https://github.com/AlphaDaniel/Alpha-Ruby_Doc
113
164
  licenses:
114
165
  - MIT
115
166
  metadata: {}
@@ -129,9 +180,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
180
  version: '0'
130
181
  requirements: []
131
182
  rubyforge_project:
132
- rubygems_version: 2.7.3
183
+ rubygems_version: 2.7.4
133
184
  signing_key:
134
185
  specification_version: 4
135
- summary: A CLI Gem that scrapes Ruby documentation for quick referencing. This will
136
- be the first in a series of Gems that accomplish the same for other languages.
186
+ summary: A CLI Gem that scrapes Ruby documentation.
137
187
  test_files: []