eco-helpers 0.6.16 → 0.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4adc2bd05f27cb6889d9ea3f6320c1951c9a839aa3fc74f638bd947367f1a650
|
4
|
+
data.tar.gz: c4139a3e9d310133a4e93811734db707ef3c7fa1fa2ae486a5aac032b2f87260
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 490118493a087bcdfbb9db88b3a1560dfe82aa3c0816e6391d59da1185a0da16aa3db0089b7c0416518f68b7874793fa318113d1ca1e68d250e0dedff15f194e
|
7
|
+
data.tar.gz: 620aed9f3d3bed82ecf514de399998ea963cc83a1ecdf63ad45f44d954840483f8189934d979038883a24e880e8eff91e7a8622531bcbaeee22d1b28e05798bf
|
@@ -3,21 +3,17 @@ module Ecoportal
|
|
3
3
|
class V1
|
4
4
|
class Person
|
5
5
|
|
6
|
-
def consolidate!
|
7
|
-
@original_doc = JSON.parse(@doc.to_json)
|
8
|
-
end
|
9
|
-
|
10
6
|
def sync
|
11
7
|
consolidate!
|
12
8
|
end
|
13
9
|
|
14
|
-
|
15
|
-
|
16
|
-
|
10
|
+
def reset_details!
|
11
|
+
doc["details"] = JSON.parse(original_doc["details"])
|
12
|
+
end
|
17
13
|
|
18
|
-
|
19
|
-
|
20
|
-
|
14
|
+
def consolidate_details!
|
15
|
+
original_doc["details"] = JSON.parse(doc["details"])
|
16
|
+
end
|
21
17
|
|
22
18
|
end
|
23
19
|
end
|
@@ -3,13 +3,13 @@ module Ecoportal
|
|
3
3
|
class Internal
|
4
4
|
class Person
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
def reset_account!
|
7
|
+
doc["account"] = JSON.parse(original_doc["account"])
|
8
|
+
end
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
def consolidate_account!
|
11
|
+
original_doc["account"] = JSON.parse(doc["account"])
|
12
|
+
end
|
13
13
|
|
14
14
|
end
|
15
15
|
end
|
data/lib/eco/version.rb
CHANGED