amountable 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/0_create_amounts.rb +1 -1
- data/lib/amountable.rb +1 -1
- data/lib/amountable/amount.rb +1 -1
- data/lib/amountable/jsonb_methods.rb +2 -2
- data/lib/amountable/nil_amount.rb +1 -1
- data/lib/amountable/operations.rb +1 -1
- data/lib/amountable/table_methods.rb +1 -1
- data/lib/amountable/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e145cd82c4b5847530ddd449de2ec1818ae60d5
|
4
|
+
data.tar.gz: 84b68e8cf0f8cfa202179c75b7d7e75ac7d658b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bc432398eaa8a091f1a80654efed493fef2fdf84ee9557ccb463194538ede8b64373eb22701f61f22b408100807c796f341232120925f772540d8f60d8bf941
|
7
|
+
data.tar.gz: 218f5b307d72a04ef4022ed51193160f816abe0db742deebe086d267465b2296fcca29a3cb15837e6011a96ab08ba8508e659f1dd0a6d91d5f70ce947ba8c60d
|
data/lib/amountable.rb
CHANGED
data/lib/amountable/amount.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2015-
|
1
|
+
# Copyright 2015-2017, Instacart
|
2
2
|
|
3
3
|
module Amountable
|
4
4
|
module JsonbMethods
|
@@ -41,7 +41,7 @@ module Amountable
|
|
41
41
|
|
42
42
|
def get_set(name)
|
43
43
|
value = attribute(amounts_column_name).to_h['sets'].to_h[name.to_s].to_h
|
44
|
-
Money.new(value['cents'].to_i, value['currency']
|
44
|
+
Money.new(value['cents'].to_i, value['currency'])
|
45
45
|
end
|
46
46
|
|
47
47
|
def set_json(json)
|
data/lib/amountable/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.6
|
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-
|
11
|
+
date: 2017-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|