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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c273b711c76924d23e6bdd6f597501e79c4af5c1da3006f24696fe12c02aca99
4
- data.tar.gz: e4721f22a5f68bb779dbc5b807eec55fb87fc5df7ddf0faa67134dcaf4cfbafc
3
+ metadata.gz: f980565b1ba5c63aff208c1dd1d374297a6c8c6d35f300ae19e2627a262639bd
4
+ data.tar.gz: 11f373aee892869ce1315cf9de012e497c32fe3a805114fb15d763fc16abdf92
5
5
  SHA512:
6
- metadata.gz: 1c93ed548787b6d5fd8589d439eb70481d8de30b49298b8ccfd65fd78976cde09cff637db0f512a76e0a93e4e6ffdcf65a35dc3bceaa3e0c86d941d3303ebbc3
7
- data.tar.gz: 3168fe73cabbf2dd4c6bc65686659e2786f9295e7ba49dd960025f710adbcc979a7317aa361a4af86786fedf5ae4229ef7f880b7442197af851ebb66c1ab0456
6
+ metadata.gz: 0dcef79f65ef9c8d02326b1c987aba60a236befc192e4a939a060f5c842a3aee02088ccd971ec12c51b64f85d7f00570ef62d466fc16835c6aad4d618951deb4
7
+ data.tar.gz: 45ea927030d1dd520a272c6fda2c27ee0a5ba44466350ae436cb3565b19371b94aab220740d5429dc833915f74832c1d9a4212a502dbcb1868de06e7325ced4e
@@ -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
- # 0.0.9
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
- # 0.0.8
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
- # 0.0.7
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
@@ -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-customs/buy-sell/vat-rates/index_en.htm'.freeze
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
@@ -1,4 +1,4 @@
1
1
  # Europe version
2
2
  module Europe
3
- VERSION = '0.0.9'.freeze
3
+ VERSION = '0.0.10'.freeze
4
4
  end
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.9
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-07-12 00:00:00.000000000 Z
11
+ date: 2018-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug