strict_options 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/strict_options.rb +0 -2
- 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: c8d4a46ebaf3cd95b66ab6cdbe8d4471255ebfab
|
4
|
+
data.tar.gz: 1aa0774a23dfc24626e505d52aef5a95c4768eac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66fdcca13742af6ab2df31fb5d41c8664b7f694bd2025525f5f6809ce516117183907e0419ab4c07340999fc57c2a46464977d7e16891be5de9711a6c135e410
|
7
|
+
data.tar.gz: 22c7b697e1599d07f1abd25d24da0116d18d15455b58427526eaa43af09d36292ceeb8f477beec46a58102759c9b18105bb99cdf9ab0607e75369b2ee8d0ac73
|
data/README.md
CHANGED
@@ -97,11 +97,12 @@ class PriceError < StandardError; end
|
|
97
97
|
|
98
98
|
def calculate_sale_price
|
99
99
|
strict_options!(:price, exception_class: PriceError,
|
100
|
-
|
100
|
+
exception_message: "No price!")
|
101
101
|
end
|
102
102
|
|
103
103
|
calculate_sale_price
|
104
104
|
#=> #<PriceError: No price!>
|
105
|
+
```
|
105
106
|
|
106
107
|
## TODO
|
107
108
|
* Some improvements ? =)
|
data/lib/strict_options.rb
CHANGED