eco-helpers 0.6.16 → 0.6.17

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: '0558df7d9cf0e37551719835494af7ee74c57686da639faa66fcb63dce875ee1'
4
- data.tar.gz: 9f67caf71bb8813cea03bd632afa95aff1f488815893c0123180ff409fa773f0
3
+ metadata.gz: 4adc2bd05f27cb6889d9ea3f6320c1951c9a839aa3fc74f638bd947367f1a650
4
+ data.tar.gz: c4139a3e9d310133a4e93811734db707ef3c7fa1fa2ae486a5aac032b2f87260
5
5
  SHA512:
6
- metadata.gz: 79a812eef68a2ce106a4faf4169d00baed6c36e6783df1de2b5573119d9f8a36959c32ba77c67667e94966c23e0d67a4e2e8d46f0ea4211996d5293ec01f8035
7
- data.tar.gz: 7c91bf89f951f800bdb0da664beafde2c1e3a899f2ea1aaa7f4e27cfa96fb4909c5c48ce36b43c9740b2ed6532090eb1ff42d505ba908e7d3917cc2d514df4ae
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
- #def reset_details!
15
- # doc["details"] = JSON.parse(original_doc["details"])
16
- #end
10
+ def reset_details!
11
+ doc["details"] = JSON.parse(original_doc["details"])
12
+ end
17
13
 
18
- #def consolidate_details!
19
- # original_doc["details"] = JSON.parse(doc["details"])
20
- #end
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
- #def reset_account!
7
- # doc["account"] = JSON.parse(original_doc["account"])
8
- #end
6
+ def reset_account!
7
+ doc["account"] = JSON.parse(original_doc["account"])
8
+ end
9
9
 
10
- #def consolidate_account!
11
- # original_doc["account"] = JSON.parse(doc["account"])
12
- #end
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
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "0.6.16"
2
+ VERSION = "0.6.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.16
4
+ version: 0.6.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura