hal_api-rails 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hal_api/rails/version.rb +1 -1
- data/lib/hal_api/representer/link_serialize.rb +2 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7c08d700a00bfc1ccec03c2cbd3c92d3094ad48d70eca4eba39dce8d9cb78fa
|
4
|
+
data.tar.gz: 3a44c0e260cb3b50cd6e6dbabd2806a655d19a015b5029f50a8f7dc5db2b5ba5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebf622a8c79f64b987a20f30122b07277a905dc7964fd42e11e72ca45e638d653fa39d4ac06618a4037247d86579d94e30f41f30c0953d93804c17049cd827c4
|
7
|
+
data.tar.gz: aacadd75279e2c4841ef3cf3c912fddbce1d9ae8110595541dbb07a470b5e7d639a1c51f91ddbfc256364608935ffe49842905c470ca349edd9b1aaf9d904263
|
@@ -15,7 +15,8 @@ module HalApi::Representer::LinkSerialize
|
|
15
15
|
if options.is_a?(Hash) && (options.delete(:writeable) || options[:reader])
|
16
16
|
name = options[:rel].to_s.split(':').last.split('/').last
|
17
17
|
pname = "set_#{name}_uri"
|
18
|
-
reader = options.delete(:reader) || ->(
|
18
|
+
reader = options.delete(:reader) || ->(obj) do
|
19
|
+
doc = obj[:doc]
|
19
20
|
try("#{name}_id=", id_from_url(doc[pname])) if doc[pname]
|
20
21
|
Representable::Pipeline::Stop
|
21
22
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hal_api-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Rhoden
|
8
8
|
- Andrew Kuklewicz
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-07-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
@@ -212,7 +212,7 @@ homepage: https://www.github.com/PRX/
|
|
212
212
|
licenses:
|
213
213
|
- MIT
|
214
214
|
metadata: {}
|
215
|
-
post_install_message:
|
215
|
+
post_install_message:
|
216
216
|
rdoc_options: []
|
217
217
|
require_paths:
|
218
218
|
- lib
|
@@ -227,8 +227,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
227
|
- !ruby/object:Gem::Version
|
228
228
|
version: '0'
|
229
229
|
requirements: []
|
230
|
-
rubygems_version: 3.1.
|
231
|
-
signing_key:
|
230
|
+
rubygems_version: 3.1.6
|
231
|
+
signing_key:
|
232
232
|
specification_version: 4
|
233
233
|
summary: JSON HAL APIs on Rails in the style of PRX
|
234
234
|
test_files: []
|