json_api_client 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/json_api_client/linked_data.rb +7 -1
- data/lib/json_api_client/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f710744217ad35c90e40438162f9dfa5253626b0
|
4
|
+
data.tar.gz: b066eb1912f661b084562fe621ce95b4865bce95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c371c8c8e2faecf7345213636eb76f789d5586d4ef7d15ee49af97217cad10076f93d7a0e532388733f341a7fbd24be81678a1978989f3a7aa30efcc6afa4d77
|
7
|
+
data.tar.gz: 2b3dddf915339ff384979f5857dda62018d725586102f80907ebb378cd651d9532f6ee1aac9d5e20fd490898aefb95ad587e88a6317613bb79f7471137ffd891
|
@@ -17,6 +17,12 @@ module JsonApiClient
|
|
17
17
|
klass = klass_for(type)
|
18
18
|
add_data(type, results.map{|result| klass.new(result)})
|
19
19
|
end
|
20
|
+
|
21
|
+
@results_by_type_by_id.values.each do |results|
|
22
|
+
results.values.each do |result|
|
23
|
+
result.linked_data = self
|
24
|
+
end
|
25
|
+
end
|
20
26
|
end
|
21
27
|
|
22
28
|
def data_for(type, ids)
|
@@ -66,4 +72,4 @@ module JsonApiClient
|
|
66
72
|
end
|
67
73
|
|
68
74
|
end
|
69
|
-
end
|
75
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Ching
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -28,14 +28,14 @@ dependencies:
|
|
28
28
|
name: faraday
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.8.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.8.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -154,3 +154,4 @@ signing_key:
|
|
154
154
|
specification_version: 4
|
155
155
|
summary: Build client libraries compliant with specification defined by jsonapi.org
|
156
156
|
test_files: []
|
157
|
+
has_rdoc:
|