cts-mpx 1.1.0 → 1.1.1
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/cts/mpx/entry.rb +2 -2
- data/lib/cts/mpx/services/data.rb +1 -1
- data/lib/cts/mpx/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0448eb34dbe083a7a484320d15657e99a041d72e'
|
4
|
+
data.tar.gz: 0fa9b56d020d8fde6204a0a23964f63c442196e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0d0e9a48c12126967c7b0b76c6e13a54c638e0aba218d1513c4aa1666c429e9c38210715b97d71afc0469ddd9530c082a8ecbfb8dc6c4572c4cd87f6749c1c5
|
7
|
+
data.tar.gz: 8d80a0b62855b946d6ac01eee1e844bad5000c4b53856745b57cf1e051f4a03a85677c3a6eef9fe84073e255c1ad0bb8fa494a6db72d68ffb7f7d23221cd6b6c
|
data/Gemfile.lock
CHANGED
data/lib/cts/mpx/entry.rb
CHANGED
@@ -71,7 +71,7 @@ module Cts
|
|
71
71
|
Driver::Exceptions.raise_unless_argument_error? fields, String if fields
|
72
72
|
Driver::Exceptions.raise_unless_reference? id
|
73
73
|
|
74
|
-
Registry.fetch_and_store_domain user
|
74
|
+
Registry.fetch_and_store_domain user, account_id
|
75
75
|
response = Services::Data.get account_id: account_id, user: user, service: service, endpoint: endpoint, fields: fields, ids: id.split("/").last
|
76
76
|
|
77
77
|
entries = response.data['entries']
|
@@ -93,7 +93,7 @@ module Cts
|
|
93
93
|
raise ArgumentError, "service is a required attribute" unless service
|
94
94
|
|
95
95
|
p = Driver::Page.create entries: [fields.to_h], xmlns: fields.xmlns
|
96
|
-
Registry.fetch_and_store_domain user
|
96
|
+
Registry.fetch_and_store_domain user, fields["ownerId"]
|
97
97
|
|
98
98
|
response_params = { account_id: fields['ownerId'], user: user, service: service, endpoint: endpoint, page: p }
|
99
99
|
result = Services::Data.send(id ? :put : :post, response_params)
|
@@ -74,7 +74,7 @@ module Cts
|
|
74
74
|
# @return [Response] Response of the call
|
75
75
|
def post(user: nil, account_id: nil, service: nil, endpoint: nil, extra_path: nil, query: {}, page: nil, headers: {}, method: :post)
|
76
76
|
prep_call(user: user, account_id: account_id, service: service, query: query, headers: headers, required_arguments: ['user', 'service', 'endpoint', 'page'], page: page, binding: binding)
|
77
|
-
host = Driver::Assemblers.host user: user, service: service
|
77
|
+
host = Driver::Assemblers.host user: user, service: service, account_id: account_id
|
78
78
|
path = Driver::Assemblers.path service: service, endpoint: endpoint, extra_path: extra_path
|
79
79
|
query = Driver::Assemblers.query user: user, account_id: account_id, service: service, endpoint: endpoint, query: query
|
80
80
|
|
data/lib/cts/mpx/version.rb
CHANGED