et_fake_ccd 0.1.24 → 0.1.25

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: 2a52f5840049a11dd3f32c73835d3a00123f5c62a1e2b4c5ce6b0105d3cb1aa6
4
- data.tar.gz: f5ced45dde21c49c5f5668fff52a9909c02b8a84b6dadf1e48212fc7ca5dad91
3
+ metadata.gz: 02267616e71d6fca923c199517d23d9ccc6fbc1f42326473b9f868d775c2e504
4
+ data.tar.gz: f7216cc36a13802acce8d1388dc7ddfd0456ef75ed4c8340c250896b9c7a7b18
5
5
  SHA512:
6
- metadata.gz: 42ccf2cdf3340a54166122bcaa4e1252811d150e0d250c92bf8aab5a8d27c366d024492347f4316c9a87cddb5fd54fd461a4cfadac598cfadcc47c8799de5741
7
- data.tar.gz: a1a51e9baa9ed64a62bd07bf98e1004553236e7b24bd8a637cf6a7f517a450141e3a6d94530a9ddd358e9e2a122ac51d65bd435a86cfbc980d5c367c9ae582ac
6
+ metadata.gz: 2310ebb8b1b25db086da3dd4bcae5b1fce665b641cf36d3bc696fd6c233c7fe53c46f3dfb1b721f6c6c73efa155448bdfbdbec7d16554172065dccf97b405be5
7
+ data.tar.gz: 9d1ed82851d1ab1496f4483414a21607401a9c455580f106dc2610a349d91f7eda96abf697967a56ceb5aaa1ff5700f56720fbad717c3e0fb71c1fbefa8504ba
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- et_fake_ccd (0.1.24)
4
+ et_fake_ccd (0.1.25)
5
5
  activemodel (~> 5.2, >= 5.2.3)
6
6
  puma (~> 3.12)
7
7
  roda (~> 3.21)
@@ -20,12 +20,11 @@ module EtFakeCcd
20
20
 
21
21
  def initialize(*)
22
22
  super
23
- data['data']['ethosCaseReference'] = next_case_reference
24
-
23
+ data['data']['ethosCaseReference'] = next_case_reference if data.dig('data', 'ethosCaseReference').nil? || data.dig('data', 'ethosCaseReference') == ''
25
24
  end
26
25
 
27
26
  def next_case_reference
28
- format('%7.4f', Time.now.to_f - ELMOS_BIRTHDAY)[-12..-1].gsub(/\./, '/')
27
+ format('%7.4f', Time.now.to_f - ELMOS_BIRTHDAY).rjust(12, '0')[-12..-1].gsub(/\./, '/')
29
28
  end
30
29
 
31
30
  def validate_data
@@ -1,3 +1,3 @@
1
1
  module EtFakeCcd
2
- VERSION = "0.1.24"
2
+ VERSION = "0.1.25"
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.24
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Taylor