compare_supermarkets 0.1.8 → 0.1.9

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: 68fc0e25b9f30c88d7c8c01f71be2291664d1de818357daa9dcebe661f7b729b
4
- data.tar.gz: af3ee8e59c2d0c8afbc679c5461ec3e1abe3321ebcfe0d2d53ef18503cd302bf
3
+ metadata.gz: 21d751bb1877f2aec5c1b3f80dcf680b41006b4e2be969d0fc31f9d6c1ae390d
4
+ data.tar.gz: b0daf658c23f131b73f159af94b50de565e210e6e91b71e69bc495ac1dd1a36f
5
5
  SHA512:
6
- metadata.gz: f3471c8fdc0bc2ad9b8c16b4806d0448666742f29e87bd9447de344637c36258464ff261cd672f21e34277de29518ac8e5248c886945daab6cd07fe5f23f480d
7
- data.tar.gz: 75722b0f9fe6ee6ad09ba9e2965b7106f24d8f2cf21ee4a87656ce5bad90e80a3df56c62d0545b32c33fc46ed31638a1868c9a7ad167437b5ae299f3e90211c6
6
+ metadata.gz: 94187db55938eaca84e23d48616391e182f64d90d3c148911a68db6de43076c6d7afb108474c77f2e83cb1bf7b8ae7f76374d68108a1c393758ab6774b39f67a
7
+ data.tar.gz: cbd9fbb88dfcafb951950ca7b5be1739be62849e2247a739d8d00eb2f1c950733d3a0d8f00f2b5bbcb527ec0dab28d6798cc5926bc40286c5b1abf5f741c3b94
@@ -113,6 +113,10 @@ class CompareSupermarkets::CLI
113
113
  puts ""
114
114
  input = gets.strip
115
115
  puts ""
116
+ choice(input)
117
+ end
118
+
119
+ def choice(input)
116
120
  if input == "1"
117
121
  choice = CompareSupermarkets::Product.all_top_10_sorted_by_price
118
122
  print_items(choice, "asc")
@@ -140,7 +144,6 @@ class CompareSupermarkets::CLI
140
144
  invalid_input
141
145
  how_to_display
142
146
  end
143
-
144
147
  end
145
148
 
146
149
  def finished
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CompareSupermarkets
4
- VERSION = "0.1.8"
4
+ VERSION = "0.1.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compare_supermarkets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Berger Howes
@@ -113,8 +113,7 @@ description: |
113
113
 
114
114
  ## Contributing
115
115
 
116
- Bug reports and pull requests are welcome on GitHub at https://github.com/happymelonbox/ruby_po
117
- rtfolio_project_gem.
116
+ Bug reports and pull requests are welcome on GitHub at https://github.com/happymelonbox/compare_supermarkets
118
117
 
119
118
  ## License
120
119
 
@@ -141,8 +140,8 @@ licenses:
141
140
  - MIT
142
141
  metadata:
143
142
  homepage_uri: http://rubygems.org/gems/compare_supermarkets
144
- source_code_uri: https://github.com/happymelonbox/ruby_portfolio_project_gem
145
- changelog_uri: https://github.com/happymelonbox/ruby_portfolio_project_gem/blob/main/CHANGELOG.md
143
+ source_code_uri: https://github.com/happymelonbox/compare_supermarkets
144
+ changelog_uri: https://github.com/happymelonbox/compare_supermarkets/blob/main/CHANGELOG.md
146
145
  post_install_message:
147
146
  rdoc_options: []
148
147
  require_paths: