dazzle 1.3.1 → 1.3.2
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/dazzle.rb +7 -0
- 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: 6b3a073c5ecfb9c3df0dbae641c7b11746475ccebd8c8289f471bee64542d0ac
|
4
|
+
data.tar.gz: '019a2958f060e22b6804b7ad22576c47e482b21195877129af75566366a740c2'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 722c8d384145b28f80298a3a84ff4b499f7297943d335d3843692027aa4956d48a7d0716e43ca5d5a4b30adab869b29fa5f5c2c71b8cc6f52bcd313f08eb468c
|
7
|
+
data.tar.gz: d95567bfbf29a6a6d447369ed00a6b46a73f3644ff5cf1abd07063863e11d4268f715479d4ac7ea19b735b1e53de4fd5f8b7afdd6fb33c9e4e8dbe24ac5993b7
|
data/lib/dazzle.rb
CHANGED
@@ -26,6 +26,13 @@ class Dazzling
|
|
26
26
|
for val in arr
|
27
27
|
counter = counter + 1
|
28
28
|
|
29
|
+
#only takes the first 10 prices as format is {samsung,,440,,iphone,,600,,} ...etc.
|
30
|
+
#(every 4th value is new device)
|
31
|
+
#(only taking 10 because only need a sample, taking a whole db would be too large)
|
32
|
+
if counter == 41
|
33
|
+
break
|
34
|
+
end
|
35
|
+
|
29
36
|
#every 2nd value is blank so ignore it
|
30
37
|
if counter % 2 == 1
|
31
38
|
|