simple-json-api-serializer 1.0.0 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73e1d5468c21f1ebba9494d32054c89f112d071b
4
- data.tar.gz: abe7e22604cdffa704f3c87a52b8a462880854e6
3
+ metadata.gz: 1899feef8f0630e39e0286b8beecd42c7ee3763d
4
+ data.tar.gz: 73cdd163d55a18ed33275db187c37925e1a35e9f
5
5
  SHA512:
6
- metadata.gz: 75b165c7f5e8930893f1b059b665cc56cf89e99f7a3f06385b55b56429246daaf86666b0b5bb704adcf4397ac1c9331fe40700feb06afce28f4cf0b58570efd3
7
- data.tar.gz: ccef0b3e809c4ec57b1ca1d75e246dd613d7637efc11f72c5541cd60ac097b407f2506ed0c2a028378c66eaea8c4e4d6df22989d7be9ab4695903141e535159c
6
+ metadata.gz: ce5613bed48cfa402e1ecf6d3ca7c4f70e85af0d06d4ad2a996256fe273c155c421f455b35d3fe4a0e97264e67a9d8ad31d28527dd05e024449e998dd0008e18
7
+ data.tar.gz: 575fa623d73a0ea7a56ec2ab0b237eb4347e8942431f1506c417f721b6fdeaa6b7f56f0f96a8e99650648725606a56dcb5c99f04388f8f3a11d3bb02589f3f3b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple-json-api-serializer (1.0.0)
4
+ simple-json-api-serializer (1.0.1)
5
5
  activesupport (~> 4.2)
6
6
 
7
7
  GEM
@@ -70,7 +70,7 @@ module JSONApi
70
70
  return if options[:links] == false
71
71
 
72
72
  id = Utils.canonicalize_id(object.send(options[:id_attribute] || :id))
73
- type = options[:type] || options[:name]
73
+ type = options[:name]
74
74
 
75
75
  { related: "#{options[:base_url] || ""}/#{options[:parent_type]}/#{id}/#{type}" }
76
76
  end
@@ -92,7 +92,7 @@ module JSONApi
92
92
  return if options[:links] != true
93
93
 
94
94
  id = Utils.canonicalize_id(object.send(options[:id_attribute] || :id))
95
- type = (options[:type] || options[:name]).to_s.singularize
95
+ type = options[:name]
96
96
 
97
97
  { related: "#{options[:base_url] || ""}/#{options[:parent_type]}/#{id}/#{type}" }
98
98
  end
@@ -1,3 +1,3 @@
1
1
  module JSONApi
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-json-api-serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marten Schilstra