hermod 2.4.0 → 2.4.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
  SHA1:
3
- metadata.gz: 277f360e9a97d15b02d4cc8cf1d894d0e2e33cb9
4
- data.tar.gz: a8741c35839d672f9b716905cf5a7c2a5c276997
3
+ metadata.gz: cbf3807669ca862241f9283bef0378fd7e6b85d3
4
+ data.tar.gz: 9f8e3dd588bde55c11d92fc7b8c0b4dca9757492
5
5
  SHA512:
6
- metadata.gz: 5a427557bff67ba17b257db46044b31d273267127060f1f4d78f0573a8983c0a979a28583359903c05989c69f404c505d458251eedcb98acb059b256b797f9eb
7
- data.tar.gz: ddab7484e7f4e05b649faa9011d631c8d906d5c497185586ce917eeb53eb2e2c58fbf141e7f7d963409c8cf1d34faa8fbdbeed9ebeb9e2e50bebc4b8ad4decba
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.new("-300")
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.new("153.49")
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.new("1000")
424
- example.tax BigDecimal.new("0")
423
+ example.taxable_pay BigDecimal("1000")
424
+ example.tax BigDecimal("0")
425
425
  end
426
426
  ```
427
427
 
@@ -1,3 +1,3 @@
1
1
  module Hermod
2
- VERSION = "2.4.0"
2
+ VERSION = "2.4.1"
3
3
  end
@@ -32,7 +32,7 @@ module Hermod
32
32
  # defining nodes on that subclass of varying types used by HMRC.
33
33
  class XmlSectionBuilder
34
34
 
35
- ZERO = BigDecimal.new('0').freeze
35
+ ZERO = BigDecimal("0").freeze
36
36
  BOOLEAN_VALUES = [
37
37
  YES = "yes".freeze,
38
38
  NO = "no".freeze,
@@ -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.new("12.34") }.must_raise InvalidInputError
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
 
@@ -39,7 +39,7 @@ module Hermod
39
39
  subject do
40
40
  FormattedXML.new do |formatted|
41
41
  formatted.birthday Date.new(1988, 8, 13)
42
- formatted.allowance BigDecimal.new("20")
42
+ formatted.allowance BigDecimal("20")
43
43
  end
44
44
  end
45
45
 
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.0
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: 2017-05-19 00:00:00.000000000 Z
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.1
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.