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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/lib/strict_options.rb +0 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5a74909f2f47d78ccd2ba1de2064a9165415731
4
- data.tar.gz: 138c32ad3c2c3a355f87c39e1725016f2f800e11
3
+ metadata.gz: c8d4a46ebaf3cd95b66ab6cdbe8d4471255ebfab
4
+ data.tar.gz: 1aa0774a23dfc24626e505d52aef5a95c4768eac
5
5
  SHA512:
6
- metadata.gz: 8dc1b2b41b57543edabee7c09cdcea7515669c50f168d1328f07150fcb19912b924ffec36ecc1c4054149574707ffaa6c5f1ca47da0e2265f5cee6db67e944af
7
- data.tar.gz: 9854ad600084821698a2ddba6998ad77a521e9ba4d24c7f773a885773a668ec7e810ae11cc2f236bf8c6bf26494a929cb4fa4beadb20a7b2ee97c20bf1a16bb8
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
- exception_message: "No price!")
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 ? =)
@@ -1,5 +1,3 @@
1
- require 'pry-rails'
2
-
3
1
  module StrictOptions
4
2
  def strict_options!(*opts, exception_class: ArgumentError,
5
3
  exception_message: nil)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strict_options
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volodya Sveredyuk