graphiti-activegraph 0.1.14 → 0.1.15

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: 8408ce87578c8d1bbe7d0dbdfc96849547a7a994c075fa7d562de1bd673c5e65
4
- data.tar.gz: ea954b8a98e7b82ad3e70683a914a8c536004be3a9ceb0ab219eb79289d59914
3
+ metadata.gz: e2edafb17b2501ff89298dacbccad4dd910a4858dd745e72e13d22413fff516d
4
+ data.tar.gz: 8f673d1994493e1ddb9ac250e9d2525d63cf723008c8020c34cc45beeee097c0
5
5
  SHA512:
6
- metadata.gz: b0f4942b81d16f1017ccd0e8e1fe5b308fb7783892186267bdf2ad15cbaefe15d65157910fc46c424e5efa819b7d55830c63b052b2aa68d037dec59c6ba6a03e
7
- data.tar.gz: edeaca909d5b5cad0781cf8cf2e268da49279d64203bb902e8e234cc32c71957af97d8e011c81096467ab4d55222bd135a28e676a2b1ae1f83e419bcb84352f9
6
+ metadata.gz: 71c4679cc8af12fa8a6300b5b931b2d3192fb2cf403aeb9bb83f3675d64bb27956f117bfbc09ead957285571a1b18ba4e5c069e3217aafe4f457601d780aa9d1
7
+ data.tar.gz: e5b6556f6fad1c08c4741c807431b39339daa2ec5e7ede0673188d362d44593d65d2e88060429dbf39c0c338a5098628c4228bfe02f1f255415a017ee321cbff
data/CHANGELOG.md CHANGED
@@ -20,7 +20,13 @@ Features:
20
20
 
21
21
  - Adding unpaginated query to resource proxy with preloaded records. This will help in getting count on API.
22
22
 
23
- <!-- ### [version (DD-MM-YYYY)](diff_link) -->
23
+ ## 0.1.15 (21-06-2022)
24
+
25
+ Features:
26
+
27
+ - Relationships mentioned in sparse field param (and not in include), will now be returned in relationship block of response
28
+
29
+ <!-- ### [version (DD-MM-YYYY)] -->
24
30
  <!-- Breaking changes:-->
25
31
  <!-- Features:-->
26
32
  <!-- Fixes:-->
@@ -0,0 +1,8 @@
1
+ module Graphiti::ActiveGraph::JsonapiExt::Serializable
2
+ module ResourceExt
3
+ def as_jsonapi(fields: nil, include: [])
4
+ include.merge(fields) if fields.present?
5
+ super(fields: fields, include: include)
6
+ end
7
+ end
8
+ end
@@ -1,5 +1,5 @@
1
1
  module Graphiti
2
2
  module ActiveGraph
3
- VERSION = '0.1.14'
3
+ VERSION = '0.1.15'
4
4
  end
5
5
  end
@@ -11,6 +11,10 @@ module Graphiti
11
11
  end
12
12
  module Util
13
13
  end
14
+ module JsonapiExt
15
+ module Serializable
16
+ end
17
+ end
14
18
  end
15
19
  end
16
20
  # End workaround
@@ -39,3 +43,6 @@ Graphiti::Resource.extend Graphiti::ActiveGraph::Resource
39
43
  Graphiti::ResourceProxy.prepend Graphiti::ActiveGraph::ResourceProxy
40
44
  Graphiti::Runner.prepend Graphiti::ActiveGraph::Runner
41
45
  Graphiti::Scope.prepend Graphiti::ActiveGraph::SideloadResolve
46
+
47
+ # JSONAPI extensions
48
+ JSONAPI::Serializable::Resource.prepend Graphiti::ActiveGraph::JsonapiExt::Serializable::ResourceExt
metadata CHANGED
@@ -1,22 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti-activegraph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hardik Joshi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-03 00:00:00.000000000 Z
11
+ date: 2022-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: graphiti
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - "~>"
17
18
  - !ruby/object:Gem::Version
18
19
  version: 1.2.0
19
- name: graphiti
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
@@ -25,12 +25,12 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.2.0
27
27
  - !ruby/object:Gem::Dependency
28
+ name: concurrent-ruby
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - "~>"
31
32
  - !ruby/object:Gem::Version
32
33
  version: '1.0'
33
- name: concurrent-ruby
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
@@ -39,12 +39,12 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.0'
41
41
  - !ruby/object:Gem::Dependency
42
+ name: activesupport
42
43
  requirement: !ruby/object:Gem::Requirement
43
44
  requirements:
44
45
  - - ">="
45
46
  - !ruby/object:Gem::Version
46
47
  version: '4.1'
