ecoportal-api 0.3.0.pre1 → 0.3.0
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: 2387b6357a1435c89d2640ea5d31eefbce877038f9870abcfbe6d105e0248c08
|
|
4
|
+
data.tar.gz: bf46ecb7912958bfa2c8c3eb64f54bde9a506fc7064f8344bc8865507f5806c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 281548fa5fbf3841dcacdaf7b515640bf19ae054ed6b3888d53477644f0c616b825249de572f19eaf7d0d7e980d4a29fafd7827e2d633ea64fccd0a48179cc8b
|
|
7
|
+
data.tar.gz: c60bca3e287dd56b522b0ee3766e7ebf94bfaa0f749b471c958227e5bb45bdfb0d14857fac632d15c4d1afd362d16d2cc993bcea4174059decfeb408d37ff110
|
|
@@ -62,11 +62,10 @@ module Ecoportal
|
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
def upsert(doc)
|
|
65
|
-
id
|
|
66
|
-
|
|
67
|
-
body = get_body(doc)
|
|
65
|
+
id = get_id(doc)
|
|
66
|
+
body = get_body(doc)
|
|
68
67
|
@operations << {
|
|
69
|
-
path: @base_path + "/" + CGI::escape(
|
|
68
|
+
path: @base_path + "/" + CGI::escape(id),
|
|
70
69
|
method: "POST",
|
|
71
70
|
body: body,
|
|
72
71
|
callback: block_given? && Proc.new
|
|
@@ -47,10 +47,9 @@ module Ecoportal
|
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
def upsert(doc)
|
|
50
|
-
body
|
|
51
|
-
id
|
|
52
|
-
|
|
53
|
-
@client.post("/people/"+CGI::escape(external_id || id), data: body)
|
|
50
|
+
body = get_body(doc)
|
|
51
|
+
id = get_id(doc)
|
|
52
|
+
@client.post("/people/"+CGI::escape(id), data: body)
|
|
54
53
|
end
|
|
55
54
|
|
|
56
55
|
def batch
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ecoportal-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.0
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tapio Saarinen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-09-
|
|
11
|
+
date: 2018-09-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -150,9 +150,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
150
150
|
version: '0'
|
|
151
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
requirements:
|
|
153
|
-
- - "
|
|
153
|
+
- - ">="
|
|
154
154
|
- !ruby/object:Gem::Version
|
|
155
|
-
version:
|
|
155
|
+
version: '0'
|
|
156
156
|
requirements: []
|
|
157
157
|
rubyforge_project:
|
|
158
158
|
rubygems_version: 2.7.6
|