jsonapi-resources-anchor 2.15.0 → 2.15.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5f44e1bcdbc48e8901c4cb5357fb7990b9941c0ad43717d12a0205d712648df0
|
|
4
|
+
data.tar.gz: 8ab3a2d26e535943cbf20897fe9d9c71d88de6c2c577d232bdbb4d603da1a188
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 657bf977322522f66ce8e834bedb62d93ede3d518d006827ae1e22e05d0ae50c8e717ba6cd4b63b08d17142024696785abd5472775e64179701680bd1bd72757
|
|
7
|
+
data.tar.gz: bb9a45159038719f0ded55b3d9d7fd54e166a2acb880229b777c2bb7aee90205604484ea3fb7a8a9ce8a3dade1eac7e368ccc9dc832aa35585b527cbf87cec95
|
|
@@ -37,8 +37,8 @@ module Anchor
|
|
|
37
37
|
|
|
38
38
|
# inspiration from https://github.com/rmosolgo/graphql-ruby/blob/eda9b3d62b9e507787e590f0f179ec9d6956255a/lib/graphql/schema/member/base_dsl_methods.rb?plain=1#L102
|
|
39
39
|
def anchor_default_schema_name
|
|
40
|
-
# https://github.com/
|
|
41
|
-
# https://github.com/
|
|
40
|
+
# https://github.com/JSONAPI-Resources/jsonapi-resources/blob/d3c094b46a38650e583f40adc86474827b606fc7/lib/jsonapi/resource_common.rb?plain=1#L506
|
|
41
|
+
# https://github.com/JSONAPI-Resources/jsonapi-resources/blob/d3c094b46a38650e583f40adc86474827b606fc7/lib/jsonapi/resource_common.rb?plain=1#L564
|
|
42
42
|
return _type.to_s.classify if Anchor.config.use_type_as_schema_name
|
|
43
43
|
|
|
44
44
|
s_name = name.split("::").last
|
|
@@ -36,7 +36,7 @@ module Anchor::TypeScript
|
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
def save_sha
|
|
39
|
-
File.open(sha_hash_path, "w") { |f| f.write(@generator.sha_hash
|
|
39
|
+
File.open(sha_hash_path, "w") { |f| f.write("#{JSON.pretty_generate(@generator.sha_hash)}\n") }
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
# @return [String, nil] file name of file that is written to. nil if not written to
|
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.15.
|
|
4
|
+
version: 2.15.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-03-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jsonapi-resources
|