47
- name: activesupport
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
@@ -53,12 +53,12 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '4.1'
55
55
  - !ruby/object:Gem::Dependency
56
+ name: zeitwerk
56
57
  requirement: !ruby/object:Gem::Requirement
57
58
  requirements:
58
59
  - - ">="
59
60
  - !ruby/object:Gem::Version
60
61
  version: '0'
61
- name: zeitwerk
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
@@ -67,12 +67,12 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
+ name: faraday
70
71
  requirement: !ruby/object:Gem::Requirement
71
72
  requirements:
72
73
  - - "~>"
73
74
  - !ruby/object:Gem::Version
74
75
  version: '0.15'
75
- name: faraday
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
@@ -81,12 +81,12 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.15'
83
83
  - !ruby/object:Gem::Dependency
84
+ name: kaminari
84
85
  requirement: !ruby/object:Gem::Requirement
85
86
  requirements:
86
87
  - - "~>"
87
88
  - !ruby/object:Gem::Version
88
89
  version: '0.17'
89
- name: kaminari
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
@@ -95,12 +95,12 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0.17'
97
97
  - !ruby/object:Gem::Dependency
98
+ name: bundler
98
99
  requirement: !ruby/object:Gem::Requirement
99
100
  requirements:
100
101
  - - ">="
101
102
  - !ruby/object:Gem::Version
102
103
  version: '0'
103
- name: bundler
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
@@ -109,12 +109,12 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
+ name: rake
112
113
  requirement: !ruby/object:Gem::Requirement
113
114
  requirements:
114
115
  - - "~>"
115
116
  - !ruby/object:Gem::Version
116
117
  version: '10.0'
117
- name: rake
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
@@ -123,12 +123,12 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '10.0'
125
125
  - !ruby/object:Gem::Dependency
126
+ name: activemodel
126
127
  requirement: !ruby/object:Gem::Requirement
127
128
  requirements:
128
129
  - - ">="
129
130
  - !ruby/object:Gem::Version
130
131
  version: '4.1'
131
- name: activemodel
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
@@ -137,12 +137,12 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '4.1'
139
139
  - !ruby/object:Gem::Dependency
140
+ name: graphiti_spec_helpers
140
141
  requirement: !ruby/object:Gem::Requirement
141
142
  requirements:
142
143
  - - '='
143
144
  - !ruby/object:Gem::Version
144
145
  version: 1.0.beta.4
145
- name: graphiti_spec_helpers
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
@@ -151,12 +151,12 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: 1.0.beta.4
153
153
  - !ruby/object:Gem::Dependency
154
+ name: standard
154
155
  requirement: !ruby/object:Gem::Requirement
155
156
  requirements:
156
157
  - - ">="
157
158
  - !ruby/object:Gem::Version
158
159
  version: '0'
159
- name: standard
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
@@ -165,12 +165,12 @@ dependencies:
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
+ name: rspec
168
169
  requirement: !ruby/object:Gem::Requirement
169
170
  requirements:
170
171
  - - "~>"
171
172
  - !ruby/object:Gem::Version
172
173
  version: 3.9.0
173
- name: rspec
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
@@ -178,7 +178,7 @@ dependencies:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: 3.9.0
181
- description:
181
+ description:
182
182
  email:
183
183
  - hardikjoshi1991@gmail.com
184
184
  executables: []
@@ -199,6 +199,7 @@ files:
199
199
  - lib/graphiti/active_graph/adapters/active_graph/polymorphic_belongs_to.rb
200
200
  - lib/graphiti/active_graph/adapters/active_graph/sideload.rb
201
201
  - lib/graphiti/active_graph/deserializer.rb
202
+ - lib/graphiti/active_graph/jsonapi_ext/serializable/resource_ext.rb
202
203
  - lib/graphiti/active_graph/query.rb
203
204
  - lib/graphiti/active_graph/resource.rb
204
205
  - lib/graphiti/active_graph/resource/persistence.rb
@@ -215,7 +216,7 @@ homepage: https://github.com/mrhardikjoshi/graphiti-activegraph
215
216
  licenses:
216
217
  - MIT
217
218
  metadata: {}
218
- post_install_message:
219
+ post_install_message:
219
220
  rdoc_options: []
220
221
  require_paths:
221
222
  - lib
@@ -230,8 +231,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
231
  - !ruby/object:Gem::Version
231
232
  version: '0'
232
233
  requirements: []
233
- rubygems_version: 3.0.6
234
- signing_key:
234
+ rubygems_version: 3.0.3.1
235
+ signing_key:
235
236
  specification_version: 4
236
237
  summary: Easily build jsonapi.org-compatible APIs for GraphDB
237
238
  test_files: []