europe 0.0.13 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +33 -0
- data/.gitignore +1 -0
- data/.pryrc +2 -0
- data/.rubocop.yml +15 -0
- data/.travis.yml +3 -0
- data/CHANGELOG.md +21 -0
- data/Gemfile +2 -0
- data/README.md +9 -9
- data/Rakefile +2 -0
- data/europe.gemspec +6 -3
- data/lib/europe.rb +2 -0
- data/lib/europe/countries/countries.rb +5 -3
- data/lib/europe/countries/reversed.rb +2 -0
- data/lib/europe/currency/currency.rb +2 -0
- data/lib/europe/currency/exchange_rates.rb +5 -1
- data/lib/europe/eurostat/eurostat.rb +3 -1
- data/lib/europe/postal/postal.rb +4 -2
- data/lib/europe/rake_task.rb +2 -0
- data/lib/europe/tasks/eurostat.rake +7 -5
- data/lib/europe/vat/format.rb +3 -2
- data/lib/europe/vat/rates.rb +10 -5
- data/lib/europe/vat/vat.rb +7 -9
- data/lib/europe/version.rb +3 -1
- data/test/europe/countries/country_test.rb +3 -1
- data/test/europe/currency/currency_test.rb +2 -0
- data/test/europe/currency/exchange_rates_test.rb +2 -0
- data/test/europe/eurostat/eurostat_test.rb +2 -0
- data/test/europe/postal/format_test.rb +2 -0
- data/test/europe/vat/format_test.rb +2 -4
- data/test/europe/vat/rates_test.rb +2 -0
- data/test/europe/vat/validation_test.rb +2 -5
- data/test/test_helper.rb +2 -0
- metadata +13 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 794ad55570cf9ea7535ce493786274121a6c3617f64211b8676c70f877a5a113
|
4
|
+
data.tar.gz: 699800827413a40143516a78211edd1bb542efd868c9d8cf0bfa740d19b2f2d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bccf16590f7a26f30512c63d350e53ef3ed1978357e70584e3c08d7d16cdcb072f25b09d537782ca03b8e74399299f4c20b7cafe35a128829a2d7b2707a944e
|
7
|
+
data.tar.gz: 8227b36d84d9d131f27e286ffd7d29a0d132753da1a55989735ce4a4754125022af87381e4cb95d05b7bf1c93cf15f6860f7a57bd7797f2cb1186eb52700ecad
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ master ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ master ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
test:
|
18
|
+
|
19
|
+
runs-on: ubuntu-latest
|
20
|
+
|
21
|
+
steps:
|
22
|
+
- uses: actions/checkout@v2
|
23
|
+
- name: Set up Ruby
|
24
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
25
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
26
|
+
# uses: ruby/setup-ruby@v1
|
27
|
+
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
|
28
|
+
with:
|
29
|
+
ruby-version: 2.7
|
30
|
+
- name: Install dependencies
|
31
|
+
run: bundle install
|
32
|
+
- name: Run tests
|
33
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/.pryrc
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,3 +1,18 @@
|
|
1
1
|
AllCops:
|
2
|
+
NewCops: enable
|
3
|
+
TargetRubyVersion: 2.7
|
4
|
+
SuggestExtensions: false
|
2
5
|
Exclude:
|
3
6
|
- 'europe.gemspec'
|
7
|
+
|
8
|
+
Style/SlicingWithRange:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
Style/RedundantRegexpEscape:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
Style/RedundantRegexpCharacterClass:
|
15
|
+
Enabled: false
|
16
|
+
|
17
|
+
Style/CaseLikeIf:
|
18
|
+
Enabled: false
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,27 @@
|
|
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.18
|
5
|
+
- Added Estonia and Lithuania to eurozone
|
6
|
+
- [Full Changelog](https://github.com/gem-shards/europe.rb/compare/v0.0.17...v0.0.18)
|
7
|
+
## 0.0.17
|
8
|
+
- Removed all UK VAT logic
|
9
|
+
- Updated development dependencies
|
10
|
+
- [Full Changelog](https://github.com/gem-shards/europe.rb/compare/v0.0.16...v0.0.17)
|
11
|
+
## 0.0.16
|
12
|
+
- Changed Slovak Republic to Slovakia in country names
|
13
|
+
- Updated outdated endpoint for VAT rates, thanks to @firstpromoter
|
14
|
+
- Fixed a couple of rubocop issues
|
15
|
+
- [Full Changelog](https://github.com/gem-shards/europe.rb/compare/v0.0.15...v0.0.16)
|
16
|
+
## 0.0.15
|
17
|
+
- Checked library on Ruby 2.7
|
18
|
+
- Moved repository to gem-shards
|
19
|
+
- [Full Changelog](https://github.com/VvanGemert/europe/compare/v0.0.14...v0.0.15)
|
20
|
+
|
21
|
+
## 0.0.14
|
22
|
+
- Fixed rubocop syntax issues
|
23
|
+
- Fixed issue with retrieving exchange rates when no valid JSON is returned
|
24
|
+
- [Full Changelog](https://github.com/VvanGemert/europe/compare/v0.0.13...v0.0.14)
|
4
25
|
|
5
26
|
## 0.0.13
|
6
27
|
- Fixed rubocop syntax issues
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
![Europe gem logo](https://s3-eu-west-1.amazonaws.com/valorsis.s3-website-eu-west-1.amazonaws.com/static/logo256.png)
|
2
|
-
# Europe
|
2
|
+
# Europe :eu:
|
3
3
|
|
4
4
|
This gem provides EU governmental data, extracted from various EU / EC websites. With this gem you can validate VAT numbers, retrieve VAT tax rates and currency exchange rates matched to the Euro. How to use this gem is pretty straightforward and written below.
|
5
5
|
|
@@ -43,16 +43,16 @@ where this gem can be used for.
|
|
43
43
|
** Updated: Parameter now consists of one value.**
|
44
44
|
Call to validate VAT number (always starts with country code as specified in VIES)
|
45
45
|
```ruby
|
46
|
-
Europe::Vat.validate('
|
46
|
+
Europe::Vat.validate('NL009291477B01')
|
47
47
|
```
|
48
48
|
Response
|
49
49
|
```ruby
|
50
|
-
{ :country_code=>"
|
51
|
-
:vat_number=>"
|
52
|
-
:request_date
|
53
|
-
:valid=>true,
|
54
|
-
:name=>"
|
55
|
-
:address=>
|
50
|
+
{ :country_code => "NL",
|
51
|
+
:vat_number => "009291477B01",
|
52
|
+
:request_date => #<Date: 2015-12-15 ((2457372j,0s,0n),+0s,2299161j)>,
|
53
|
+
:valid => true,
|
54
|
+
:name => "KONINKLIJKE POSTNL B.V.",
|
55
|
+
:address => nil }
|
56
56
|
```
|
57
57
|
|
58
58
|
### Validate VAT number format
|
@@ -179,7 +179,7 @@ This gem is tested with the following Ruby versions on Linux and Mac OS X:
|
|
179
179
|
|
180
180
|
## Contributing
|
181
181
|
|
182
|
-
1. Fork it ( https://github.com/
|
182
|
+
1. Fork it ( https://github.com/gem-shards/europe.rb/fork )
|
183
183
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
184
184
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
185
185
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/Rakefile
CHANGED
data/europe.gemspec
CHANGED
@@ -6,15 +6,18 @@ require 'europe/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'europe'
|
8
8
|
spec.version = Europe::VERSION
|
9
|
-
spec.authors = ['
|
10
|
-
spec.email = ['vincent@
|
9
|
+
spec.authors = ['Gem shards']
|
10
|
+
spec.email = ['vincent@gemshards.com']
|
11
11
|
spec.summary = 'Europe is a gem for retrieving and validating ' \
|
12
12
|
'EU government data.'
|
13
13
|
spec.description = 'Europe is a simple library for retrieving ' \
|
14
14
|
'EU government data such as VAT information, ' \
|
15
15
|
'VAT validation, currency exchange rates and ' \
|
16
16
|
'country information.'
|
17
|
-
spec.homepage = 'https://github.com/
|
17
|
+
spec.homepage = 'https://github.com/gem-shards/europe.rb'
|
18
|
+
spec.metadata = {
|
19
|
+
'source_code_uri' => 'https://github.com/gem-shards/europe.rb',
|
20
|
+
'changelog_uri' => 'https://github.com/gem-shards/europe.rb/blob/master/CHANGELOG.md' }
|
18
21
|
spec.license = 'MIT'
|
19
22
|
|
20
23
|
spec.files = `git ls-files -z`.split("\x0")
|
data/lib/europe.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Source: http://publications.europa.eu/code/pdf/370000en.htm
|
2
4
|
|
3
5
|
require 'europe/countries/reversed'
|
@@ -24,7 +26,7 @@ module Europe
|
|
24
26
|
tld: '.de', currency: :EUR, capital: 'Berlin' },
|
25
27
|
EE: { name: 'Estonia', source_name: 'Eesti',
|
26
28
|
official_name: 'Republic of Estonia',
|
27
|
-
tld: '.ee', currency: :
|
29
|
+
tld: '.ee', currency: :EUR, capital: 'Tallinn' },
|
28
30
|
IE: { name: 'Ireland', source_name: 'Éire',
|
29
31
|
official_name: 'Ireland',
|
30
32
|
tld: '.ie', currency: :EUR, capital: 'Dublin' },
|
@@ -51,7 +53,7 @@ module Europe
|
|
51
53
|
tld: '.lv', currency: :EUR, capital: 'Riga' },
|
52
54
|
LT: { name: 'Lithuania', source_name: 'Lietuva',
|
53
55
|
official_name: 'Republic of Lithuania',
|
54
|
-
tld: '.lt', currency: :
|
56
|
+
tld: '.lt', currency: :EUR, capital: 'Vilnius' },
|
55
57
|
LU: { name: 'Luxembourg', source_name: 'Luxembourg',
|
56
58
|
official_name: 'Grand Duchy of Luxembourg',
|
57
59
|
tld: '.lu', currency: :EUR, capital: 'Luxembourg City' },
|
@@ -79,7 +81,7 @@ module Europe
|
|
79
81
|
SI: { name: 'Slovenia', source_name: 'Slovenija',
|
80
82
|
official_name: 'Republic of Slovenia',
|
81
83
|
tld: '.si', currency: :EUR, capital: 'Ljubljana' },
|
82
|
-
SK: { name: '
|
84
|
+
SK: { name: 'Slovakia', source_name: 'Slovensko',
|
83
85
|
official_name: 'Slovak Republic',
|
84
86
|
tld: '.sk', currency: :EUR, capital: 'Bratislava' },
|
85
87
|
FI: { name: 'Finland', source_name: 'Suomi',
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'net/http'
|
2
4
|
require 'date'
|
3
5
|
|
@@ -7,7 +9,7 @@ module Europe
|
|
7
9
|
module Currency
|
8
10
|
# exchange rates
|
9
11
|
module ExchangeRates
|
10
|
-
EXCHANGE_URL = 'https://www.floatrates.com/daily/eur.json'
|
12
|
+
EXCHANGE_URL = 'https://www.floatrates.com/daily/eur.json'
|
11
13
|
|
12
14
|
def self.retrieve
|
13
15
|
resp = Net::HTTP.get_response(URI.parse(EXCHANGE_URL))
|
@@ -21,6 +23,8 @@ module Europe
|
|
21
23
|
rates: {} }
|
22
24
|
|
23
25
|
filter_rates(data, rates)
|
26
|
+
rescue JSON::ParserError
|
27
|
+
:failed
|
24
28
|
end
|
25
29
|
|
26
30
|
def self.filter_rates(data, rates)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'net/http'
|
2
4
|
require 'uri'
|
3
5
|
require 'json'
|
@@ -8,7 +10,7 @@ module Europe
|
|
8
10
|
module Eurostat
|
9
11
|
# http://ec.europa.eu/eurostat/data/database
|
10
12
|
STAT_URL = 'http://ec.europa.eu/eurostat/wdds' \
|
11
|
-
'/rest/data/v2.1/json/en/'
|
13
|
+
'/rest/data/v2.1/json/en/'
|
12
14
|
|
13
15
|
def self.retrieve(dataset, filters)
|
14
16
|
fetch_stats(dataset, filters)
|
data/lib/europe/postal/postal.rb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Europe Gem
|
2
4
|
module Europe
|
3
5
|
# VAT
|
4
6
|
module Postal
|
5
|
-
# rubocop:disable LineLength
|
7
|
+
# rubocop:disable Layout/LineLength
|
6
8
|
POSTAL_REGEX = {
|
7
9
|
AT: /^\d{4}$/,
|
8
10
|
BE: /^\d{4}$/,
|
@@ -33,7 +35,7 @@ module Europe
|
|
33
35
|
SI: /^\d{4}$/,
|
34
36
|
SK: /^\d{3}[ ]?\d{2}$/
|
35
37
|
}.freeze
|
36
|
-
# rubocop:enable LineLength
|
38
|
+
# rubocop:enable Layout/LineLength
|
37
39
|
|
38
40
|
def self.validate(country_code, postal_code)
|
39
41
|
return false unless POSTAL_REGEX.key?(country_code.to_sym)
|
data/lib/europe/rake_task.rb
CHANGED
@@ -1,14 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'open-uri'
|
2
4
|
|
3
5
|
namespace :eurostat do
|
4
|
-
EUROSTAT_BULK_URL = 'http://ec.europa.eu/eurostat/' \
|
5
|
-
'estat-navtree-portlet-prod/BulkDownloadListing' \
|
6
|
-
'?sort=1&file='.freeze
|
7
|
-
|
8
6
|
desc 'Download categories from Eurostat Bulk Facility'
|
9
7
|
task :download_categories do
|
8
|
+
eurostat_bulk_url = 'http://ec.europa.eu/eurostat/' \
|
9
|
+
'estat-navtree-portlet-prod/BulkDownloadListing' \
|
10
|
+
'?sort=1&file='
|
11
|
+
|
10
12
|
data = Net::HTTP.get_response(
|
11
|
-
URI.parse(
|
13
|
+
URI.parse("#{eurostat_bulk_url}table_of_contents_en.txt")
|
12
14
|
).body
|
13
15
|
File.open('cat.txt', 'w') do |f|
|
14
16
|
IO.copy_stream(data, f)
|
data/lib/europe/vat/format.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Europe Gem
|
2
4
|
module Europe
|
3
5
|
# VAT
|
@@ -17,7 +19,6 @@ module Europe
|
|
17
19
|
ES: /^ES([A-Z0-9]\d{7}[A-Z0-9])$/,
|
18
20
|
FI: /^FI\d{8}$/,
|
19
21
|
FR: /^FR[A-Z0-9][A-Z0-9] \d{9}$/,
|
20
|
-
GB: [/^GB(\d{3} \d{4} \d{2}( \d{3}5)?)$/, /^GB(HA|GD)\d{3}(6|7)$/],
|
21
22
|
HR: /^HR\d{11}$/,
|
22
23
|
HU: /^HU\d{8}$/,
|
23
24
|
IE: /^IE\d[A-Z0-9\+\*|\d]\d{5}([A-Z]|WI)$/,
|
@@ -44,7 +45,7 @@ module Europe
|
|
44
45
|
end
|
45
46
|
|
46
47
|
def self.sanitize_number(number, country_code)
|
47
|
-
if %i[
|
48
|
+
if %i[DK FR].include?(country_code)
|
48
49
|
number.gsub(/\.|\t/, '').upcase
|
49
50
|
else
|
50
51
|
number.gsub(/\.|\t|\s/, '').upcase
|
data/lib/europe/vat/rates.rb
CHANGED
@@ -1,11 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'rexml/document'
|
2
4
|
|
3
5
|
module Europe
|
4
6
|
module Vat
|
5
7
|
# Rates
|
6
8
|
module Rates
|
7
|
-
RATES_URL = 'https://europa.eu/
|
8
|
-
'vat/
|
9
|
+
RATES_URL = 'https://ec.europa.eu/taxation_customs/' \
|
10
|
+
'business/vat/telecommunications-broadcasting' \
|
11
|
+
'-electronic-services/vat-rates_en'
|
12
|
+
|
9
13
|
def self.retrieve
|
10
14
|
resp = fetch_rates
|
11
15
|
return resp if resp == :failed
|
@@ -27,9 +31,10 @@ module Europe
|
|
27
31
|
end
|
28
32
|
|
29
33
|
def self.filter_rate(result, rates)
|
30
|
-
country = result[
|
31
|
-
rate = result[
|
32
|
-
|
34
|
+
country = result[0].text
|
35
|
+
rate = result[3].text
|
36
|
+
country_code = Europe::Countries::Reversed.generate(:name)[country]
|
37
|
+
rates[country_code] = rate.to_f if country_code
|
33
38
|
rates
|
34
39
|
end
|
35
40
|
|
data/lib/europe/vat/vat.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'europe/vat/rates'
|
2
4
|
require 'europe/vat/format'
|
3
5
|
require 'uri'
|
@@ -10,13 +12,13 @@ module Europe
|
|
10
12
|
# VAT
|
11
13
|
module Vat
|
12
14
|
WSDL = 'http://ec.europa.eu/taxation_customs/vies/' \
|
13
|
-
'services/checkVatService'
|
15
|
+
'services/checkVatService'
|
14
16
|
HEADERS = {
|
15
17
|
'Content-Type' => 'text/xml;charset=UTF-8',
|
16
18
|
'SOAPAction' => ''
|
17
19
|
}.freeze
|
18
20
|
|
19
|
-
BODY = <<-XML
|
21
|
+
BODY = <<-XML
|
20
22
|
<soapenv:Envelope
|
21
23
|
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
|
22
24
|
xmlns:urn="urn:ec.europa.eu:taxud:vies:services:checkVat:types">
|
@@ -66,18 +68,14 @@ module Europe
|
|
66
68
|
end
|
67
69
|
|
68
70
|
def self.extract_data(body, position)
|
69
|
-
body[position]
|
71
|
+
body[position]&.text
|
70
72
|
end
|
71
73
|
|
72
74
|
def self.charge_vat?(origin_country, number)
|
73
75
|
return false if number.nil? || number.empty?
|
74
76
|
|
75
|
-
|
76
|
-
|
77
|
-
else
|
78
|
-
Europe::Countries::COUNTRIES
|
79
|
-
.key?(number[0..1].to_sym)
|
80
|
-
end
|
77
|
+
Europe::Vat::Fromat::VAT_REGEX.key?(origin_country.to_sym) ||
|
78
|
+
Europe::Vat::Fromat::VAT_REGEX.key?(number[0..1].to_sym)
|
81
79
|
end
|
82
80
|
|
83
81
|
def self.send_request(country_code, number)
|
data/lib/europe/version.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'test_helper'
|
2
4
|
|
3
5
|
module Europe
|
@@ -14,7 +16,7 @@ module Europe
|
|
14
16
|
|
15
17
|
reversed_hash =
|
16
18
|
Europe::Countries::Reversed.generate(:currency)
|
17
|
-
assert_equal reversed_hash[:EUR].count,
|
19
|
+
assert_equal reversed_hash[:EUR].count, 19
|
18
20
|
end
|
19
21
|
|
20
22
|
def test_eurozone
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'test_helper'
|
2
4
|
|
3
5
|
module Europe
|
@@ -19,10 +21,6 @@ module Europe
|
|
19
21
|
ES: 'ESX9999999X',
|
20
22
|
FI: 'FI99999999',
|
21
23
|
FR: 'FRXX 999999999',
|
22
|
-
GB: ['GB999 9999 99 9995',
|
23
|
-
'GBGD9996',
|
24
|
-
'GBHA9997',
|
25
|
-
'GB999 9999 99'],
|
26
24
|
HR: 'HR99999999999',
|
27
25
|
HU: 'HU99999999',
|
28
26
|
IE: %w[IE9S99999L IE9999999WI],
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'test_helper'
|
2
4
|
|
3
5
|
module Europe
|
@@ -21,11 +23,6 @@ module Europe
|
|
21
23
|
assert validate_correct_vat[:valid] \
|
22
24
|
unless %i[timeout failed].include?(validate_correct_vat)
|
23
25
|
|
24
|
-
# Sky
|
25
|
-
validate_correct_vat = Europe::Vat.validate('GB440627467')
|
26
|
-
assert validate_correct_vat[:valid] \
|
27
|
-
unless %i[timeout failed].include?(validate_correct_vat)
|
28
|
-
|
29
26
|
# Volkswagen
|
30
27
|
validate_correct_vat = Europe::Vat.validate('DE115235681')
|
31
28
|
assert validate_correct_vat[:valid] \
|
data/test/test_helper.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.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- Gem shards
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|
@@ -139,12 +139,13 @@ dependencies:
|
|
139
139
|
description: Europe is a simple library for retrieving EU government data such as
|
140
140
|
VAT information, VAT validation, currency exchange rates and country information.
|
141
141
|
email:
|
142
|
-
- vincent@
|
142
|
+
- vincent@gemshards.com
|
143
143
|
executables: []
|
144
144
|
extensions: []
|
145
145
|
extra_rdoc_files: []
|
146
146
|
files:
|
147
147
|
- ".coveralls.yml"
|
148
|
+
- ".github/workflows/ruby.yml"
|
148
149
|
- ".gitignore"
|
149
150
|
- ".pryrc"
|
150
151
|
- ".rubocop.yml"
|
@@ -177,11 +178,13 @@ files:
|
|
177
178
|
- test/europe/vat/rates_test.rb
|
178
179
|
- test/europe/vat/validation_test.rb
|
179
180
|
- test/test_helper.rb
|
180
|
-
homepage: https://github.com/
|
181
|
+
homepage: https://github.com/gem-shards/europe.rb
|
181
182
|
licenses:
|
182
183
|
- MIT
|
183
|
-
metadata:
|
184
|
-
|
184
|
+
metadata:
|
185
|
+
source_code_uri: https://github.com/gem-shards/europe.rb
|
186
|
+
changelog_uri: https://github.com/gem-shards/europe.rb/blob/master/CHANGELOG.md
|
187
|
+
post_install_message:
|
185
188
|
rdoc_options: []
|
186
189
|
require_paths:
|
187
190
|
- lib
|
@@ -196,9 +199,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
199
|
- !ruby/object:Gem::Version
|
197
200
|
version: '0'
|
198
201
|
requirements: []
|
199
|
-
|
200
|
-
|
201
|
-
signing_key:
|
202
|
+
rubygems_version: 3.1.4
|
203
|
+
signing_key:
|
202
204
|
specification_version: 4
|
203
205
|
summary: Europe is a gem for retrieving and validating EU government data.
|
204
206
|
test_files:
|