apod-cli 0.0.3 → 0.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
  SHA1:
3
- metadata.gz: c64c6298003cbbc494291ddfa70941a8314ad216
4
- data.tar.gz: 0a53187c9e59a7da8c6263a4e2bbe232c9500b74
3
+ metadata.gz: 7ecc8528ddd3520cf23b8d3c5445b36aa7489a83
4
+ data.tar.gz: c345a117e384f2e66d28121d780c0425535510a7
5
5
  SHA512:
6
- metadata.gz: 9f99810767a686edc6c05a322d85be10b07df5e2b6039589fcee2e0d85b775ffbbd95b9977263d2d04f659aaf7a444a3eb14ce614bc2167a5a4e9db1c1c06b18
7
- data.tar.gz: d3abbe8bed53951cd56fda4476cbc29140826ce615e074d8b78edaa9fd459bbd6fa351becef215901068fa8dad0375a1487b18fe0bb89cc98a463ddbb97d1b64
6
+ metadata.gz: d8aa9eedebd79acaca624424fe343f18f42371cbad5ca5498b1dffed153d5ac9b740ee89edd16c3c801eb6da4e005df0d37f63a4a28bb56435c2f1991ec05727
7
+ data.tar.gz: 9d12222f3b4f939bd6a77ef90a23ef061d50e30f1e2198236c4a9d089ce2dd6e5f2a3782df91b1e7fecd840526bc3083e21e538603c198972a5316e19ba4c693
@@ -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.3"
16
+ spec.version = "0.0.4"
17
17
  spec.license = "MIT"
18
18
 
19
19
  spec.add_development_dependency "bundler", "~> 1.10"
@@ -45,7 +45,11 @@ class CLI
45
45
  puts "\nPlease enter the number (" + "[1]".colorize(:red) + " - " + "[#{@data.length}]".colorize(:red) + ") of links you would\nlike to sample. Or, type " + "'all'".colorize(:red) + " for information on all results."
46
46
  wanted = [(1..@data.length).to_a.map{|e| e.to_s}, "all"].flatten
47
47
  num = valid_input(wanted)
48
- sample = @data.sample(num.to_i)
48
+ if num == "all"
49
+ sample = @data
50
+ else
51
+ sample = @data.sample(num.to_i)
52
+ end
49
53
  puts ""
50
54
  print_links(sample)
51
55
  puts ""
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ball