compare_supermarkets 0.1.6 → 0.1.8
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/config/environment.rb +13 -0
- data/lib/compare_supermarkets/version.rb +1 -1
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68fc0e25b9f30c88d7c8c01f71be2291664d1de818357daa9dcebe661f7b729b
|
4
|
+
data.tar.gz: af3ee8e59c2d0c8afbc679c5461ec3e1abe3321ebcfe0d2d53ef18503cd302bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3471c8fdc0bc2ad9b8c16b4806d0448666742f29e87bd9447de344637c36258464ff261cd672f21e34277de29518ac8e5248c886945daab6cd07fe5f23f480d
|
7
|
+
data.tar.gz: 75722b0f9fe6ee6ad09ba9e2965b7106f24d8f2cf21ee4a87656ce5bad90e80a3df56c62d0545b32c33fc46ed31638a1868c9a7ad167437b5ae299f3e90211c6
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'pry'
|
2
|
+
require 'nokogiri'
|
3
|
+
require 'watir'
|
4
|
+
|
5
|
+
#gem install selenium-webdriver - required for watir to work
|
6
|
+
#brew install --cask chromedriver - required for watir to work
|
7
|
+
|
8
|
+
require_relative '../lib/compare_supermarkets/scraper'
|
9
|
+
require_relative '../lib/compare_supermarkets/product'
|
10
|
+
require_relative '../lib/compare_supermarkets/cli'
|
11
|
+
require_relative '../lib/compare_supermarkets/version'
|
12
|
+
|
13
|
+
Watir.default_timeout = 0
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Berger Howes
|
@@ -81,10 +81,12 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
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
|
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.
|
88
90
|
|
89
91
|
## Installation
|
90
92
|
|
@@ -104,18 +106,20 @@ description: |
|
|
104
106
|
|
105
107
|
## Usage
|
106
108
|
|
107
|
-
To use compare_supermarkets call $
|
109
|
+
To use compare_supermarkets call $ 'compare_supermarkets'
|
108
110
|
and follow the prompts. The more specific you are the faster the search results appear
|
109
111
|
and there will be less items to compare.
|
110
112
|
|
111
113
|
|
112
114
|
## Contributing
|
113
115
|
|
114
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
116
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/happymelonbox/ruby_po
|
117
|
+
rtfolio_project_gem.
|
115
118
|
|
116
119
|
## License
|
117
120
|
|
118
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org
|
121
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org
|
122
|
+
/licenses/MIT).
|
119
123
|
email:
|
120
124
|
- howes.j.j@gmail.com
|
121
125
|
executables:
|
@@ -126,6 +130,7 @@ files:
|
|
126
130
|
- bin/compare_supermarkets
|
127
131
|
- bin/console
|
128
132
|
- bin/setup
|
133
|
+
- config/environment.rb
|
129
134
|
- lib/compare_supermarkets.rb
|
130
135
|
- lib/compare_supermarkets/cli.rb
|
131
136
|
- lib/compare_supermarkets/product.rb
|
@@ -142,6 +147,7 @@ post_install_message:
|
|
142
147
|
rdoc_options: []
|
143
148
|
require_paths:
|
144
149
|
- lib
|
150
|
+
- config
|
145
151
|
required_ruby_version: !ruby/object:Gem::Requirement
|
146
152
|
requirements:
|
147
153
|
- - ">="
|