gemfinder 0.0.1 → 0.0.2
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 +1 -1
- data/bin/gem_explore +8 -0
- data/gemfinder.gemspec +1 -1
- data/lib/gemfinder/finder.rb +9 -5
- data/lib/gemfinder/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b7466034260374bf2fc3dc09542db39f2ae04ff
|
4
|
+
data.tar.gz: 9621d5f4d4fada95d4bad7fff16a1f9a1abb4a4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb1eaa73d0b1c3ec2f260040cdf96dfd0a6485de7bd90cdda27186cdb0350f6eb3d95e89a637190e9d5df8db5e8ebdb13dba8a76e22a4837663468fb78417309
|
7
|
+
data.tar.gz: 6c88619b6d3514be9edfb336efbfdc5c03837a37c6d3f8d4cb6854d80d230578bbfe7abf6982fe3a82dad556bc9972f99b715e1b7683c9b69dcefcf40e138880
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
If you want information about a gem, type in "gemfind [GEM NAME]"
|
21
|
+
If you want information about a gem, type in "gemfind [GEM NAME]" and you will see the name, version number, description, and URI of that gem. If you want to search for all of the gems with a certain sequence of letters in their name, type in "gem_explore [sequence of letters] to get all of those gems along with their names, version numbers, descriptions, and URIs. This is a great way to learn about a popular gem and all of the corollary gems that extend it or make it easier to use."
|
22
22
|
|
23
23
|
## Contributing
|
24
24
|
|
data/bin/gem_explore
ADDED
data/gemfinder.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Gemfinder::VERSION
|
9
9
|
spec.authors = ["Chelsea"]
|
10
10
|
spec.email = ["chelsea.dommert@gmail.com"]
|
11
|
-
spec.summary = %q{
|
11
|
+
spec.summary = %q{Learn about active gems right from your terminal}
|
12
12
|
spec.description = %q{Write a longer description. Optional.}
|
13
13
|
spec.homepage = ""
|
14
14
|
spec.license = "MIT"
|
data/lib/gemfinder/finder.rb
CHANGED
@@ -5,18 +5,22 @@ module Gemfinder
|
|
5
5
|
class Finder
|
6
6
|
|
7
7
|
def gemfind search_term
|
8
|
-
|
9
8
|
info = Gems.info search_term
|
10
9
|
|
11
10
|
puts info["name"]
|
12
11
|
puts info["version"]
|
13
12
|
puts info["info"]
|
13
|
+
puts info["project_uri"]
|
14
|
+
end
|
14
15
|
|
16
|
+
def gem_explore search_term
|
17
|
+
matches = Gems.search search_term
|
15
18
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
19
|
+
matches.each do |candidate_gem|
|
20
|
+
puts candidate_gem["name"]
|
21
|
+
puts candidate_gem["info"]
|
22
|
+
puts candidate_gem["project_uri"]
|
23
|
+
puts
|
20
24
|
end
|
21
25
|
end
|
22
26
|
|
data/lib/gemfinder/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemfinder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chelsea
|
@@ -56,6 +56,7 @@ description: Write a longer description. Optional.
|
|
56
56
|
email:
|
57
57
|
- chelsea.dommert@gmail.com
|
58
58
|
executables:
|
59
|
+
- gem_explore
|
59
60
|
- gemfind
|
60
61
|
extensions: []
|
61
62
|
extra_rdoc_files: []
|
@@ -65,6 +66,7 @@ files:
|
|
65
66
|
- LICENSE.txt
|
66
67
|
- README.md
|
67
68
|
- Rakefile
|
69
|
+
- bin/gem_explore
|
68
70
|
- bin/gemfind
|
69
71
|
- gemfinder.gemspec
|
70
72
|
- lib/gemfinder.rb
|
@@ -93,6 +95,5 @@ rubyforge_project:
|
|
93
95
|
rubygems_version: 2.2.2
|
94
96
|
signing_key:
|
95
97
|
specification_version: 4
|
96
|
-
summary:
|
97
|
-
will see the name, version number, and description of that gem.
|
98
|
+
summary: Learn about active gems right from your terminal
|
98
99
|
test_files: []
|