amountable 0.2.6 → 0.2.7

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: 6e145cd82c4b5847530ddd449de2ec1818ae60d5
4
- data.tar.gz: 84b68e8cf0f8cfa202179c75b7d7e75ac7d658b9
3
+ metadata.gz: 38e5aad7e7246e55d83ff7e5688d7a457de24004
4
+ data.tar.gz: 151baa58f088ebb8436a8b1a7662c42c6bbbc1c6
5
5
  SHA512:
6
- metadata.gz: 1bc432398eaa8a091f1a80654efed493fef2fdf84ee9557ccb463194538ede8b64373eb22701f61f22b408100807c796f341232120925f772540d8f60d8bf941
7
- data.tar.gz: 218f5b307d72a04ef4022ed51193160f816abe0db742deebe086d267465b2296fcca29a3cb15837e6011a96ab08ba8508e659f1dd0a6d91d5f70ce947ba8c60d
6
+ metadata.gz: 3b48cc8db135bbac543c55a306c7a76b69a9ec1501abc11cd10ec235b748a9a6a06ac3194c000df32ed21670bbe72ddd00d33db22c1d3537f28d2d2da0a8cc0d
7
+ data.tar.gz: 5fef1118f77194b550dc7f015e75c19292df7d54cfed468433abf306a7a90034ba5c0a8cf1108a2b295f8ebc294563531b482512cd821117c7e1df14a92b363c
@@ -6,7 +6,7 @@ module Amountable
6
6
 
7
7
  def amounts
8
8
  @_amounts ||= attribute(amounts_column_name).to_h['amounts'].to_h.map do |name, amount|
9
- Amount.new(name: name, value_cents: amount['cents'], value_currency: amount['value_currency'], persistable: false, amountable: self)
9
+ Amount.new(name: name, value_cents: amount['cents'], value_currency: amount['currency'], persistable: false, amountable: self)
10
10
  end.to_set
11
11
  end
12
12
 
@@ -1,5 +1,5 @@
1
1
  # Copyright 2015-2017, Instacart
2
2
 
3
3
  module Amountable
4
- VERSION = '0.2.6'
4
+ VERSION = '0.2.7'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amountable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emmanuel Turlay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-11 00:00:00.000000000 Z
11
+ date: 2017-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord