atlas_rb 1.9.4 → 1.10.0
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/.version +1 -1
- data/CHANGELOG.md +18 -0
- data/Gemfile.lock +2 -2
- data/lib/atlas_rb/person.rb +4 -6
- 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: 568ae8b7b6c4f459c528c79d358e5969333b0d35201c5b5f8342931bff232d00
|
|
4
|
+
data.tar.gz: bbfa0f0f70bafc15c5fb402ce3051795250716e3229b8cb3b70e9fec5b62af19
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22976962a78e3aa7c53253db913daa0306a27c8d378490443a774acaeac6afb83d6ec7b0da15942ad9c276dd7dd454ce9ccae26880189b61fa94dfbdf8977fc9
|
|
7
|
+
data.tar.gz: 634edc0528a3872d201b67506030d0ed88d5956da985336ba9cebf7b78cc49a997a5806dc2b51ec2071774b499ac2f4c1f2235f25dfc784a1d04e7cf0c9b9123
|
data/.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.10.0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.10.0
|
|
4
|
+
|
|
5
|
+
### Removed — `title` on `Person.create` and `Person.update`
|
|
6
|
+
|
|
7
|
+
Atlas no longer holds a job title on a Person. The attribute claimed
|
|
8
|
+
Blacklight's title namespace, where display and sorting expect the Person's
|
|
9
|
+
name, so Atlas dropped it rather than renamed it: the field was display-only,
|
|
10
|
+
optional, and absent from v1.
|
|
11
|
+
|
|
12
|
+
The parameter therefore had nothing to write to. Atlas ignores an unknown key in
|
|
13
|
+
a write body, so a caller that kept passing `title:` had its value discarded
|
|
14
|
+
with no error and nothing in a log. That is the reason to remove the parameter
|
|
15
|
+
rather than leave it accepted and inert.
|
|
16
|
+
|
|
17
|
+
**Breaking.** `Person.create(…, title: "Professor")` now raises
|
|
18
|
+
`ArgumentError: unknown keyword: :title`. Drop the argument at the call site;
|
|
19
|
+
there is no replacement field.
|
|
20
|
+
|
|
3
21
|
## 1.9.4
|
|
4
22
|
|
|
5
23
|
### Fixed — write bindings parsed the response body without checking the status
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
atlas_rb (1.
|
|
4
|
+
atlas_rb (1.10.0)
|
|
5
5
|
faraday (~> 2.7)
|
|
6
6
|
faraday-follow_redirects (~> 0.3.0)
|
|
7
7
|
faraday-multipart (~> 1)
|
|
@@ -25,7 +25,7 @@ GEM
|
|
|
25
25
|
net-http (~> 0.5)
|
|
26
26
|
hashie (5.1.0)
|
|
27
27
|
logger
|
|
28
|
-
json (2.21.
|
|
28
|
+
json (2.21.2)
|
|
29
29
|
jwt (2.10.3)
|
|
30
30
|
base64
|
|
31
31
|
logger (1.7.0)
|
data/lib/atlas_rb/person.rb
CHANGED
|
@@ -85,7 +85,6 @@ module AtlasRb
|
|
|
85
85
|
# @param display_name [String] authoritative display name.
|
|
86
86
|
# @param bio [String, nil]
|
|
87
87
|
# @param orcid [String, nil]
|
|
88
|
-
# @param title [String, nil]
|
|
89
88
|
# @param on_behalf_of [String, nil] acting-as target (the acting principal
|
|
90
89
|
# itself comes from the ambient AtlasRb.config.default_nuid).
|
|
91
90
|
# @return [AtlasRb::Mash] the unwrapped `"person"` object.
|
|
@@ -93,8 +92,8 @@ module AtlasRb
|
|
|
93
92
|
# resource, so the write did not happen.
|
|
94
93
|
# @raise [AtlasRb::ResourceError] on any other non-2xx, carrying Atlas's status
|
|
95
94
|
# and body.
|
|
96
|
-
def self.create(nuid:, display_name:, bio: nil, orcid: nil,
|
|
97
|
-
body = { nuid: nuid, display_name: display_name, bio: bio, orcid: orcid
|
|
95
|
+
def self.create(nuid:, display_name:, bio: nil, orcid: nil, on_behalf_of: nil)
|
|
96
|
+
body = { nuid: nuid, display_name: display_name, bio: bio, orcid: orcid }.compact
|
|
98
97
|
AtlasRb::Mash.new(write_resource(
|
|
99
98
|
connection({}, nil, on_behalf_of: on_behalf_of).post(ROUTE, JSON.dump(body))
|
|
100
99
|
))["person"]
|
|
@@ -107,7 +106,6 @@ module AtlasRb
|
|
|
107
106
|
# @param display_name [String, nil]
|
|
108
107
|
# @param bio [String, nil]
|
|
109
108
|
# @param orcid [String, nil]
|
|
110
|
-
# @param title [String, nil]
|
|
111
109
|
# @param nuid [String, nil] acting principal.
|
|
112
110
|
# @param on_behalf_of [String, nil] acting-as target.
|
|
113
111
|
# @return [AtlasRb::Mash] the unwrapped, updated `"person"` object.
|
|
@@ -115,8 +113,8 @@ module AtlasRb
|
|
|
115
113
|
# resource, so the write did not happen.
|
|
116
114
|
# @raise [AtlasRb::ResourceError] on any other non-2xx, carrying Atlas's status
|
|
117
115
|
# and body.
|
|
118
|
-
def self.update(id, display_name: nil, bio: nil, orcid: nil,
|
|
119
|
-
body = { display_name: display_name, bio: bio, orcid: orcid
|
|
116
|
+
def self.update(id, display_name: nil, bio: nil, orcid: nil, nuid: nil, on_behalf_of: nil)
|
|
117
|
+
body = { display_name: display_name, bio: bio, orcid: orcid }.compact
|
|
120
118
|
AtlasRb::Mash.new(write_resource(
|
|
121
119
|
connection({}, nuid, on_behalf_of: on_behalf_of).patch(ROUTE + id, JSON.dump(body))
|
|
122
120
|
))["person"]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: atlas_rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Cliff
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|