graphiti-activegraph 0.1.23 → 0.1.24

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d88ca37172c5b507a37ae3744f0a2ac86485b47f5494f0e080f6dbe7e7137738
4
- data.tar.gz: b78b22b43bc9913ded8262a5d5d16fa2a6d6d5dbc0d8f4b0cfa094231289f858
3
+ metadata.gz: f43302a065e6583232921abe819bcea82bce10d85893b1cc80d132dd169ebbc0
4
+ data.tar.gz: 4aa5cd9c5486ac50d4d0f8844433e931ce55998777aa740014e1a9281b797471
5
5
  SHA512:
6
- metadata.gz: 663ff44a72d8f833f5156e3dd0d3a960c3c77220a0b9191b20afc15104013d267f92c9ff1ed22927f405199c3bc074fa92bbed4d5f57063150a778f7efe5dcc9
7
- data.tar.gz: 9f19e81f5b2c7fd70585a3ef493a83c06080df69593ae23bd56fd723950ef87a2ecd4c05a6c475c87e1efc627a256aad4597a0c8b77fc731ad7a04b380030892
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.22 (29-04-2024)
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
@@ -1,5 +1,5 @@
1
1
  module Graphiti
2
2
  module ActiveGraph
3
- VERSION = '0.1.23'
3
+ VERSION = '0.1.24'
4
4
  end
5
5
  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.23
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-04-29 00:00:00.000000000 Z
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