jsonapi-resources-anchor 2.7.0 → 2.8.0
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/lib/anchor/concerns/type_inferable.rb +11 -0
- data/lib/anchor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5c8a5c49493f148b52a4b539de6ac59e2d12f7b121a61ab8283580380c3556c
|
4
|
+
data.tar.gz: 01ea080fb8c943204767c75e161fc1c228a836270b0514b7b6caa03652d4cc87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a28c7c6f72c165c478f0c023ba2400ff510ea127d81f1b74e6e4cf8654d84e0a80cea124183738a30e436ae906ff74993b7d9727d0ce9b20e195902593377680
|
7
|
+
data.tar.gz: 9732bd9d2ac1ecf33824cde214333b6403dc1a03e2e420dbf8cc089d44fed39606ab97ca8312fed4f741ce817b8a763ee40b031be3d037395e910509ece5b5b0
|
@@ -12,6 +12,17 @@ module Anchor
|
|
12
12
|
@anchor_schema_name ||= name || anchor_default_schema_name
|
13
13
|
end
|
14
14
|
|
15
|
+
# @param reason [String] Reason to exclude from schema.
|
16
|
+
# @return [String]
|
17
|
+
def anchor_exclude_from_schema(reason: nil)
|
18
|
+
@anchor_exclude_from_schema ||= reason || (_abstract ? "Abstract." : nil)
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [Boolean] True if should be excluded.
|
22
|
+
def anchor_excluded_from_schema?
|
23
|
+
anchor_exclude_from_schema.present?
|
24
|
+
end
|
25
|
+
|
15
26
|
private
|
16
27
|
|
17
28
|
# @anchor_method_added_count[attribute] > 1 implies the attribute
|
data/lib/anchor/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonapi-resources-anchor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jsonapi-resources
|