prezzo 0.5.0 → 0.5.1

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: af6eff6786cc37bdb7e4cca103f0eee8a7e2c5fa
4
- data.tar.gz: fdbf73bbfe95b5328feb1b84db4c90db24b54b8c
3
+ metadata.gz: 0e9332660f2522054b623e1ba93eb6bce0d543d9
4
+ data.tar.gz: 7abe8f70afd7380d704db3dc114cefc4a71e5328
5
5
  SHA512:
6
- metadata.gz: 334ac63972f842fec450af16c3cbddd9037a283549e69c47ddbc20f7c26b592579c7dd9c7e976d87861c152c0b8955938eb78fb2e0b7d6145ec20c598e219f54
7
- data.tar.gz: d1b24522f93fbd58093317165cfbf3f3e1dfc3ae7be0b2010899936613240f0c97b9b423dc63caa256fcaf2b6fb49bbc8825d5ac33844401c695e9e093f6422e
6
+ metadata.gz: aff27c50f0d088a92a1bb8bae5e077c3a662bccf045e4face9f48a4ca9c22bd2b0c64ddbb411695018d440a62fe1159dfc344698b3613ca783bffb148fe89415
7
+ data.tar.gz: 480cb54b37ee78b7428908025b3d580b74c8cd82feed2d47d65fbc50391f6793ff8a5d6771da90d2dc392d22ad753940a7b8543866b173e64cc8bd63648b77af
data/README.md CHANGED
@@ -166,7 +166,7 @@ class RidePriceCalculator
166
166
  end
167
167
  ```
168
168
 
169
- #### ` explain_with` with the `resursive: false` option
169
+ #### ` explain_with` with the `recursive: false` option
170
170
 
171
171
  ```ruby
172
172
  class FooCalculator
@@ -195,7 +195,7 @@ class QuxCalculator
195
195
 
196
196
  composed_by foo: FooCalculator
197
197
 
198
- explain_with :foo, resursive: false
198
+ explain_with :foo, recursive: false
199
199
 
200
200
  def calculate
201
201
  foo + 5
@@ -30,7 +30,7 @@ module Prezzo
30
30
  if self.class.respond_to?(:components) && self.class.components.include?(component)
31
31
  value = cached_components[component]
32
32
  end
33
- value = value.explain if value.respond_to?(:explain) && options.fetch(:resursive, true)
33
+ value = value.explain if value.respond_to?(:explain) && options.fetch(:recursive, true)
34
34
  value = value.calculate if value.respond_to?(:calculate)
35
35
  explanation[:components][component] = value
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module Prezzo
2
- VERSION = "0.5.0".freeze
2
+ VERSION = "0.5.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prezzo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Boeira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-14 00:00:00.000000000 Z
11
+ date: 2017-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hanami-validations