graphiti 1.7.5 → 1.7.7
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/.github/workflows/ci.yml +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/graphiti/adapters/active_record.rb +1 -1
- data/lib/graphiti/resource/links.rb +8 -1
- data/lib/graphiti/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddc4dbb09c7011dedf5683e72705a6ae4b643aa429ad9d2d67476af442be827b
|
4
|
+
data.tar.gz: d9957eddf4b8eafdd4f28122c5e4c37c52544718d527bc7a1800fed64bb8c3f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2afe757fa90a81c4879848cc1acd38966eb5e58d16af25606b6780005bb02bdb05ce0fdc82c24121891cc87ac3e490266f9c43b018d9981b0cda0facfe52ed76
|
7
|
+
data.tar.gz: 75cdb65510070fd8af890956dbf0b18e4ba3ebd69f994f0d9c2c4b49f753e4537d5cc41bd9282dc0fefc8c1c9718abacf448ecad379faf52defaafff1c1ea52f
|
data/.github/workflows/ci.yml
CHANGED
@@ -2,7 +2,7 @@ name: CI
|
|
2
2
|
|
3
3
|
on:
|
4
4
|
push:
|
5
|
-
branches: [
|
5
|
+
branches: [master]
|
6
6
|
pull_request: {}
|
7
7
|
|
8
8
|
concurrency:
|
@@ -14,7 +14,7 @@ jobs:
|
|
14
14
|
name: Lint
|
15
15
|
runs-on: ubuntu-latest
|
16
16
|
steps:
|
17
|
-
- uses: actions/checkout@
|
17
|
+
- uses: actions/checkout@v3
|
18
18
|
- uses: ruby/setup-ruby@v1
|
19
19
|
with:
|
20
20
|
ruby-version: "3.0"
|
@@ -94,7 +94,7 @@ jobs:
|
|
94
94
|
- name: Set up Appraisal
|
95
95
|
if: matrix.appraisal
|
96
96
|
run: echo "APPRAISAL_INITIALIZED=true" >> $GITHUB_ENV
|
97
|
-
- uses: actions/checkout@
|
97
|
+
- uses: actions/checkout@v3
|
98
98
|
- uses: ruby/setup-ruby@v1
|
99
99
|
with:
|
100
100
|
ruby-version: ${{ matrix.ruby }}
|
@@ -111,4 +111,4 @@ jobs:
|
|
111
111
|
uses: benc-uk/workflow-dispatch@v1
|
112
112
|
with:
|
113
113
|
workflow: Generate New Release
|
114
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
114
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
graphiti changelog
|
2
2
|
|
3
|
+
## [1.7.7](https://github.com/graphiti-api/graphiti/compare/v1.7.6...v1.7.7) (2025-03-15)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* change class attribute behavior on endpoint method to work in ruby 3.2+ ([#493](https://github.com/graphiti-api/graphiti/issues/493)) ([04f1f3c](https://github.com/graphiti-api/graphiti/commit/04f1f3c783bfe18e6568cc21924d417a82234135))
|
9
|
+
|
10
|
+
## [1.7.6](https://github.com/graphiti-api/graphiti/compare/v1.7.5...v1.7.6) (2024-11-06)
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* Gem version check ([#483](https://github.com/graphiti-api/graphiti/issues/483)) ([68e2492](https://github.com/graphiti-api/graphiti/commit/68e2492032692d8bb928a733f8b0f8710be31c49))
|
16
|
+
|
3
17
|
## [1.7.5](https://github.com/graphiti-api/graphiti/compare/v1.7.4...v1.7.5) (2024-09-16)
|
4
18
|
|
5
19
|
|
@@ -304,7 +304,7 @@ module Graphiti
|
|
304
304
|
end
|
305
305
|
|
306
306
|
def close
|
307
|
-
if ::ActiveRecord.version > "7.2"
|
307
|
+
if ::ActiveRecord.version > Gem::Version.new("7.2")
|
308
308
|
::ActiveRecord::Base.connection_handler.clear_active_connections!
|
309
309
|
else
|
310
310
|
::ActiveRecord::Base.clear_active_connections!
|
@@ -8,10 +8,17 @@ module Graphiti
|
|
8
8
|
def endpoint
|
9
9
|
if (endpoint = super)
|
10
10
|
endpoint
|
11
|
-
|
11
|
+
elsif !@__skip_inference
|
12
12
|
self.endpoint = infer_endpoint
|
13
13
|
end
|
14
14
|
end
|
15
|
+
|
16
|
+
def endpoint=(value)
|
17
|
+
# changes introduced in Ruby 3.2 and above require some extra hoops
|
18
|
+
# to allow .endpoint = nil to work properly
|
19
|
+
@__skip_inference = value.blank?
|
20
|
+
super
|
21
|
+
end
|
15
22
|
end
|
16
23
|
|
17
24
|
included do
|
data/lib/graphiti/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jsonapi-serializable
|
@@ -204,7 +204,7 @@ dependencies:
|
|
204
204
|
- - '='
|
205
205
|
- !ruby/object:Gem::Version
|
206
206
|
version: 1.0.beta.4
|
207
|
-
description:
|
207
|
+
description:
|
208
208
|
email:
|
209
209
|
- richmolj@gmail.com
|
210
210
|
executables:
|
@@ -346,7 +346,7 @@ homepage: https://github.com/graphiti-api/graphiti
|
|
346
346
|
licenses:
|
347
347
|
- MIT
|
348
348
|
metadata: {}
|
349
|
-
post_install_message:
|
349
|
+
post_install_message:
|
350
350
|
rdoc_options: []
|
351
351
|
require_paths:
|
352
352
|
- lib
|
@@ -362,7 +362,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
362
362
|
version: '0'
|
363
363
|
requirements: []
|
364
364
|
rubygems_version: 3.3.27
|
365
|
-
signing_key:
|
365
|
+
signing_key:
|
366
366
|
specification_version: 4
|
367
367
|
summary: Easily build jsonapi.org-compatible APIs
|
368
368
|
test_files: []
|