cash_register 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/lib/cash_register/deals.rb +4 -5
- 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: ed95e4c3a666a067ff2f2efca33f2d340ea0ad8e
|
4
|
+
data.tar.gz: eeea8eb2e1789827a1956e5f7e2ff739a4487e9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92d87622e0e5eb2a58426756794e027d8fe80683ab6540915c97f51f3a396847d1d73a3c1f625dc833b9fff57b563f5963f0988cd7d9b035076223c4b3d440b0
|
7
|
+
data.tar.gz: 873bd50bfa0a62668310d6d529073dc7da7bbdd905fc5eb0ddffe03282704ef0b561c87490901d352a752677a8efc4bfc4a50029f4a07b24f0dbd1ab06311cfe
|
data/README.md
CHANGED
data/lib/cash_register/deals.rb
CHANGED
@@ -14,12 +14,11 @@ module CashRegister
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def find_by_code(code = '')
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
raise InvalidDealError if deal.nil?
|
21
|
-
end
|
17
|
+
deal = @deals[code]
|
18
|
+
raise InvalidDealError if deal.nil?
|
19
|
+
deal
|
22
20
|
end
|
23
21
|
end
|
22
|
+
init_deals('')
|
24
23
|
end
|
25
24
|
end
|