emp_json 1.5.0.pre.g2ee19a819 → 1.5.0.pre.g6cf4f565b

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: 03b92594da331b167748813e6d73536058d95bea581362991d5782a369b6260c
4
- data.tar.gz: 495f9304fcb1257cab930d51dc3b6320440e8f7d2f118f30fd547d751357dbed
3
+ metadata.gz: 11b28b325f99ceb1bc68f260a755deb077071e653fc4d33e40208864eae4ca24
4
+ data.tar.gz: 7124ff6529878a36154d44b4539b2979c9037d7918bd8c291a5f7dd923b1bc64
5
5
  SHA512:
6
- metadata.gz: d484a1032b846f3726224d67788796ca32d5b3a0eb5fa97e1b1c1a39bd5d2c88d4ec945ec1101548507e591b5d7dc7ee98876cf1fe0a1fbaca517beb6d47bcee
7
- data.tar.gz: cabea5bbb42b16d37dca7dc6cf176495389db2345949dd27b9234b9af07eee1bbd180704a48780d216e49e9339a742035f6f3dc77c76e1718c70ab124199018c
6
+ metadata.gz: 3ad683190047a06b3350590d75a53ca96bff81dd51245716f6c1b0cc589504003b9c7640e76204b21722af0258319e3707743f841a7a1dbd8ff6b79e7fc9f7b2
7
+ data.tar.gz: 4afd4527667e7bd3488690f72a311ba9b1d31519eb841987d5c2b21a5c839f5035f1be2810957dc1db42ba14a9fe4ff29a3eba38d52531d4bc591f555c44eb11
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- emp_json (1.5.0.pre.g2ee19a819)
4
+ emp_json (1.5.0.pre.g6cf4f565b)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -56,7 +56,8 @@ module Empathy
56
56
  end
57
57
 
58
58
  def retrieve_id(resource)
59
- return resource.to_s if resource.is_a?(URI) || resource.is_a?(RDF::URI) || resource.is_a?(RDF::Node)
59
+ return RDF::URI(resource) if resource.is_a?(URI)
60
+ return resource if resource.is_a?(RDF::URI) || resource.is_a?(RDF::Node)
60
61
 
61
62
  resource.try(:iri) || resource.try(:subject) || resource.try(:id) || resource
62
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emp_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0.pre.g2ee19a819
4
+ version: 1.5.0.pre.g6cf4f565b
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom van Kalkeren
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-17 00:00:00.000000000 Z
11
+ date: 2022-08-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Serializer for the EmpJson specification.
14
14
  email: