compare_supermarkets 0.1.8 → 0.1.12

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: 3ce36d625832e4b04b019bf397e7df35849d1c7b12b4f05e78c72bc84145ca93
4
+ data.tar.gz: 347c7a8717ba07abbd693fe56cebef2c434068aaf33798c2a5043968c3f030e8
5
5
  SHA512:
6
- metadata.gz: f3471c8fdc0bc2ad9b8c16b4806d0448666742f29e87bd9447de344637c36258464ff261cd672f21e34277de29518ac8e5248c886945daab6cd07fe5f23f480d
7
- data.tar.gz: 75722b0f9fe6ee6ad09ba9e2965b7106f24d8f2cf21ee4a87656ce5bad90e80a3df56c62d0545b32c33fc46ed31638a1868c9a7ad167437b5ae299f3e90211c6
6
+ metadata.gz: 8b2f7314be77c146d49c380ece54ae943e5b84080b95043bbf3eaff49bb7a8614d93b764aa0966c9f3757e34d8fbbb921b3c9b1497ee804dd3d3d3bfce3b9fef
7
+ data.tar.gz: c263ed632b0be19dae6f50fb56835188faaa6e6760785a0037b7c0f47026db791d69109a8f2ea1894a1746b68a83abcb5308cdc30b4c68f7b8aa1509591aca67
data/bin/setup CHANGED
@@ -3,4 +3,5 @@
3
3
  set -euo pipefail
4
4
  IFS=$'\n\t'
5
5
 
6
- bundle install
6
+ bundle install
7
+ brew install --cask chromedriver #required for watir to work
@@ -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.12"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Berger Howes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-27 00:00:00.000000000 Z
11
+ date: 2021-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,48 +80,38 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description: |
84
- Will search Woolworths and Coles online stores for prices based on an input search parameter
85
- # CompareSupermarkets
86
-
87
- Ever wondered 'I wonder if my shampoo is cheaper at Coles or Woolworths...?' ? But can't be
88
- bothered searching both websites and comparing? Well that's what this gem does for you. Simply
89
- install and follow the prompts.
90
-
91
- ## Installation
92
-
93
- Add this line to your application's Gemfile:
94
-
95
- ```ruby
96
- gem 'compare_supermarkets'
97
- ```
98
-
99
- And then execute:
100
-
101
- $ bundle install
102
-
103
- Or install it yourself as:
104
-
105
- $ gem install compare_supermarkets
106
-
107
- ## Usage
108
-
109
- To use compare_supermarkets call $ 'compare_supermarkets'
110
- and follow the prompts. The more specific you are the faster the search results appear
111
- and there will be less items to compare.
112
-
113
-
114
- ## Contributing
115
-
116
- Bug reports and pull requests are welcome on GitHub at https://github.com/happymelonbox/ruby_po
117
- rtfolio_project_gem.
118
-
119
- ## License
120
-
121
- The gem is available as open source under the terms of the [MIT License](https://opensource.org
122
- /licenses/MIT).
83
+ - !ruby/object:Gem::Dependency
84
+ name: watir
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 6.19.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 6.19.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: selenium-webdriver
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 3.142.7
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 3.142.7
111
+ description: Will search Woolworths and Coles online stores for prices based on an
112
+ input search parameter **Google Chrome Required**
123
113
  email:
124
- - howes.j.j@gmail.com
114
+ - happymelonbox@gmail.com
125
115
  executables:
126
116
  - compare_supermarkets
127
117
  extensions: []
@@ -141,8 +131,8 @@ licenses:
141
131
  - MIT
142
132
  metadata:
143
133
  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
134
+ source_code_uri: https://github.com/happymelonbox/compare_supermarkets
135
+ changelog_uri: https://github.com/happymelonbox/compare_supermarkets/blob/main/CHANGELOG.md
146
136
  post_install_message:
147
137
  rdoc_options: []
148
138
  require_paths: