ncore 2.0.1 → 2.0.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/LICENSE +1 -1
- data/lib/ncore/attributes.rb +4 -3
- data/lib/ncore/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 328192d41c91c81ca27862617e2007ee453cf09c
|
4
|
+
data.tar.gz: 901041a425738943590e5c6376e2a7c523c2d007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0afd5c4317a4f28759248b22bc06f7c03c249260b92c5ccb7377f8353dec6b5fb661203f240bbe3d8adf32c8f9c83b75c9b057fb9a6b04fe28d51708e8e321ff
|
7
|
+
data.tar.gz: 0e790226e5ba8dd3c7640fb60badc406a563bf6924f3ec6078af0d77d727afe224d1cb6f95ab78e002c49bc8bc026ee211fc1dee7a710821b4fe91693d7b8d05
|
data/CHANGELOG.md
CHANGED
data/LICENSE
CHANGED
data/lib/ncore/attributes.rb
CHANGED
@@ -81,10 +81,11 @@ module NCore
|
|
81
81
|
|
82
82
|
|
83
83
|
def initialize(attribs={}, api_creds=nil)
|
84
|
-
@attribs
|
85
|
-
|
84
|
+
@attribs = {}.with_indifferent_access
|
85
|
+
attribs = attribs.dup.with_indifferent_access
|
86
|
+
creds_attr = attribs.delete(:credentials)
|
87
|
+
@api_creds = api_creds || creds_attr
|
86
88
|
|
87
|
-
attribs = attribs.dup.with_indifferent_access
|
88
89
|
if attribs.keys.sort == %w(data error metadata)
|
89
90
|
load_attrs = attribs
|
90
91
|
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: 2.0.
|
4
|
+
version: 2.0.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: 2016-
|
11
|
+
date: 2016-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|