graphiti 1.7.2 → 1.7.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ef6f59bab6be83f8be9f2dd2f2350d49abac04ad0ca7338bb1d52aa88cec27d
4
- data.tar.gz: 2c904533a08f64faa13b5aed12467da757c87ed842ba8680ecf86052ddd37e86
3
+ metadata.gz: 68314adc7bafc6f84acb650170ba49eea754a49c2ff1e29d25945cbba2f04a69
4
+ data.tar.gz: fce6c8da1d5acf3ad9951162f5332b2f6faa2a700a3adc2597dc26dad4409211
5
5
  SHA512:
6
- metadata.gz: f30b06bb304bef743ce7926df28187f8772b5c803e8407c7cacaa810cff9ac9880046efa8c73f3d2e911a9088f04ca613fd32e7a1e1c3f41ae755b68cc25a4f3
7
- data.tar.gz: 13b6980e5be70675eabed5cf9d799a02281072abf93e35cc8a0266d58adf1d029d7e114394ba973a1e5531ab66d7f091ecaa97005dd001cb320ca1e3961d9146
6
+ metadata.gz: 9143fc1034e909a0b134b45b3e07209ff5c56b529e3092d4bb05ec5e2568f3bdd4206bca4a4d01fd6fbf38fa20cf729200de92a22079f6242ddc84775bd4e8a3
7
+ data.tar.gz: 822a99012280b13b0a74b5a3f4ce64247dde277a7fe97e20690a606bfabd66034af9a574807cda965fbed13373103b5f876cc02cfd86c6702fc07309a44ef0a4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  graphiti changelog
2
2
 
3
+ ## [1.7.4](https://github.com/graphiti-api/graphiti/compare/v1.7.3...v1.7.4) (2024-09-11)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * update ActiveRecord adapter w/ support for Rails 7.2+ ([#478](https://github.com/graphiti-api/graphiti/issues/478)) ([8313e33](https://github.com/graphiti-api/graphiti/commit/8313e3359f0dde28d9940867c7ded964db4c854d))
9
+
10
+ ## [1.7.3](https://github.com/graphiti-api/graphiti/compare/v1.7.2...v1.7.3) (2024-06-26)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * require OpenStruct explicitly ([#475](https://github.com/graphiti-api/graphiti/issues/475)) ([e0fa18a](https://github.com/graphiti-api/graphiti/commit/e0fa18a8d7f051e385e6e081f79f2ecae92a9260))
16
+
3
17
  ## [1.7.2](https://github.com/graphiti-api/graphiti/compare/v1.7.1...v1.7.2) (2024-06-11)
4
18
 
5
19
 
@@ -304,7 +304,11 @@ module Graphiti
304
304
  end
305
305
 
306
306
  def close
307
- ::ActiveRecord::Base.clear_active_connections!
307
+ if ::ActiveRecord.version > 7.2
308
+ ::ActiveRecord::Base.connection_handler.clear_active_connections!
309
+ else
310
+ ::ActiveRecord::Base.clear_active_connections!
311
+ end
308
312
  end
309
313
 
310
314
  def can_group?
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.7.2"
2
+ VERSION = "1.7.4"
3
3
  end
data/lib/graphiti.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require "json"
2
2
  require "forwardable"
3
3
  require "uri"
4
+ require "ostruct" unless defined?(::OpenStruct)
4
5
 
5
6
  require "active_support/version"
6
7
  require "active_support/deprecation"
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.2
4
+ version: 1.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-11 00:00:00.000000000 Z
11
+ date: 2024-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jsonapi-serializable