simple-json-api-serializer 1.0.1 → 1.0.2

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: 1899feef8f0630e39e0286b8beecd42c7ee3763d
4
- data.tar.gz: 73cdd163d55a18ed33275db187c37925e1a35e9f
3
+ metadata.gz: f01b7473da01a370910bfc110566885000577817
4
+ data.tar.gz: 377851159c9172ac0bc6cdd960ef47f55ae8e015
5
5
  SHA512:
6
- metadata.gz: ce5613bed48cfa402e1ecf6d3ca7c4f70e85af0d06d4ad2a996256fe273c155c421f455b35d3fe4a0e97264e67a9d8ad31d28527dd05e024449e998dd0008e18
7
- data.tar.gz: 575fa623d73a0ea7a56ec2ab0b237eb4347e8942431f1506c417f721b6fdeaa6b7f56f0f96a8e99650648725606a56dcb5c99f04388f8f3a11d3bb02589f3f3b
6
+ metadata.gz: 568928ec024e634ab04894ca9c1ce1cdcba7e19799bea46a5e987dfda0a9e6e8bac08e2b1874fe3577ebf6857c7efe669af570f601a378720c37cc931ca5be45
7
+ data.tar.gz: 533b4dad3d4412d002732ff752255c2ae8c4d4507c432730a31d3a5d1527a186d832b23cd3bccfc24b8ee7db54fdf86ea8c799bb87d22c53526efac26352f3f9
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple-json-api-serializer (1.0.1)
4
+ simple-json-api-serializer (1.0.2)
5
5
  activesupport (~> 4.2)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (4.2.4)
10
+ activesupport (4.2.5)
11
11
  i18n (~> 0.7)
12
12
  json (~> 1.7, >= 1.7.7)
13
13
  minitest (~> 5.1)
@@ -16,21 +16,21 @@ GEM
16
16
  diff-lcs (1.2.5)
17
17
  i18n (0.7.0)
18
18
  json (1.8.3)
19
- minitest (5.8.1)
19
+ minitest (5.8.3)
20
20
  rake (10.4.2)
21
- rspec (3.3.0)
22
- rspec-core (~> 3.3.0)
23
- rspec-expectations (~> 3.3.0)
24
- rspec-mocks (~> 3.3.0)
25
- rspec-core (3.3.2)
26
- rspec-support (~> 3.3.0)
27
- rspec-expectations (3.3.1)
21
+ rspec (3.4.0)
22
+ rspec-core (~> 3.4.0)
23
+ rspec-expectations (~> 3.4.0)
24
+ rspec-mocks (~> 3.4.0)
25
+ rspec-core (3.4.1)
26
+ rspec-support (~> 3.4.0)
27
+ rspec-expectations (3.4.0)
28
28
  diff-lcs (>= 1.2.0, < 2.0)
29
- rspec-support (~> 3.3.0)
30
- rspec-mocks (3.3.2)
29
+ rspec-support (~> 3.4.0)
30
+ rspec-mocks (3.4.0)
31
31
  diff-lcs (>= 1.2.0, < 2.0)
32
- rspec-support (~> 3.3.0)
33
- rspec-support (3.3.0)
32
+ rspec-support (~> 3.4.0)
33
+ rspec-support (3.4.1)
34
34
  thread_safe (0.3.5)
35
35
  tzinfo (1.2.2)
36
36
  thread_safe (~> 0.1)
@@ -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[:name]
73
+ type = Utils.canonicalize_attribute_name(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[:name]
95
+ type = Utils.canonicalize_attribute_name(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.1'
2
+ VERSION = '1.0.2'
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.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marten Schilstra