graphiti 1.7.6 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b24f6cdaff2ef5d86296f1dea302a9cf9b0f9ac33486b7f00e90b6e81e8f7761
4
- data.tar.gz: 8f32c45f3a57cfa376527634724d2b0a4325f3c86d5de942f8719982fc2b3dab
3
+ metadata.gz: ddc4dbb09c7011dedf5683e72705a6ae4b643aa429ad9d2d67476af442be827b
4
+ data.tar.gz: d9957eddf4b8eafdd4f28122c5e4c37c52544718d527bc7a1800fed64bb8c3f2
5
5
  SHA512:
6
- metadata.gz: 9e6b37a1b10c8240f19c8dc5cf3c6cd366d4ffba77bd6192ca292d914b291af9bc2e55e29fdf352f60c8368495d7afcf627233d94a5c6ef6946a00cde6821d0a
7
- data.tar.gz: 075cabe78b3e2c8c668a58d85fc335f357e022e9d2d25aaaaf2cce87a01f7da0f6cd1108e7c8da4d42cb763cac450ee92f1a8419325f6997f1de3fee9d20f35d
6
+ metadata.gz: 2afe757fa90a81c4879848cc1acd38966eb5e58d16af25606b6780005bb02bdb05ce0fdc82c24121891cc87ac3e490266f9c43b018d9981b0cda0facfe52ed76
7
+ data.tar.gz: 75cdb65510070fd8af890956dbf0b18e4ba3ebd69f994f0d9c2c4b49f753e4537d5cc41bd9282dc0fefc8c1c9718abacf448ecad379faf52defaafff1c1ea52f
@@ -2,7 +2,7 @@ name: CI
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ master ]
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@v2
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@v2
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,12 @@
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
+
3
10
  ## [1.7.6](https://github.com/graphiti-api/graphiti/compare/v1.7.5...v1.7.6) (2024-11-06)
4
11
 
5
12
 
@@ -8,10 +8,17 @@ module Graphiti
8
8
  def endpoint
9
9
  if (endpoint = super)
10
10
  endpoint
11
- else
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
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.7.6"
2
+ VERSION = "1.7.7"
3
3
  end
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.6
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: 2024-11-06 00:00:00.000000000 Z
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: []