activegraph 12.0.0 → 12.0.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 +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile +7 -1
- data/README.md +9 -0
- data/activegraph.gemspec +1 -1
- data/lib/active_graph/shared/type_converters.rb +4 -2
- data/lib/active_graph/version.rb +1 -1
- data/lib/active_graph.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f4b65d35d5aad8b65eb4893dce27de5f5c51768d22a4d888f2c6b6b422e7675f
|
|
4
|
+
data.tar.gz: 368d9faf2918e4603aeffdbe8095b1a2c83d284b40d80f3c550a6eee6307ad81
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6f8734697c2c335748a515f2cd124fed3083ed7a03e322909df97e58d8b83e922bd34f579f1ac906d6cb674e16e77250cbfe442d9d7bd2d0ae89211f58cefa9
|
|
7
|
+
data.tar.gz: 382bc1bc3724db5a4892fa184a0d108ebbc36ff029651ed4a03f3e1b1f4a9793bcafa52610d8695ac2932570067b86b2cea70b3b8ebbfd5ac5304b4926d73245
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file.
|
|
|
3
3
|
This file should follow the standards specified on [http://keepachangelog.com/]
|
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
|
6
|
+
## [12.0.1] (2026-10-29)
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
- Updated dependency 'neo4j-ruby-driver' to stable release version 6.2.1
|
|
10
|
+
- Make JSON properties work with json >= 3.0 ([#1748](https://github.com/neo4jrb/activegraph/pull/1748))
|
|
11
|
+
- Update 'neo4j-ruby-driver' version to 6.3.0 ([#1747](https://github.com/neo4jrb/activegraph/pull/1747))
|
|
12
|
+
|
|
6
13
|
## [12.0.0] (2026-08-16)
|
|
7
14
|
|
|
8
15
|
### Changed
|
data/Gemfile
CHANGED
|
@@ -3,7 +3,13 @@ source 'http://rubygems.org'
|
|
|
3
3
|
gemspec
|
|
4
4
|
|
|
5
5
|
active_model_version = ENV['ACTIVE_MODEL_VERSION']
|
|
6
|
-
|
|
6
|
+
if active_model_version&.length&.positive?
|
|
7
|
+
gem 'activemodel', "~> #{active_model_version}"
|
|
8
|
+
# ActiveSupport < 8.1 passes the long-removed `quirks_mode` option to JSON.generate, which json >= 3
|
|
9
|
+
# rejects (fixed upstream in Rails 8.1 and on 8-0-stable, unreleased as of 8.0.5.1). Apps on those
|
|
10
|
+
# Rails versions must hold json below 3 themselves; mirror that for the matching CI rows.
|
|
11
|
+
gem 'json', '< 3' if Gem::Version.new(active_model_version) < Gem::Version.new('8.1')
|
|
12
|
+
end
|
|
7
13
|
|
|
8
14
|
group 'test' do
|
|
9
15
|
# gem 'coveralls', require: false
|
data/README.md
CHANGED
|
@@ -76,6 +76,15 @@ Neo4j.rb v4.1.0 was released in January of 2015. Its changes are outlined [here]
|
|
|
76
76
|
| Causal Cluster | No | No | No | No | Yes |
|
|
77
77
|
| Embedded JVM support | Yes | Yes | Yes | Yes | via bolt only |
|
|
78
78
|
|
|
79
|
+
## Rails version support
|
|
80
|
+
|
|
81
|
+
activegraph 12 is tested against ActiveModel 7.1, 7.2, 8.0 and 8.1.
|
|
82
|
+
|
|
83
|
+
Note that ActiveSupport < 8.1 is incompatible with the `json` gem >= 3.0 (its JSON encoder passes an option
|
|
84
|
+
that json 3 rejects, see [rails/rails#54224](https://github.com/rails/rails/pull/54224)). This affects every
|
|
85
|
+
`to_json` call in such an application, not only activegraph's JSON-typed properties, so on Rails < 8.1 pin
|
|
86
|
+
`gem 'json', '< 3'` in your Gemfile until you upgrade to a Rails release that includes the fix.
|
|
87
|
+
|
|
79
88
|
## Documentation
|
|
80
89
|
|
|
81
90
|
* [Website](http://neo4jrb.io/) (for an introduction)
|
data/activegraph.gemspec
CHANGED
|
@@ -33,7 +33,7 @@ DESCRIPTION
|
|
|
33
33
|
s.add_dependency('activemodel')
|
|
34
34
|
s.add_dependency('benchmark')
|
|
35
35
|
s.add_dependency('i18n', '!= 1.8.8') # https://github.com/jruby/jruby/issues/6547
|
|
36
|
-
s.add_dependency('neo4j-ruby-driver', '~> 6.
|
|
36
|
+
s.add_dependency('neo4j-ruby-driver', '~> 6.3.0')
|
|
37
37
|
s.add_dependency('orm_adapter', '>= 0.5.0')
|
|
38
38
|
s.add_development_dependency('guard')
|
|
39
39
|
s.add_development_dependency('guard-rspec')
|
|
@@ -298,11 +298,13 @@ module ActiveGraph::Shared
|
|
|
298
298
|
end
|
|
299
299
|
|
|
300
300
|
def to_db(value)
|
|
301
|
-
value
|
|
301
|
+
ActiveSupport::JSON.encode(value)
|
|
302
302
|
end
|
|
303
303
|
|
|
304
304
|
def to_ruby(value)
|
|
305
|
-
|
|
305
|
+
# `quirks_mode` was removed from the json gem in 2.0 (scalar top-level values are accepted
|
|
306
|
+
# by default since) and json >= 3.0 raises on unknown options.
|
|
307
|
+
JSON.parse(value)
|
|
306
308
|
end
|
|
307
309
|
end
|
|
308
310
|
end
|
data/lib/active_graph/version.rb
CHANGED
data/lib/active_graph.rb
CHANGED
|
@@ -15,6 +15,7 @@ require 'active_support/core_ext/integer/time'
|
|
|
15
15
|
require 'active_support/core_ext/string/conversions'
|
|
16
16
|
require 'active_support/inflector'
|
|
17
17
|
require 'active_support/inflector/inflections'
|
|
18
|
+
require 'active_support/json'
|
|
18
19
|
require 'active_support/notifications'
|
|
19
20
|
require 'json'
|
|
20
21
|
require 'neo4j/driver'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activegraph
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 12.0.
|
|
4
|
+
version: 12.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andreas Ronge, Brian Underwood, Chris Grigg, Heinrich Klobuczek
|
|
@@ -57,14 +57,14 @@ dependencies:
|
|
|
57
57
|
requirements:
|
|
58
58
|
- - "~>"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: 6.
|
|
60
|
+
version: 6.3.0
|
|
61
61
|
type: :runtime
|
|
62
62
|
prerelease: false
|
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - "~>"
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: 6.
|
|
67
|
+
version: 6.3.0
|
|
68
68
|
- !ruby/object:Gem::Dependency
|
|
69
69
|
name: orm_adapter
|
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -431,7 +431,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
431
431
|
- !ruby/object:Gem::Version
|
|
432
432
|
version: '0'
|
|
433
433
|
requirements: []
|
|
434
|
-
rubygems_version: 4.0.
|
|
434
|
+
rubygems_version: 4.0.20
|
|
435
435
|
specification_version: 4
|
|
436
436
|
summary: A graph database for Ruby
|
|
437
437
|
test_files: []
|