floor_calculator 0.3.0 → 0.3.1
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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c9a29685f7d4b2abb4e140d89c7e3aec911a7fd
|
4
|
+
data.tar.gz: 88439edb17d4f8c5f022f755c6c6d3ebba0210c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 928a60f6ca3861a18075eda3a3d12062475e7135df021917a72a846d7beff232f7c28a29f4d7e03dc0467550f2f7b335949b39bcf0e0149777f4aa21dc61d74a
|
7
|
+
data.tar.gz: 1af3242a8ca6c988332e679a5e0e355c6a98e127ff1fef4c70609fd2c65579bbcd410d8bbe4e3bb7ac7c6737a473518a8e2282f8939a1b38288de8dd6006c814
|
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).each do |country_code|
|
8
|
+
%i(usd gbp jpy mxn cad eur aud).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.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marek Mikołajczyk
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
version: '0'
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
|
-
rubygems_version: 2.
|
97
|
+
rubygems_version: 2.6.14
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Floor Calculator
|