valvat 1.2.0 → 1.2.1

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: d8adbca62e2ebbf198c817bfed2cf8dc2d375a24cb146dff52ce42a6dd59750d
4
- data.tar.gz: 84949112505cff60333ff382583b54f4b4c20cb86e59bf5cbb1c16616c1c3ce7
3
+ metadata.gz: 9b0b39e1acd3284cb03b0a5cd1a2beec5dc11b7539491829ebf56086c7a40413
4
+ data.tar.gz: 15c2ae43ec8fb9ad276d7cd473c51c1c505bdc53e1049ddc6554fea15a2a0c4d
5
5
  SHA512:
6
- metadata.gz: d2c2cb07112932730644124d140dc29a8e1ffc2e0b590d67ef1ff9f24dfb9c327fc72c189a8ebccdb983c04271c5cabebfa210bc20a61d8b9788c489135d58f9
7
- data.tar.gz: 543a2f012caac4dfb874d9c5cca697b3cde38bbb16ca646ff87e66020d913f58094890ceed95d0ffa39637d4c538253358fe0f6ae4ea0a045fe6de4fd9f8585b
6
+ metadata.gz: c6342f5e92bc881b491ac326a17b6327c622f639476bbffa60876b89aa1a1f6ab30848d56f58202567b51a930037e715dcbe10e8cadc021d4f72a5560227df84
7
+ data.tar.gz: b029ff8192f35b77abf95bdc5adcff6ce3afbb6895b46d2dcb51d9d062c46de7d9e64a9e6653e16201938b6f3b32976ea83656b08551619d5d89d9894c823dac
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGES.md CHANGED
@@ -1,7 +1,15 @@
1
1
 
2
2
  ### dev
3
3
 
4
- [full changelog](http://github.com/yolk/valvat/compare/v1.2.0...master)
4
+ [full changelog](http://github.com/yolk/valvat/compare/v1.2.1...master)
5
+
6
+ ### 1.2.1 / 2022-10-05
7
+
8
+ [full changelog](http://github.com/yolk/valvat/compare/v1.2.0...v1.2.1)
9
+
10
+ * Added missing dependency rexml #117
11
+ * Lookup: Retry IOError
12
+ * Lookup: require 'date' in VIES and 'time' in HMRC
5
13
 
6
14
  ### 1.2.0 / 2022-09-30
7
15
 
data/README.md CHANGED
@@ -18,7 +18,7 @@ Northern Ireland received its own VAT number prefix - XI which is supported by V
18
18
  * (Optional) lookup via the HMRC web service (for UK VAT numbers)
19
19
  * ActiveModel/Rails integration
20
20
  * Works standalone without ActiveModel
21
- * No runtime dependencies
21
+ * Minimal runtime dependencies
22
22
  * I18n locales for language specific error messages in English, German, French, Spanish, Italian, Portuguese, Polish, Swedish, Dutch, Danish, Czech, Slovakian, Hungarian, Bulgarian, Romanian, Latvian, Catalan, Norwegian, and Finnish.
23
23
  * *Experimental* checksum verification
24
24
 
@@ -44,7 +44,7 @@ class Valvat
44
44
  else
45
45
  response
46
46
  end
47
- rescue Errno::ECONNRESET
47
+ rescue Errno::ECONNRESET, IOError
48
48
  raise if limit > 5
49
49
 
50
50
  fetch(uri, limit + 1)
@@ -3,6 +3,7 @@
3
3
  require_relative 'base'
4
4
  require 'net/http'
5
5
  require 'json'
6
+ require 'time'
6
7
 
7
8
  class Valvat
8
9
  class Lookup
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative 'base'
4
+ require 'date'
4
5
  require 'net/http'
5
6
  require 'erb'
6
7
  require 'rexml'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Valvat
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.1'
5
5
  end
data/valvat.gemspec CHANGED
@@ -20,6 +20,8 @@ Gem::Specification.new do |s|
20
20
  s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem') if $PROGRAM_NAME =~ /gem\z/
21
21
  s.required_ruby_version = '>= 2.5.0'
22
22
 
23
+ s.add_runtime_dependency('rexml', '>= 3.2', '< 4.0')
24
+
23
25
  s.add_development_dependency 'activemodel', '>= 5.0'
24
26
  s.add_development_dependency 'rake'
25
27
  s.add_development_dependency 'rspec', '~> 3.0'
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valvat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Munz
@@ -35,8 +35,28 @@ cert_chain:
35
35
  BUdT7mtr41GgvWnIjaGWAldSuabxx5H+PKS5FzjNDMHThRZWuvYp/nP2RXDh4gIa
36
36
  7hV09P+XxvS96G+petG5KmC/lev8VqKu
37
37
  -----END CERTIFICATE-----
38
- date: 2022-09-30 00:00:00.000000000 Z
38
+ date: 2022-10-05 00:00:00.000000000 Z
39
39
  dependencies:
40
+ - !ruby/object:Gem::Dependency
41
+ name: rexml
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '3.2'
47
+ - - "<"
48
+ - !ruby/object:Gem::Version
49
+ version: '4.0'
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '3.2'
57
+ - - "<"
58
+ - !ruby/object:Gem::Version
59
+ version: '4.0'
40
60
  - !ruby/object:Gem::Dependency
41
61
  name: activemodel
42
62
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file