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 +4 -4
- data/lib/compare_supermarkets/cli.rb +4 -1
- data/lib/compare_supermarkets/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21d751bb1877f2aec5c1b3f80dcf680b41006b4e2be969d0fc31f9d6c1ae390d
|
4
|
+
data.tar.gz: b0daf658c23f131b73f159af94b50de565e210e6e91b71e69bc495ac1dd1a36f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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/
|
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/
|
145
|
-
changelog_uri: https://github.com/happymelonbox/
|
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:
|