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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/et_fake_ccd/command/create_case_command.rb +2 -3
- data/lib/et_fake_ccd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02267616e71d6fca923c199517d23d9ccc6fbc1f42326473b9f868d775c2e504
|
4
|
+
data.tar.gz: f7216cc36a13802acce8d1388dc7ddfd0456ef75ed4c8340c250896b9c7a7b18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2310ebb8b1b25db086da3dd4bcae5b1fce665b641cf36d3bc696fd6c233c7fe53c46f3dfb1b721f6c6c73efa155448bdfbdbec7d16554172065dccf97b405be5
|
7
|
+
data.tar.gz: 9d1ed82851d1ab1496f4483414a21607401a9c455580f106dc2610a349d91f7eda96abf697967a56ceb5aaa1ff5700f56720fbad717c3e0fb71c1fbefa8504ba
|
data/Gemfile.lock
CHANGED
@@ -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
|
data/lib/et_fake_ccd/version.rb
CHANGED