floor_calculator 0.4.3 → 0.4.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
  SHA256:
3
- metadata.gz: 070cc18a302a0cba6fea4642dbb4a33d02dbb2bfbdc4018b124e2fc046987ad3
4
- data.tar.gz: 63a75ba29b54f8bd0f8b2c53d07a858532e711f3d957e72f7757323221d9d5ff
3
+ metadata.gz: b36ef9d155990f36ea157d94c95537bd8956b4183ec19e1cca18600506e3e138
4
+ data.tar.gz: fd82c2b98e6a13dcbd92546c4951436fe4a07153f912429f41bd1e910ffff7c1
5
5
  SHA512:
6
- metadata.gz: 34369b5c589cad038ac5c76ad25df192319076831a2eb1c2d5b06c0a4b8336a1c9169b9a9b609d45dcfcf8f488fc513f88db0b815a3da298e123a4b913d652ae
7
- data.tar.gz: ed21a023890e0c3dbc4094ce1130142f046e68ee33f7c1d2b714ee4d836d32006d701a9b1e759e78c572d7547abbfd3f6441700b059662770803327e2ee6f903
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]
@@ -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.3
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: 2018-10-25 00:00:00.000000000 Z
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: 2.0.11
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: 2.0.11
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
- rubyforge_project:
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