ncore 2.0.1 → 2.0.2

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
  SHA1:
3
- metadata.gz: 9f3d6a794a49da4166e2b53d68a6d4c0b672c252
4
- data.tar.gz: afd4fe0120f932d16d1d1695440eb18c252191bd
3
+ metadata.gz: 328192d41c91c81ca27862617e2007ee453cf09c
4
+ data.tar.gz: 901041a425738943590e5c6376e2a7c523c2d007
5
5
  SHA512:
6
- metadata.gz: 9191e55d316d0b1155dac584ce3f2ba46cd85c0f02cb16e982a9d5ed98dbdb3a254b5ab3722e99126bee0f438abbcd0bd773515cfea855f8f4172d204bd64780
7
- data.tar.gz: ec0beb95fc9f16435ca8f8164514c0bdc4e9d804d9b0007d94cafc7f45ec17f18e6434deb8b423b8ac655672eba6c156c8a690a63fc85dd72e84b7d136100fb2
6
+ metadata.gz: 0afd5c4317a4f28759248b22bc06f7c03c249260b92c5ccb7377f8353dec6b5fb661203f240bbe3d8adf32c8f9c83b75c9b057fb9a6b04fe28d51708e8e321ff
7
+ data.tar.gz: 0e790226e5ba8dd3c7640fb60badc406a563bf6924f3ec6078af0d77d727afe224d1cb6f95ab78e002c49bc8bc026ee211fc1dee7a710821b4fe91693d7b8d05
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ #### 2.0.2
2
+ - Resource.new now handles credentials: {} as part of attribute hash
3
+ Brings parity with other resource methods
4
+
1
5
  #### 2.0.1
2
6
  - Add .bulk_delete and bulk_delete!
3
7
  - Handle 215 response code
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Notioneer, Inc.
1
+ Copyright (c) 2014-2016 Notioneer, Inc.
2
2
 
3
3
  MIT License
4
4
 
@@ -81,10 +81,11 @@ module NCore
81
81
 
82
82
 
83
83
  def initialize(attribs={}, api_creds=nil)
84
- @attribs = {}.with_indifferent_access
85
- @api_creds = api_creds
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
@@ -1,3 +1,3 @@
1
1
  module NCore
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.2'
3
3
  end
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.1
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-07-04 00:00:00.000000000 Z
11
+ date: 2016-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport