hermod 2.4.0 → 2.4.1
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbf3807669ca862241f9283bef0378fd7e6b85d3
|
4
|
+
data.tar.gz: 9f8e3dd588bde55c11d92fc7b8c0b4dca9757492
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c41fc3dffbabb1d8d42b672005cf7eb8fda5a6e2eaa7c09415303f7bd967cd795e47324876e3c4d42f6ffd0bc9a9f6f300c546edb3a7ca8d53141ac9dafc3b67
|
7
|
+
data.tar.gz: 79456adf4bcbff635ed8ead7656c942925515610e062e8f072761199f5f2d5e33d508e28d44c78bbdd76d3f46cf6d60220702d03c3036bb7876e2a7e178fcd0a
|
data/README.md
CHANGED
@@ -376,7 +376,7 @@ end
|
|
376
376
|
*Using that XmlSection*
|
377
377
|
```ruby
|
378
378
|
Example.new do |example|
|
379
|
-
example.taxable_pay BigDecimal
|
379
|
+
example.taxable_pay BigDecimal("-300")
|
380
380
|
end
|
381
381
|
```
|
382
382
|
|
@@ -398,7 +398,7 @@ end
|
|
398
398
|
*Using that XmlSection*
|
399
399
|
```ruby
|
400
400
|
Example.new do |example|
|
401
|
-
example.lower_earnings_limit BigDecimal
|
401
|
+
example.lower_earnings_limit BigDecimal("153.49")
|
402
402
|
end
|
403
403
|
```
|
404
404
|
|
@@ -420,8 +420,8 @@ end
|
|
420
420
|
*Using that XmlSection*
|
421
421
|
```ruby
|
422
422
|
Example.new do |example|
|
423
|
-
example.taxable_pay BigDecimal
|
424
|
-
example.tax BigDecimal
|
423
|
+
example.taxable_pay BigDecimal("1000")
|
424
|
+
example.tax BigDecimal("0")
|
425
425
|
end
|
426
426
|
```
|
427
427
|
|
data/lib/hermod/version.rb
CHANGED
@@ -43,7 +43,7 @@ module Hermod
|
|
43
43
|
end
|
44
44
|
|
45
45
|
it "should not allow decimal values for whole unit nodes" do
|
46
|
-
ex = proc { subject.pension BigDecimal
|
46
|
+
ex = proc { subject.pension BigDecimal("12.34") }.must_raise InvalidInputError
|
47
47
|
ex.message.must_equal "pension must be in whole units"
|
48
48
|
end
|
49
49
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hermod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harry Mills
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: libxml-ruby
|
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
206
|
version: '0'
|
207
207
|
requirements: []
|
208
208
|
rubyforge_project:
|
209
|
-
rubygems_version: 2.5.
|
209
|
+
rubygems_version: 2.5.2.3
|
210
210
|
signing_key:
|
211
211
|
specification_version: 4
|
212
212
|
summary: A Ruby library for talking to the HMRC Government Gateway.
|