floor_calculator 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/floor_calculator.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da3eddd3f9d282fe88bddc604aa80866d2797e0eb6b3e7a193c4078145d974da
|
4
|
+
data.tar.gz: 5180d853f4868d39b3ddd108b039eb292d1553eefebe03fdf35e3cc9badbac7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fa68432aa123996f25b4b0e8cc61c76774e0a0b975d226d1acacb786d2202eee3d7190b88b8e294282001bd5dabf2d48f0c17e16266186d3b7c3e3f1cbbed5d
|
7
|
+
data.tar.gz: 2c861f9dcd96991b80e673961f4406721ce135fbe6e0f3e07543c42e4323f757540afea55c4d2ea7f340c1c0c3e9254ce1d2126f5aac3f2452dd2033f12d5038
|
data/lib/floor_calculator.rb
CHANGED
@@ -5,7 +5,7 @@ require 'money'
|
|
5
5
|
|
6
6
|
module FloorCalculator
|
7
7
|
def self.initialize_methods
|
8
|
-
%i(usd gbp jpy mxn cad eur aud).each do |country_code|
|
8
|
+
%i(usd gbp jpy mxn cad eur aud sgd try brl).each do |country_code|
|
9
9
|
Dentaku::Calculator.add_function country_code, :numeric, ->(value) do
|
10
10
|
if value.is_a?(Money)
|
11
11
|
value.exchange_to(country_code.to_s)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: floor_calculator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marek Mikołajczyk
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-05-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dentaku
|
@@ -94,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
|
-
|
98
|
-
rubygems_version: 2.7.6
|
97
|
+
rubygems_version: 3.0.1
|
99
98
|
signing_key:
|
100
99
|
specification_version: 4
|
101
100
|
summary: Floor Calculator
|