graphiti-activegraph 1.3.1 → 1.3.3
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 +4 -4
- data/.github/workflows/specs.yml +58 -59
- data/.gitignore +59 -59
- data/.hound.yml +4 -0
- data/.rspec +1 -1
- data/.rubocop.yml +6 -0
- data/CHANGELOG.md +71 -54
- data/CHANGELOG_PRE_1.0.0.md +70 -70
- data/Gemfile +3 -3
- data/LICENSE.txt +21 -21
- data/README.md +130 -130
- data/docs/deserializer.md +40 -40
- data/graphiti-activegraph.gemspec +35 -34
- data/lib/graphiti/active_graph/adapters/active_graph/function_sideload.rb +7 -7
- data/lib/graphiti/active_graph/adapters/active_graph/has_many_sideload.rb +7 -7
- data/lib/graphiti/active_graph/adapters/active_graph/has_one_sideload.rb +7 -7
- data/lib/graphiti/active_graph/adapters/active_graph/polymorphic_belongs_to.rb +11 -11
- data/lib/graphiti/active_graph/adapters/active_graph/sideload.rb +26 -26
- data/lib/graphiti/active_graph/adapters/active_graph.rb +183 -183
- data/lib/graphiti/active_graph/concerns/path_relationships.rb +44 -44
- data/lib/graphiti/active_graph/concerns/relationships.rb +15 -15
- data/lib/graphiti/active_graph/deserializer.rb +138 -138
- data/lib/graphiti/active_graph/extensions/context.rb +17 -17
- data/lib/graphiti/active_graph/extensions/grouping/params.rb +101 -52
- data/lib/graphiti/active_graph/extensions/query_dsl/performer.rb +38 -38
- data/lib/graphiti/active_graph/extensions/query_dsl/query_generator.rb +20 -20
- data/lib/graphiti/active_graph/extensions/query_params.rb +27 -27
- data/lib/graphiti/active_graph/extensions/resources/authorizationable.rb +29 -29
- data/lib/graphiti/active_graph/extensions/resources/payload_combinable.rb +24 -24
- data/lib/graphiti/active_graph/extensions/resources/preloadable.rb +19 -19
- data/lib/graphiti/active_graph/extensions/resources/rel.rb +19 -19
- data/lib/graphiti/active_graph/jsonapi_ext/include_directive.rb +66 -66
- data/lib/graphiti/active_graph/jsonapi_ext/serializable/resource_ext.rb +8 -8
- data/lib/graphiti/active_graph/query.rb +76 -76
- data/lib/graphiti/active_graph/request_validators/validator.rb +9 -9
- data/lib/graphiti/active_graph/resource.rb +103 -103
- data/lib/graphiti/active_graph/resource_proxy.rb +86 -86
- data/lib/graphiti/active_graph/resources/interface.rb +14 -14
- data/lib/graphiti/active_graph/resources/persistence.rb +25 -25
- data/lib/graphiti/active_graph/runner.rb +39 -39
- data/lib/graphiti/active_graph/scope.rb +28 -28
- data/lib/graphiti/active_graph/scoping/association_eager_load.rb +35 -34
- data/lib/graphiti/active_graph/scoping/filter.rb +49 -49
- data/lib/graphiti/active_graph/scoping/filterable.rb +12 -12
- data/lib/graphiti/active_graph/scoping/include.rb +48 -48
- data/lib/graphiti/active_graph/scoping/internal/extra_field_normalizer.rb +76 -76
- data/lib/graphiti/active_graph/scoping/internal/include_normalizer.rb +82 -82
- data/lib/graphiti/active_graph/scoping/internal/path_descriptor.rb +94 -94
- data/lib/graphiti/active_graph/scoping/internal/sort_normalizer.rb +54 -54
- data/lib/graphiti/active_graph/scoping/internal/sorting_aliases.rb +35 -35
- data/lib/graphiti/active_graph/scoping/internal/sparse_fields_eagerloading.rb +28 -28
- data/lib/graphiti/active_graph/serializer.rb +15 -15
- data/lib/graphiti/active_graph/sideload_resolve.rb +119 -119
- data/lib/graphiti/active_graph/util/parsers/rel_chain.rb +27 -27
- data/lib/graphiti/active_graph/util/relationship_payload.rb +33 -33
- data/lib/graphiti/active_graph/util/serializer_attribute.rb +17 -17
- data/lib/graphiti/active_graph/util/serializer_relationship.rb +28 -28
- data/lib/graphiti/active_graph/util/transformers/relation_param.rb +56 -56
- data/lib/graphiti/active_graph/version.rb +5 -5
- data/lib/graphiti/sidepost_configuration.rb +9 -9
- data/lib/graphiti-activegraph.rb +43 -43
- metadata +21 -5
data/lib/graphiti-activegraph.rb
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
require 'active_support'
|
|
2
|
-
require 'active_graph'
|
|
3
|
-
|
|
4
|
-
# Workaround for jruby prepend issue https://github.com/jruby/jruby/issues/6971
|
|
5
|
-
module Graphiti
|
|
6
|
-
module ActiveGraph
|
|
7
|
-
end
|
|
8
|
-
module Scoping
|
|
9
|
-
end
|
|
10
|
-
end
|
|
11
|
-
require 'graphiti/scoping/filterable'
|
|
12
|
-
require 'graphiti/resource/persistence'
|
|
13
|
-
require 'graphiti/resource/interface'
|
|
14
|
-
# End workaround for jruby prepend issue
|
|
15
|
-
|
|
16
|
-
require 'zeitwerk'
|
|
17
|
-
loader = Zeitwerk::Loader.for_gem(warn_on_extra_files: false)
|
|
18
|
-
loader.inflector.inflect 'version' => 'VERSION'
|
|
19
|
-
loader.ignore(File.expand_path('graphiti-activegraph.rb', __dir__))
|
|
20
|
-
loader.setup
|
|
21
|
-
|
|
22
|
-
Graphiti::Scoping::Filterable.prepend Graphiti::ActiveGraph::Scoping::Filterable
|
|
23
|
-
Graphiti::Resource::Persistence.prepend Graphiti::ActiveGraph::Resources::Persistence
|
|
24
|
-
Graphiti::Resource::Interface::ClassMethods.prepend Graphiti::ActiveGraph::Resources::Interface::ClassMethods
|
|
25
|
-
require 'graphiti'
|
|
26
|
-
Graphiti::Scoping::Filter.prepend Graphiti::ActiveGraph::Scoping::Filter
|
|
27
|
-
Graphiti::Serializer.prepend Graphiti::ActiveGraph::Serializer
|
|
28
|
-
Graphiti::Util::SerializerRelationship.prepend Graphiti::ActiveGraph::Util::SerializerRelationship
|
|
29
|
-
Graphiti::Util::SerializerAttribute.prepend Graphiti::ActiveGraph::Util::SerializerAttribute
|
|
30
|
-
Graphiti::Util::RelationshipPayload.prepend Graphiti::ActiveGraph::Util::RelationshipPayload
|
|
31
|
-
Graphiti::Query.prepend Graphiti::ActiveGraph::Query
|
|
32
|
-
Graphiti::ResourceProxy.prepend Graphiti::ActiveGraph::ResourceProxy
|
|
33
|
-
Graphiti::Runner.prepend Graphiti::ActiveGraph::Runner
|
|
34
|
-
Graphiti::Scope.prepend Graphiti::ActiveGraph::SideloadResolve
|
|
35
|
-
Graphiti::Configuration.include Graphiti::SidepostConfiguration
|
|
36
|
-
Graphiti::RequestValidators::Validator.prepend Graphiti::ActiveGraph::RequestValidators::Validator
|
|
37
|
-
|
|
38
|
-
unless RUBY_PLATFORM == 'java'
|
|
39
|
-
Graphiti.prepend Graphiti::ActiveGraph::Extensions::Context
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# JSONAPI extensions
|
|
43
|
-
JSONAPI::Serializable::Resource.prepend Graphiti::ActiveGraph::JsonapiExt::Serializable::ResourceExt
|
|
1
|
+
require 'active_support'
|
|
2
|
+
require 'active_graph'
|
|
3
|
+
|
|
4
|
+
# Workaround for jruby prepend issue https://github.com/jruby/jruby/issues/6971
|
|
5
|
+
module Graphiti
|
|
6
|
+
module ActiveGraph
|
|
7
|
+
end
|
|
8
|
+
module Scoping
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
require 'graphiti/scoping/filterable'
|
|
12
|
+
require 'graphiti/resource/persistence'
|
|
13
|
+
require 'graphiti/resource/interface'
|
|
14
|
+
# End workaround for jruby prepend issue
|
|
15
|
+
|
|
16
|
+
require 'zeitwerk'
|
|
17
|
+
loader = Zeitwerk::Loader.for_gem(warn_on_extra_files: false)
|
|
18
|
+
loader.inflector.inflect 'version' => 'VERSION'
|
|
19
|
+
loader.ignore(File.expand_path('graphiti-activegraph.rb', __dir__))
|
|
20
|
+
loader.setup
|
|
21
|
+
|
|
22
|
+
Graphiti::Scoping::Filterable.prepend Graphiti::ActiveGraph::Scoping::Filterable
|
|
23
|
+
Graphiti::Resource::Persistence.prepend Graphiti::ActiveGraph::Resources::Persistence
|
|
24
|
+
Graphiti::Resource::Interface::ClassMethods.prepend Graphiti::ActiveGraph::Resources::Interface::ClassMethods
|
|
25
|
+
require 'graphiti'
|
|
26
|
+
Graphiti::Scoping::Filter.prepend Graphiti::ActiveGraph::Scoping::Filter
|
|
27
|
+
Graphiti::Serializer.prepend Graphiti::ActiveGraph::Serializer
|
|
28
|
+
Graphiti::Util::SerializerRelationship.prepend Graphiti::ActiveGraph::Util::SerializerRelationship
|
|
29
|
+
Graphiti::Util::SerializerAttribute.prepend Graphiti::ActiveGraph::Util::SerializerAttribute
|
|
30
|
+
Graphiti::Util::RelationshipPayload.prepend Graphiti::ActiveGraph::Util::RelationshipPayload
|
|
31
|
+
Graphiti::Query.prepend Graphiti::ActiveGraph::Query
|
|
32
|
+
Graphiti::ResourceProxy.prepend Graphiti::ActiveGraph::ResourceProxy
|
|
33
|
+
Graphiti::Runner.prepend Graphiti::ActiveGraph::Runner
|
|
34
|
+
Graphiti::Scope.prepend Graphiti::ActiveGraph::SideloadResolve
|
|
35
|
+
Graphiti::Configuration.include Graphiti::SidepostConfiguration
|
|
36
|
+
Graphiti::RequestValidators::Validator.prepend Graphiti::ActiveGraph::RequestValidators::Validator
|
|
37
|
+
|
|
38
|
+
unless RUBY_PLATFORM == 'java'
|
|
39
|
+
Graphiti.prepend Graphiti::ActiveGraph::Extensions::Context
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# JSONAPI extensions
|
|
43
|
+
JSONAPI::Serializable::Resource.prepend Graphiti::ActiveGraph::JsonapiExt::Serializable::ResourceExt
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graphiti-activegraph
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hardik Joshi
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: graphiti
|
|
@@ -18,7 +18,7 @@ dependencies:
|
|
|
18
18
|
version: 1.6.4
|
|
19
19
|
- - "<="
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 1.
|
|
21
|
+
version: 1.9.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -28,7 +28,7 @@ dependencies:
|
|
|
28
28
|
version: 1.6.4
|
|
29
29
|
- - "<="
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
|
-
version: 1.
|
|
31
|
+
version: 1.9.0
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: activegraph
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -197,6 +197,20 @@ dependencies:
|
|
|
197
197
|
- - ">="
|
|
198
198
|
- !ruby/object:Gem::Version
|
|
199
199
|
version: 3.9.0
|
|
200
|
+
- !ruby/object:Gem::Dependency
|
|
201
|
+
name: ostruct
|
|
202
|
+
requirement: !ruby/object:Gem::Requirement
|
|
203
|
+
requirements:
|
|
204
|
+
- - ">="
|
|
205
|
+
- !ruby/object:Gem::Version
|
|
206
|
+
version: '0'
|
|
207
|
+
type: :development
|
|
208
|
+
prerelease: false
|
|
209
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
210
|
+
requirements:
|
|
211
|
+
- - ">="
|
|
212
|
+
- !ruby/object:Gem::Version
|
|
213
|
+
version: '0'
|
|
200
214
|
email:
|
|
201
215
|
- hardikjoshi1991@gmail.com
|
|
202
216
|
executables: []
|
|
@@ -205,7 +219,9 @@ extra_rdoc_files: []
|
|
|
205
219
|
files:
|
|
206
220
|
- ".github/workflows/specs.yml"
|
|
207
221
|
- ".gitignore"
|
|
222
|
+
- ".hound.yml"
|
|
208
223
|
- ".rspec"
|
|
224
|
+
- ".rubocop.yml"
|
|
209
225
|
- CHANGELOG.md
|
|
210
226
|
- CHANGELOG_PRE_1.0.0.md
|
|
211
227
|
- Gemfile
|
|
@@ -279,7 +295,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
279
295
|
- !ruby/object:Gem::Version
|
|
280
296
|
version: '0'
|
|
281
297
|
requirements: []
|
|
282
|
-
rubygems_version:
|
|
298
|
+
rubygems_version: 4.0.3
|
|
283
299
|
specification_version: 4
|
|
284
300
|
summary: Easily build jsonapi.org-compatible APIs for GraphDB
|
|
285
301
|
test_files: []
|