ncore 3.3.1 → 3.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/ncore/attributes.rb +8 -4
- data/lib/ncore/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e01099b869ce4be69bdcd101bfa51241372f3618074547f58b417140505468d1
|
4
|
+
data.tar.gz: 762499cfa2d0527e628f54acf3c541850dfc430cc96b8ed45d6a7fe2e813dea4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bac55e24257dbfc697ff3c529aab817d851aa89e3439ccf74b79d4c199ec1877c5aadf93d1c50bb0e44bfed21c2ad29b5a411f13ff8282f4f9869db147639c30
|
7
|
+
data.tar.gz: df661b5e833cbcb166d737515888de893e829984be45b760e3b6bcd99d1a0215f269fa6f1b971b3ec7542b0a40c91a9d22e606e6f70840c82a7f045dfc09ea0a
|
data/CHANGELOG.md
CHANGED
data/lib/ncore/attributes.rb
CHANGED
@@ -160,10 +160,14 @@ module NCore
|
|
160
160
|
end
|
161
161
|
|
162
162
|
|
163
|
-
def load(
|
164
|
-
|
165
|
-
|
166
|
-
|
163
|
+
def load(args={})
|
164
|
+
raise ArgumentError, "Missing :data" unless args.key?(:data)
|
165
|
+
extra_keys = args.keys - %i(data errors metadata)
|
166
|
+
raise ArgumentError, "Unexpected keys: #{extra_keys.inpsect}" if extra_keys.any?
|
167
|
+
|
168
|
+
self.metadata = args[:metadata] || {}.with_indifferent_access
|
169
|
+
self.errors = parse_errors(args[:errors])
|
170
|
+
args[:data].each do |k,v|
|
167
171
|
if respond_to? "#{k}="
|
168
172
|
send "#{k}=", self.class.interpret_type(v, api_creds)
|
169
173
|
else
|
data/lib/ncore/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ncore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Notioneer Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|