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: 0d1c8158f02a4d52e4c7df5dcf37a7ad09e7d88387935f4cf291a7bd56a1f7c2
4
- data.tar.gz: 6d38b8563325e9b7d1842e02c61cd91a8a64c1f21aadc8090683ba458eaafcbd
3
+ metadata.gz: 5f44e1bcdbc48e8901c4cb5357fb7990b9941c0ad43717d12a0205d712648df0
4
+ data.tar.gz: 8ab3a2d26e535943cbf20897fe9d9c71d88de6c2c577d232bdbb4d603da1a188
5
5
  SHA512:
6
- metadata.gz: 85bcc81afbb65f6644f68b863c2d166b2271c2cfc38cf918de19c81ddbff101c6cc224ff26ea663434cd275ead05c3581753bc71187889fa9e397b6611b2b41d
7
- data.tar.gz: e423603fca5a6957dc9e3a6f4cab53626d7a0ff312274ce6b63d543da0e865c9ba7e33f3800e7b07a245cfe0f9cf5a28ee6ac39aaf07a7e28fd9c2080f6504cf
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/cerebris/jsonapi-resources/blob/d3c094b46a38650e583f40adc86474827b606fc7/lib/jsonapi/resource_common.rb?plain=1#L506
41
- # https://github.com/cerebris/jsonapi-resources/blob/d3c094b46a38650e583f40adc86474827b606fc7/lib/jsonapi/resource_common.rb?plain=1#L564
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.to_json) }
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
@@ -1,3 +1,3 @@
1
1
  module Anchor
2
- VERSION = "2.15.0"
2
+ VERSION = "2.15.1"
3
3
  end
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.0
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: 2025-12-14 00:00:00.000000000 Z
11
+ date: 2026-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jsonapi-resources