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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/et_fake_ccd/command/create_case_command.rb +6 -6
- 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: 7bd18f8318948cf926ccfc293479e6ccbd8cf2435a41011301f51dc4adfbffab
|
4
|
+
data.tar.gz: 53530c97e684746bc8da06ccfa9a82cc1bc8bbc33ea336efdf0a89428519d5fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b42ea80db61a0f2bb88c5d5f6b842cd45ab136967451a4a38de8da05374a6f9dfdbdab4b22b451609b10cf741faf0db8825d00238181b7aa04053506b540632
|
7
|
+
data.tar.gz: ed07e4fde1d621b92063a082b1c6add569f673f40318d05f38eed4db5fec0ee723828900e88c1a83810445a854144731c9e19defffab4d91bc7c8ebb4738f71b
|
data/Gemfile.lock
CHANGED
@@ -11,20 +11,20 @@ module EtFakeCcd
|
|
11
11
|
attribute :data
|
12
12
|
|
13
13
|
def self.from_json(json)
|
14
|
-
|
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
|
24
|
-
|
21
|
+
def initialize(*)
|
22
|
+
super
|
23
|
+
data['data']['ethosCaseReference'] = nextCaseReference
|
24
|
+
|
25
25
|
end
|
26
26
|
|
27
|
-
def
|
27
|
+
def next_case_reference
|
28
28
|
format('%7.4f', Time.now.to_f - ELMOS_BIRTHDAY)[-12..-1].gsub(/\./, '/')
|
29
29
|
end
|
30
30
|
|
data/lib/et_fake_ccd/version.rb
CHANGED