price_pulse 0.1.4 → 0.1.5
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/price_pulse/configuration.rb +7 -2
- data/lib/price_pulse.rb +10 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ce5d1550b80e37178cabe2fc3abd27fe9b9d26fcc16d34f7231c2ff826c2eb0
|
|
4
|
+
data.tar.gz: e1eb895c0f15ad6251aad2c22367498f312d94f5370c23af28347060bf42fe2a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 112a2e9695d8456d9fc5b54dfaf2004e9ddde4ed4a8b21cc0d47357bfcf73fc84fab95f023e790365ac58fcf91e473b9549b7b792df643949523a42bcfffa9c6
|
|
7
|
+
data.tar.gz: 37a60c40a3f1d67fc76e39373713cc5764b510d92f52d55586cd78dfbb67ea593ec7a31ed1f30327476e2a709a63a5dff949ae4aa116ca8d3ddb904760a0b486
|
|
@@ -3,11 +3,16 @@
|
|
|
3
3
|
module PricePulse
|
|
4
4
|
module Configuration
|
|
5
5
|
# The official version of the Gem
|
|
6
|
-
VERSION = "0.1.
|
|
6
|
+
VERSION = "0.1.5"
|
|
7
7
|
|
|
8
8
|
# Base URL used for testing, validation, and general lookups
|
|
9
9
|
BASE_VALIDATION_URL = "https://en.wikipedia.org/wiki/"
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# List of all available parser classes
|
|
12
|
+
PARSERS = [
|
|
13
|
+
:AmazonParser,
|
|
14
|
+
:BestBuyParser,
|
|
15
|
+
:WalmartParser
|
|
16
|
+
].freeze
|
|
12
17
|
end
|
|
13
18
|
end
|
data/lib/price_pulse.rb
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
# 1. Load the core configuration file
|
|
4
|
+
require_relative "price_pulse/configuration"
|
|
5
|
+
|
|
6
|
+
# 2. Load the core logic and all parser files
|
|
3
7
|
require_relative "price_pulse/tracker"
|
|
8
|
+
require_relative "price_pulse/amazon_parser"
|
|
9
|
+
require_relative "price_pulse/best_buy_parser"
|
|
10
|
+
require_relative "price_pulse/walmart_parser"
|
|
4
11
|
|
|
5
12
|
module PricePulse
|
|
6
|
-
VERSION
|
|
13
|
+
# Define VERSION using the Configuration module
|
|
14
|
+
VERSION = Configuration::VERSION
|
|
15
|
+
|
|
7
16
|
class Error < StandardError; end
|
|
8
17
|
|
|
9
18
|
def self.status
|