floor_calculator 0.4.3 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/floor_calculator/solver.rb +1 -1
- data/lib/floor_calculator.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b36ef9d155990f36ea157d94c95537bd8956b4183ec19e1cca18600506e3e138
|
4
|
+
data.tar.gz: fd82c2b98e6a13dcbd92546c4951436fe4a07153f912429f41bd1e910ffff7c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a24ede8d18ba4a1d0ec8487093c11ceb3ecfdc5da9df41e9732188042c9fd23503962378ccb233709b6851fcc3816e29f604230055003e9ebda8cade20c7a86e
|
7
|
+
data.tar.gz: 65b75d982da48edffbd5f764dfb86a9136ddfbd777fca48c0d9f83461d8ca279dea2934877df168baac9b58a08a7df8b40e969bf3eb7664ef78424b49348b7ba
|
@@ -16,7 +16,7 @@ module FloorCalculator
|
|
16
16
|
country_formula = country_markup(source_formula, options[:country].to_s.downcase)
|
17
17
|
@formula = destination_markup(country_formula, options[:destination])
|
18
18
|
if @formula.nil?
|
19
|
-
raise "Formula not found for: #{options[:source]}, "\
|
19
|
+
raise "Formula in #{markup_name.to_s} not found for: #{options[:source]}, "\
|
20
20
|
"#{options[:country].to_s.downcase}, #{options[:destination]}"
|
21
21
|
end
|
22
22
|
@price = options[:price]
|
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.7
|
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: 2021-10-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dentaku
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 3.4.2
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - '='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 3.4.2
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: money
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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.1.2
|
99
98
|
signing_key:
|
100
99
|
specification_version: 4
|
101
100
|
summary: Floor Calculator
|