ncore 3.6.0 → 3.6.1
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/ncore/attributes.rb +2 -2
- 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: 7768ca94332000d27a96d5eef72643b122d592461be7c46bcd46f0d3ac4cfa37
|
4
|
+
data.tar.gz: f247238c94a6a94011df71583b7f85f2a04e30b52edf6bbf3c908b06fc5be9ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 896e527a4b7d5dc140dc9b21c51bbb1755488f505fd4815bed349a739d9de170ebb0773786f156857f6a6cd188adf2999982d519a3d9d53762b1a477dd51186f
|
7
|
+
data.tar.gz: 43f131a9684c8fde7dc088724c0ed5d4ab64e7b3f7f0ed6e150eddcfadf6e97d88f6335e96108d5b341f4051ace9f8fc5dc0b88371a734deb29381a7e55d574d
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,13 @@
|
|
1
|
+
#### 3.6.1
|
2
|
+
|
3
|
+
- Restore usage of Resource.new(some_attr: 'value')
|
4
|
+
|
1
5
|
#### 3.6.0
|
2
6
|
|
3
7
|
- factory() - add :preload option; make available to resource instances
|
4
8
|
- Resource.new() - add :preload option
|
5
9
|
Hint: the first arg (attribs) must be a hash, not kwarg: `new({id: id})`
|
10
|
+
(no longer true as of 3.6.1)
|
6
11
|
|
7
12
|
#### 3.5.2
|
8
13
|
|
data/lib/ncore/attributes.rb
CHANGED
@@ -95,10 +95,10 @@ module NCore
|
|
95
95
|
attr_accessor :metadata, :errors
|
96
96
|
|
97
97
|
|
98
|
-
def initialize(attribs={}, api_creds=nil,
|
98
|
+
def initialize(attribs={}, api_creds=nil, options={})
|
99
99
|
@attribs = {}.with_indifferent_access
|
100
100
|
attribs = attribs.dup.with_indifferent_access
|
101
|
-
preload = preload.present? ? preload.dup.with_indifferent_access : nil
|
101
|
+
preload = options[:preload].present? ? options[:preload].dup.with_indifferent_access : nil
|
102
102
|
creds_attr = attribs.delete(:credentials)
|
103
103
|
@api_creds = api_creds || creds_attr
|
104
104
|
|
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.6.
|
4
|
+
version: 3.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Notioneer Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|