graphiti-activegraph 0.1.26 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/specs.yml +1 -1
- data/CHANGELOG.md +11 -0
- data/graphiti-activegraph.gemspec +17 -25
- data/lib/graphiti/active_graph/adapters/active_graph/function_sideload.rb +0 -8
- data/lib/graphiti/active_graph/resource/interface.rb +1 -1
- data/lib/graphiti/active_graph/resource_proxy.rb +2 -0
- data/lib/graphiti/active_graph/version.rb +1 -1
- metadata +24 -108
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba0c3b914198cabc31276a535e428887a5ff15ff557d3dbf1f40f7ef63d463ce
|
4
|
+
data.tar.gz: 29c6bcff84e546779872c7cd197727f8ecaad1a12ece312a5032e93cd90c3060
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d930274a4203b73d77a50281c1091e4a4e5cf0bb0b467398dab4b3e2edd59daa60e63d31250941f1c373d04e9136a46bcb2c80b7cd2a0b29dfd685691e4c64f
|
7
|
+
data.tar.gz: bb3211192ac37a29c578ab71076e57995ddb7768f233a571428c9088989e8b773d36536f6a8f1d9f4d13154c0bfe53aedd3e5916507451641aded67b83f7d36a
|
data/.github/workflows/specs.yml
CHANGED
@@ -18,7 +18,7 @@ jobs:
|
|
18
18
|
strategy:
|
19
19
|
fail-fast: false
|
20
20
|
matrix:
|
21
|
-
ruby-version: [ jruby ]
|
21
|
+
ruby-version: [ jruby, ruby ]
|
22
22
|
env:
|
23
23
|
JRUBY_OPTS: --debug -J-Xmx1280m -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF
|
24
24
|
steps:
|
data/CHANGELOG.md
CHANGED
@@ -62,6 +62,17 @@ Features:
|
|
62
62
|
|
63
63
|
- Added support to preload extra_fields for the main resource, replacing N+1 queries with a single query. This does not apply to sideloaded resources.
|
64
64
|
|
65
|
+
## 0.2.0 (01-24-2025)
|
66
|
+
|
67
|
+
Features:
|
68
|
+
|
69
|
+
- Added MRI support
|
70
|
+
- Added support for rails 8
|
71
|
+
|
72
|
+
Breaking changes:
|
73
|
+
|
74
|
+
- Removed support for graphiti <= 1.6.3
|
75
|
+
|
65
76
|
<!-- ### [version (DD-MM-YYYY)] -->
|
66
77
|
<!-- Breaking changes:-->
|
67
78
|
<!-- Features:-->
|
@@ -1,36 +1,28 @@
|
|
1
|
-
lib = File.expand_path(
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require
|
3
|
+
require 'graphiti/active_graph/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name =
|
6
|
+
spec.name = 'graphiti-activegraph'
|
7
7
|
spec.version = Graphiti::ActiveGraph::VERSION
|
8
|
-
spec.authors = [
|
9
|
-
spec.email = [
|
8
|
+
spec.authors = ['Hardik Joshi']
|
9
|
+
spec.email = ['hardikjoshi1991@gmail.com']
|
10
10
|
|
11
|
-
spec.summary =
|
12
|
-
spec.homepage =
|
13
|
-
spec.license =
|
11
|
+
spec.summary = 'Easily build jsonapi.org-compatible APIs for GraphDB'
|
12
|
+
spec.homepage = 'https://github.com/mrhardikjoshi/graphiti-activegraph'
|
13
|
+
spec.license = 'MIT'
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
|
-
spec.bindir =
|
16
|
+
spec.bindir = 'exe'
|
17
17
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
|
-
spec.require_paths = [
|
18
|
+
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_dependency
|
21
|
-
spec.add_dependency
|
22
|
-
spec.add_dependency "activesupport", ">= 6.0"
|
23
|
-
spec.add_dependency "zeitwerk"
|
20
|
+
spec.add_dependency 'graphiti', '>= 1.6.4'
|
21
|
+
spec.add_dependency 'activegraph', '>= 12.0.0.beta.5'
|
24
22
|
|
25
|
-
spec.add_development_dependency
|
26
|
-
spec.add_development_dependency
|
27
|
-
spec.add_development_dependency
|
28
|
-
|
29
|
-
|
30
|
-
spec.add_development_dependency "jar-dependencies", "~> 0.4.1"
|
31
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
-
spec.add_development_dependency "graphiti_spec_helpers", "1.0.beta.4"
|
33
|
-
spec.add_development_dependency "standard"
|
34
|
-
spec.add_development_dependency "pry"
|
35
|
-
spec.add_development_dependency "rspec", "~> 3.9.0"
|
23
|
+
spec.add_development_dependency 'graphiti_spec_helpers', '>= 1.0.0'
|
24
|
+
spec.add_development_dependency 'standard'
|
25
|
+
spec.add_development_dependency 'pry'
|
26
|
+
spec.add_development_dependency 'rake', '>= 10.0'
|
27
|
+
spec.add_development_dependency 'rspec', '>= 3.9.0'
|
36
28
|
end
|
@@ -4,7 +4,7 @@ module Graphiti::ActiveGraph
|
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
class_methods do
|
6
6
|
def build(params, base_scope = nil, opts = {})
|
7
|
-
|
7
|
+
validate_request!(params)
|
8
8
|
runner = ::Graphiti::Runner.new(self, params)
|
9
9
|
runner.proxy(base_scope, { single: true, raise_on_missing: true }.merge(opts) )
|
10
10
|
end
|
@@ -26,6 +26,8 @@ module Graphiti::ActiveGraph
|
|
26
26
|
@single ? data_for_preloaded_record : data_for_preloaded_records
|
27
27
|
end
|
28
28
|
|
29
|
+
alias_method :resolve_data, :data
|
30
|
+
|
29
31
|
def data_for_preloaded_record
|
30
32
|
@preloaded = @preloaded.is_a?(Array) ? @preloaded[0] : @preloaded
|
31
33
|
@resource.decorate_record(@preloaded)
|
metadata
CHANGED
@@ -1,106 +1,64 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiti-activegraph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
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: 2025-01-
|
11
|
+
date: 2025-01-27 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
|
-
version: 1.
|
19
|
-
name: graphiti
|
19
|
+
version: 1.6.4
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.6.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
requirement: !ruby/object:Gem::Requirement
|
29
|
-
requirements:
|
30
|
-
- - "~>"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 12.0.0.beta.4
|
33
28
|
name: activegraph
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 12.0.0.beta.4
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
29
|
requirement: !ruby/object:Gem::Requirement
|
43
30
|
requirements:
|
44
31
|
- - ">="
|
45
32
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
47
|
-
name: activesupport
|
33
|
+
version: 12.0.0.beta.5
|
48
34
|
type: :runtime
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - ">="
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
40
|
+
version: 12.0.0.beta.5
|
55
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
name: graphiti_spec_helpers
|
56
43
|
requirement: !ruby/object:Gem::Requirement
|
57
44
|
requirements:
|
58
45
|
- - ">="
|
59
46
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
61
|
-
name: zeitwerk
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
requirement: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '0.15'
|
75
|
-
name: faraday
|
47
|
+
version: 1.0.0
|
76
48
|
type: :development
|
77
49
|
prerelease: false
|
78
50
|
version_requirements: !ruby/object:Gem::Requirement
|
79
51
|
requirements:
|
80
|
-
- - "
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0.15'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
requirement: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '0.17'
|
89
|
-
name: kaminari
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
52
|
+
- - ">="
|
95
53
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
54
|
+
version: 1.0.0
|
97
55
|
- !ruby/object:Gem::Dependency
|
56
|
+
name: standard
|
98
57
|
requirement: !ruby/object:Gem::Requirement
|
99
58
|
requirements:
|
100
59
|
- - ">="
|
101
60
|
- !ruby/object:Gem::Version
|
102
61
|
version: '0'
|
103
|
-
name: bundler
|
104
62
|
type: :development
|
105
63
|
prerelease: false
|
106
64
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -109,54 +67,12 @@ dependencies:
|
|
109
67
|
- !ruby/object:Gem::Version
|
110
68
|
version: '0'
|
111
69
|
- !ruby/object:Gem::Dependency
|
112
|
-
|
113
|
-
requirements:
|
114
|
-
- - "~>"
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: 0.4.1
|
117
|
-
name: jar-dependencies
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: 0.4.1
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
requirement: !ruby/object:Gem::Requirement
|
127
|
-
requirements:
|
128
|
-
- - "~>"
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
version: '10.0'
|
131
|
-
name: rake
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '10.0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
requirement: !ruby/object:Gem::Requirement
|
141
|
-
requirements:
|
142
|
-
- - '='
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: 1.0.beta.4
|
145
|
-
name: graphiti_spec_helpers
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - '='
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 1.0.beta.4
|
153
|
-
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
154
71
|
requirement: !ruby/object:Gem::Requirement
|
155
72
|
requirements:
|
156
73
|
- - ">="
|
157
74
|
- !ruby/object:Gem::Version
|
158
75
|
version: '0'
|
159
|
-
name: standard
|
160
76
|
type: :development
|
161
77
|
prerelease: false
|
162
78
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -165,34 +81,34 @@ dependencies:
|
|
165
81
|
- !ruby/object:Gem::Version
|
166
82
|
version: '0'
|
167
83
|
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
168
85
|
requirement: !ruby/object:Gem::Requirement
|
169
86
|
requirements:
|
170
87
|
- - ">="
|
171
88
|
- !ruby/object:Gem::Version
|
172
|
-
version: '0'
|
173
|
-
name: pry
|
89
|
+
version: '10.0'
|
174
90
|
type: :development
|
175
91
|
prerelease: false
|
176
92
|
version_requirements: !ruby/object:Gem::Requirement
|
177
93
|
requirements:
|
178
94
|
- - ">="
|
179
95
|
- !ruby/object:Gem::Version
|
180
|
-
version: '0'
|
96
|
+
version: '10.0'
|
181
97
|
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
182
99
|
requirement: !ruby/object:Gem::Requirement
|
183
100
|
requirements:
|
184
|
-
- - "
|
101
|
+
- - ">="
|
185
102
|
- !ruby/object:Gem::Version
|
186
103
|
version: 3.9.0
|
187
|
-
name: rspec
|
188
104
|
type: :development
|
189
105
|
prerelease: false
|
190
106
|
version_requirements: !ruby/object:Gem::Requirement
|
191
107
|
requirements:
|
192
|
-
- - "
|
108
|
+
- - ">="
|
193
109
|
- !ruby/object:Gem::Version
|
194
110
|
version: 3.9.0
|
195
|
-
description:
|
111
|
+
description:
|
196
112
|
email:
|
197
113
|
- hardikjoshi1991@gmail.com
|
198
114
|
executables: []
|
@@ -237,7 +153,7 @@ homepage: https://github.com/mrhardikjoshi/graphiti-activegraph
|
|
237
153
|
licenses:
|
238
154
|
- MIT
|
239
155
|
metadata: {}
|
240
|
-
post_install_message:
|
156
|
+
post_install_message:
|
241
157
|
rdoc_options: []
|
242
158
|
require_paths:
|
243
159
|
- lib
|
@@ -252,8 +168,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
252
168
|
- !ruby/object:Gem::Version
|
253
169
|
version: '0'
|
254
170
|
requirements: []
|
255
|
-
rubygems_version: 3.3.
|
256
|
-
signing_key:
|
171
|
+
rubygems_version: 3.0.3.1
|
172
|
+
signing_key:
|
257
173
|
specification_version: 4
|
258
174
|
summary: Easily build jsonapi.org-compatible APIs for GraphDB
|
259
175
|
test_files: []
|