graphiti-activegraph 0.1.23 → 0.1.24
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f43302a065e6583232921abe819bcea82bce10d85893b1cc80d132dd169ebbc0
|
4
|
+
data.tar.gz: 4aa5cd9c5486ac50d4d0f8844433e931ce55998777aa740014e1a9281b797471
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5604a91acd31eeeecbe45bd7defa41fd2b24612be053463dec11e48d61cc81ed52005050ebb077d5ba9172e1bb012e2bf6d8354a1d27385aeb4276f66ce92283
|
7
|
+
data.tar.gz: 37ed8852db96fd2dc357afce65069c96ddd664b3c3d33628ab50dfa83aa43d82a5336d779d98d5df59a0f968c20ee7667c4593ce691f95724d548bc146805eba
|
data/CHANGELOG.md
CHANGED
@@ -44,12 +44,18 @@ Fixes:
|
|
44
44
|
|
45
45
|
- when rendering preloaded resources, we were not applying scoping. Now we are skipping around_scoping callback too.
|
46
46
|
|
47
|
-
## 0.1.
|
47
|
+
## 0.1.23 (29-04-2024)
|
48
48
|
|
49
49
|
Features:
|
50
50
|
|
51
51
|
- Added support for UUID
|
52
52
|
|
53
|
+
## 0.1.24 (18-06-2024)
|
54
|
+
|
55
|
+
Features:
|
56
|
+
|
57
|
+
- Added preliminary support for Sideload backed by function instead of model association
|
58
|
+
|
53
59
|
<!-- ### [version (DD-MM-YYYY)] -->
|
54
60
|
<!-- Breaking changes:-->
|
55
61
|
<!-- Features:-->
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class Graphiti::ActiveGraph::Adapters::ActiveGraph::FunctionSideload < Graphiti::ActiveGraph::Adapters::ActiveGraph::HasOneSideload
|
2
|
+
class_attribute :function_proc, :param_proc
|
3
|
+
|
4
|
+
def association?
|
5
|
+
false
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.function_proc(&blk)
|
9
|
+
self.function_proc = blk
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.param_proc(&blk)
|
13
|
+
self.param_proc = blk
|
14
|
+
end
|
15
|
+
end
|
@@ -45,10 +45,5 @@ module Graphiti::ActiveGraph
|
|
45
45
|
def sort_criteria(sort)
|
46
46
|
sort.split(',').map(&method(:sort_hash)).map(&method(:parse_sort_criteria_hash))
|
47
47
|
end
|
48
|
-
|
49
|
-
def update_include_hash(authorized_include_param)
|
50
|
-
@include_hash = authorized_include_param
|
51
|
-
@sideloads = nil
|
52
|
-
end
|
53
48
|
end
|
54
49
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiti-activegraph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hardik Joshi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -194,6 +194,7 @@ files:
|
|
194
194
|
- graphiti-activegraph.gemspec
|
195
195
|
- lib/graphiti-activegraph.rb
|
196
196
|
- lib/graphiti/active_graph/adapters/active_graph.rb
|
197
|
+
- lib/graphiti/active_graph/adapters/active_graph/function_sideload.rb
|
197
198
|
- lib/graphiti/active_graph/adapters/active_graph/has_many_sideload.rb
|
198
199
|
- lib/graphiti/active_graph/adapters/active_graph/has_one_sideload.rb
|
199
200
|
- lib/graphiti/active_graph/adapters/active_graph/polymorphic_belongs_to.rb
|