europe 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -3
- data/lib/europe/vat/rates.rb +3 -2
- data/lib/europe/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f980565b1ba5c63aff208c1dd1d374297a6c8c6d35f300ae19e2627a262639bd
|
4
|
+
data.tar.gz: 11f373aee892869ce1315cf9de012e497c32fe3a805114fb15d763fc16abdf92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dcef79f65ef9c8d02326b1c987aba60a236befc192e4a939a060f5c842a3aee02088ccd971ec12c51b64f85d7f00570ef62d466fc16835c6aad4d618951deb4
|
7
|
+
data.tar.gz: 45ea927030d1dd520a272c6fda2c27ee0a5ba44466350ae436cb3565b19371b94aab220740d5429dc833915f74832c1d9a4212a502dbcb1868de06e7325ced4e
|
data/CHANGELOG.md
CHANGED
@@ -2,20 +2,27 @@
|
|
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
4
|
|
5
|
-
|
5
|
+
## 0.0.10
|
6
|
+
- Changed URL for retrieving VAT rates because it was modified and redirected
|
7
|
+
- [Full Changelog](https://github.com/VvanGemert/europe/compare/v0.0.9...v0.0.10)
|
8
|
+
|
9
|
+
## 0.0.9
|
6
10
|
- Removed all external depdencies, only Ruby's standard library is used
|
7
11
|
- Added Postal code format validator
|
8
12
|
- Used different source for exchange rates which returns more currencies
|
13
|
+
- [Full Changelog](https://github.com/VvanGemert/europe/compare/v0.0.8...v0.0.9)
|
9
14
|
|
10
|
-
|
15
|
+
## 0.0.8
|
11
16
|
- Changed URL for retrieving VAT rates. The old one was no longer valid
|
12
17
|
- Skipped Eurostat tests as URL changed. Eurostat use is still expirimental
|
18
|
+
- [Full Changelog](https://github.com/VvanGemert/europe/compare/v0.0.7...v0.0.8)
|
13
19
|
|
14
|
-
|
20
|
+
## 0.0.7
|
15
21
|
- Fixed currencies for Estonia, Lithuania and Sweden
|
16
22
|
- Added eurozone call to Countries which returns all countries with EUR currency
|
17
23
|
- Removed simplecov because of Gem errors
|
18
24
|
- Updated dependencies and fixed rubocop syntax errors
|
25
|
+
- [Full Changelog](https://github.com/VvanGemert/europe/compare/v0.0.6...v0.0.7)
|
19
26
|
|
20
27
|
## 0.0.6
|
21
28
|
- Added Changelog
|
data/lib/europe/vat/rates.rb
CHANGED
@@ -4,8 +4,8 @@ module Europe
|
|
4
4
|
module Vat
|
5
5
|
# Rates
|
6
6
|
module Rates
|
7
|
-
RATES_URL = 'https://europa.eu/youreurope/business/' \
|
8
|
-
'vat
|
7
|
+
RATES_URL = 'https://europa.eu/youreurope/business/taxation/' \
|
8
|
+
'vat/vat-rules-rates/index_en.htm'.freeze
|
9
9
|
def self.retrieve
|
10
10
|
resp = fetch_rates
|
11
11
|
return resp if resp == :failed
|
@@ -33,6 +33,7 @@ module Europe
|
|
33
33
|
|
34
34
|
def self.fetch_rates
|
35
35
|
resp = Net::HTTP.get_response(URI.parse(RATES_URL))
|
36
|
+
p resp
|
36
37
|
resp.code.to_i == 200 ? resp.body : :failed
|
37
38
|
end
|
38
39
|
end
|
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VvanGemert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|