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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d12a954c851b0595bfad36c7d7b4ada4ac0aaef7
4
- data.tar.gz: a47db7edae33a4652a0cd247aad7bb11336e3933
3
+ metadata.gz: d8ff03f736701662eaafc1c82f96bcca55634ada
4
+ data.tar.gz: f06a70595a77ddb1a49d04340197618fdc5447ee
5
5
  SHA512:
6
- metadata.gz: bf7cdc419c03452a5653407b8f8ab7ec1e055556baa82ab580f5ef4312ded562ffcb8d82db695e391d2d72fbbdae93e33c88baed3a239c6ce06583fd7545b4b2
7
- data.tar.gz: 36d1323e3753d2a9ba4b4a3d7ebd3726f13cd06603858304cb9ebc82e903be66b7c0f687338f24c69f7007340b7d3270f5e6ccb66b473f595209020f4b7dd5dc
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}."
@@ -1,3 +1,3 @@
1
1
  module ClassifiedsApi
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: classifieds_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Francois Bisson