et_fake_ccd 0.1.22 → 0.1.23

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: bfcdbc556e045cf1e68ea27f1ecc6800a0172d2923a6073aa12208dd17f1ea00
4
- data.tar.gz: '09b240fa45926b68e093bf2a75a7fc36252f5d8e68565a0590e6b774005b09c2'
3
+ metadata.gz: 7bd18f8318948cf926ccfc293479e6ccbd8cf2435a41011301f51dc4adfbffab
4
+ data.tar.gz: 53530c97e684746bc8da06ccfa9a82cc1bc8bbc33ea336efdf0a89428519d5fb
5
5
  SHA512:
6
- metadata.gz: 909986f0e95303bae35ec99a5e50b43c6f97c44142237f23b25e000ff00ef5c2e438f8e3f05a9bf145fc6042a366dcd0ceac644c5726c9b8413b4ab96691c028
7
- data.tar.gz: 85fa142b6dd22ada2c4553b3092d261da6ca8cf96331620104713a07f477f7a7fd85caa21713e2d50fbec52548a975260b70c832bac8c59daac427d7b594ee60
6
+ metadata.gz: 6b42ea80db61a0f2bb88c5d5f6b842cd45ab136967451a4a38de8da05374a6f9dfdbdab4b22b451609b10cf741faf0db8825d00238181b7aa04053506b540632
7
+ data.tar.gz: ed07e4fde1d621b92063a082b1c6add569f673f40318d05f38eed4db5fec0ee723828900e88c1a83810445a854144731c9e19defffab4d91bc7c8ebb4738f71b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- et_fake_ccd (0.1.22)
4
+ et_fake_ccd (0.1.23)
5
5
  activemodel (~> 5.2, >= 5.2.3)
6
6
  puma (~> 3.12)
7
7
  roda (~> 3.21)
@@ -11,20 +11,20 @@ module EtFakeCcd
11
11
  attribute :data
12
12
 
13
13
  def self.from_json(json)
14
- modified_json = json.dup
15
- modified_json['data']['ethosCaseReference'] = nextCaseReference
16
- new data: modified_json
14
+ new data: json.dup
17
15
  end
18
16
 
19
17
  validate :validate_data
20
18
 
21
19
  private
22
20
 
23
- def assign_ethos_reference_number
24
- data['ethosCaseReference'] = nextCaseReference
21
+ def initialize(*)
22
+ super
23
+ data['data']['ethosCaseReference'] = nextCaseReference
24
+
25
25
  end
26
26
 
27
- def nextCaseReference
27
+ def next_case_reference
28
28
  format('%7.4f', Time.now.to_f - ELMOS_BIRTHDAY)[-12..-1].gsub(/\./, '/')
29
29
  end
30
30
 
@@ -1,3 +1,3 @@
1
1
  module EtFakeCcd
2
- VERSION = "0.1.22"
2
+ VERSION = "0.1.23"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: et_fake_ccd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Taylor