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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 437440ecdb5b3c4b2866a264aa218c094db07dbf
4
- data.tar.gz: 6b9ea0e910f7c617156a5127a58bf20e75852bd8
3
+ metadata.gz: 9b7466034260374bf2fc3dc09542db39f2ae04ff
4
+ data.tar.gz: 9621d5f4d4fada95d4bad7fff16a1f9a1abb4a4a
5
5
  SHA512:
6
- metadata.gz: 46a8bf28c4cdeae9be60516dacc0b6bfd9987298c196754317275fc2271716a257b5cda5e93b78216e48425289ac71c16bd1f7b51b96ed14f08fe413cdcb1b25
7
- data.tar.gz: 781de50ebb14074e1f9eb3577649b727b21347d8d03b757faf5add7358840085d7fab941701c3419491f76bf9989951807464de6375cb4ea3f984e4e684a4c50
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]"" and you will see the name, version number, and description of that gem.
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
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require_relative "../lib/gemfinder/finder"
4
+
5
+ search_terms = ARGV[0]
6
+
7
+ gem_search = Gemfinder::Finder.new
8
+ gem_search.gem_explore(search_terms)
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{If you want information about a gem, type in "gemfind [GEM NAME]"" and you will see the name, version number, and description of that gem. }
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"
@@ -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
- # matches = Gems.search(search_terms)
17
- # matches.each do |candidate_gem|
18
- # puts "#{candidate_gem}: "
19
- # puts Gems.info(candidate_gem)
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
 
@@ -1,3 +1,3 @@
1
1
  module Gemfinder
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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: If you want information about a gem, type in "gemfind [GEM NAME]"" and you
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: []