apod-cli 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: 2c883a77c58658b5ff835bea6e255efd1416d746
4
- data.tar.gz: f1a89183ef5d01d16eee26305457f16318cc1f11
3
+ metadata.gz: dd6e785d08942dd950420bf901eed6c19e22a3ed
4
+ data.tar.gz: 6ff3190fbeb6c8335251e6775c4502cb3bd8c2ed
5
5
  SHA512:
6
- metadata.gz: 5f960009ba5fe11f146f0550a3f7f510e4d220f78d015b736810e4c376e27af19a621d42bed7c5b5c8a7accdf6bc795b9fa68d3ea894fbdc6f1129fa19e30399
7
- data.tar.gz: 79fb7e5d7277af88c0d195232414a84b8440b0eeb8e246806fd0f77957d9e018c06517eb2aa107d285a8455c30b6ed93a86980fa625b9e35d5d195ff0b7ae2b7
6
+ metadata.gz: 232816bdb4407a5d55fbfc6ab91525a389f882c6fe1551cf9212fd6df4e526d90541093faa99108ce3c47d313e72caf366699d48820d8df84e8a307321232573
7
+ data.tar.gz: 0bc7f1f9b4edffdbac277bbec0b02efa37f4bbc3b843c58d976580d63d6f4279989abb4a268db7f35fd2439d6a77f72c70182fd253fecf19a8949fad0f7d9f6e
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.executables = ["apod-cli"]
14
14
  spec.name = "apod-cli"
15
15
  spec.require_paths = ["lib", "lib/apod_cli"]
16
- spec.version = "0.0.1"
16
+ spec.version = "0.0.2"
17
17
  spec.license = "MIT"
18
18
 
19
19
  spec.add_development_dependency "bundler", "~> 1.10"
@@ -123,6 +123,10 @@ class CLI
123
123
  end
124
124
  end
125
125
  if multisearch then results = name_search(results) end
126
+ if results == []
127
+ puts "\nNo results found!\n"
128
+ return
129
+ end
126
130
  puts ""
127
131
  print_links(results)
128
132
  puts ""
@@ -157,7 +161,9 @@ class CLI
157
161
  end
158
162
  puts "[y/n]".colorize(:red)
159
163
  if valid_input(["y", "n"]) == "y"
164
+ puts ""
160
165
  if arr.length > 1
166
+ puts ""
161
167
  puts "Please enter the " + "results number".colorize(:red) + " of any link(s) you would like more\ninformation on, comma separated. Or, type " + "'all'".colorize(:red) + " for more information on all results."
162
168
  wanted = [(1..arr.length).to_a.map{|e| e.to_s}, "all"].flatten
163
169
  validated = false #Should maybe turn this into a valid_split method or something, but it's not necessary right now.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apod-cli
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
  - David Ball