simple-json-api-serializer 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +14 -14
- data/lib/json_api/relationship_serializer.rb +2 -2
- data/lib/json_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f01b7473da01a370910bfc110566885000577817
|
4
|
+
data.tar.gz: 377851159c9172ac0bc6cdd960ef47f55ae8e015
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
19
|
+
minitest (5.8.3)
|
20
20
|
rake (10.4.2)
|
21
|
-
rspec (3.
|
22
|
-
rspec-core (~> 3.
|
23
|
-
rspec-expectations (~> 3.
|
24
|
-
rspec-mocks (~> 3.
|
25
|
-
rspec-core (3.
|
26
|
-
rspec-support (~> 3.
|
27
|
-
rspec-expectations (3.
|
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.
|
30
|
-
rspec-mocks (3.
|
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.
|
33
|
-
rspec-support (3.
|
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
|
data/lib/json_api/version.rb
CHANGED