classifieds_api 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/classifieds_api/search_filters.rb +2 -2
- data/lib/classifieds_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8ff03f736701662eaafc1c82f96bcca55634ada
|
4
|
+
data.tar.gz: f06a70595a77ddb1a49d04340197618fdc5447ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 285ec75b590da0fac1eae94db6aa650c06fe50bacd70e09f37113208bb4a82dc8b278b410d2c934003f3e89071ced464c3be26ea7cddcf0e63c687b4d2d889ff
|
7
|
+
data.tar.gz: aee1d9b9f29e5c471be446b158d717732f0c421af19cc63ff948e4e1bc4aa1226513b18c2bc6b9f60ca0bbfa67d21322cafcf1337834863a2f6e614aabd76854
|
@@ -59,7 +59,7 @@ module ClassifiedsApi
|
|
59
59
|
raise RangeError,
|
60
60
|
"Argument #{price_minimum} should be between bigger than 0."
|
61
61
|
end
|
62
|
-
if price_minimum > @price_maximum
|
62
|
+
if price_minimum > (@price_maximum || 10000000)
|
63
63
|
raise RangeError,
|
64
64
|
"Argument #{price_minimum} should be smaller than maximum price " +
|
65
65
|
"#{@price_maximum}."
|
@@ -71,7 +71,7 @@ module ClassifiedsApi
|
|
71
71
|
unless price_maximum.is_a? Numeric
|
72
72
|
raise TypeError, "Argument #{price_maximum} is not numeric."
|
73
73
|
end
|
74
|
-
if price_maximum < @price_minimum
|
74
|
+
if price_maximum < (@price_minimum || 0)
|
75
75
|
raise RangeError,
|
76
76
|
"Argument #{price_maximum} should be bigger than minimum price " +
|
77
77
|
"#{@price_minimum}."
|