europe 0.0.21 → 0.0.23
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/CHANGELOG.md +6 -0
- data/lib/europe/vat/format.rb +1 -1
- data/lib/europe/vat/rates.rb +1 -1
- data/lib/europe/vat/vat.rb +2 -0
- data/lib/europe/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53500bbab54cb394a57ca323ede9880d16be13d637b1e686868e6ca7e8447ee8
|
4
|
+
data.tar.gz: eb2f9f52ad5a0ffa1c48a45ef4cf21cbfdabe0a817762c11b31a7ca4fddcc683
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6f9b55ab0c70afa0a97f1674b10317ba76442eca7f61b5e23ea8aa79bfd4c5e671faf00f25233250b7540d32cad830b9651eba8a5a4699af58218a5244e683a
|
7
|
+
data.tar.gz: caeea4286835e9996ce8367c8be9c0fa9ac8c19fe457c8c8b58f9c87aef242a54cbb451eedba3a7f5f339135c45acc8e9a0ff24404e956e3aee2c57fe3e81531
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
|
+
## 0.0.23
|
5
|
+
- Added support for new Belgium VAT numbers, thank you tim-vandecasteele
|
6
|
+
- [Full Changelog](https://github.com/gem-shards/europe.rb/compare/v0.0.22...v0.0.23)
|
7
|
+
## 0.0.22
|
8
|
+
- Updated Estonia's tax rate to 22%
|
9
|
+
- [Full Changelog](https://github.com/gem-shards/europe.rb/compare/v0.0.21...v0.0.22)
|
4
10
|
## 0.0.21
|
5
11
|
- Added check to fail short VAT numbers under 5 characters
|
6
12
|
- [Full Changelog](https://github.com/gem-shards/europe.rb/compare/v0.0.20...v0.0.21)
|
data/lib/europe/vat/format.rb
CHANGED
data/lib/europe/vat/rates.rb
CHANGED
@@ -7,7 +7,7 @@ module Europe
|
|
7
7
|
# Rates
|
8
8
|
module Rates
|
9
9
|
FALLBACK_RATES = {
|
10
|
-
AT: 20.0, BE: 21.0, BG: 20.0, CY: 19.0, CZ: 21.0, DE: 19.0, DK: 25.0, EE:
|
10
|
+
AT: 20.0, BE: 21.0, BG: 20.0, CY: 19.0, CZ: 21.0, DE: 19.0, DK: 25.0, EE: 22.0,
|
11
11
|
EL: 24.0, ES: 21.0, FI: 24.0, FR: 20.0, UK: 20.0, HR: 25.0, HU: 27.0, IE: 23.0,
|
12
12
|
IT: 22.0, LT: 21.0, LU: 17.0, LV: 21.0, MT: 18.0, NL: 21.0, PL: 23.0, PT: 23.0,
|
13
13
|
RO: 19.0, SE: 25.0, SI: 22.0, SK: 20.0
|
data/lib/europe/vat/vat.rb
CHANGED
@@ -38,6 +38,8 @@ module Europe
|
|
38
38
|
response = send_request(number[0..1], number[2..-1])
|
39
39
|
return :failed unless response.is_a? Net::HTTPSuccess
|
40
40
|
return :failed if response.body.include?('soap:Fault')
|
41
|
+
return :timeout if response.body.include?('TIMEOUT')
|
42
|
+
return :timeout if response.body.include?('MS_MAX_CONCURRENT_REQ')
|
41
43
|
|
42
44
|
setup_response(response)
|
43
45
|
rescue Net::OpenTimeout
|
data/lib/europe/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: europe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gem shards
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '0'
|
201
201
|
requirements: []
|
202
|
-
rubygems_version: 3.
|
202
|
+
rubygems_version: 3.5.23
|
203
203
|
signing_key:
|
204
204
|
specification_version: 4
|
205
205
|
summary: Europe is a gem for retrieving and validating EU government data.
|