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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4a383f7f5a7b49036f2f1bf9d213da2577984ef069bb9167f3ac01e7f439403
4
- data.tar.gz: f8439a6fedd8b7d50cdda86eac60ec58e71380354cc2d02be7804c9964bc30d4
3
+ metadata.gz: e7c08d700a00bfc1ccec03c2cbd3c92d3094ad48d70eca4eba39dce8d9cb78fa
4
+ data.tar.gz: 3a44c0e260cb3b50cd6e6dbabd2806a655d19a015b5029f50a8f7dc5db2b5ba5
5
5
  SHA512:
6
- metadata.gz: 66af2d5541debb9174aedb920a52db996d792474722e9d1aca0c7dda083023dbec5332364dac991de00f54aa10e04b51c76da9bec32aeb6343af920e734225aa
7
- data.tar.gz: e405ea5770a85801b2bd1cf5c5110ad7cc6a6c7b56940866dbfc2aaeec6a82cb4d4afb483d2794a9fd13f6fa01ca98f22179e87c0db82e8f19d362ba301414f8
6
+ metadata.gz: ebf622a8c79f64b987a20f30122b07277a905dc7964fd42e11e72ca45e638d653fa39d4ac06618a4037247d86579d94e30f41f30c0953d93804c17049cd827c4
7
+ data.tar.gz: aacadd75279e2c4841ef3cf3c912fddbce1d9ae8110595541dbb07a470b5e7d639a1c51f91ddbfc256364608935ffe49842905c470ca349edd9b1aaf9d904263
@@ -2,6 +2,6 @@
2
2
 
3
3
  module HalApi
4
4
  module Rails
5
- VERSION = '1.2.0'
5
+ VERSION = '1.2.1'
6
6
  end
7
7
  end
@@ -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) || ->(represented:, doc:, **) do
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.0
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: 2022-12-05 00:00:00.000000000 Z
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.4
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: []