Skip to content

Commit c35cefe

Browse files
github action and changelog correction (#39)
* Update specs.yml * dependency moved from Gemfile to gemspec * updated changelog
1 parent 1ea2881 commit c35cefe

File tree

5 files changed

+95
-77
lines changed

5 files changed

+95
-77
lines changed

.github/workflows/specs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
ruby-version: [ jruby, ruby ]
21+
ruby-version: [ ruby-3.4.2, ruby-3.3.7, ruby-3.2.7 ] # Removed 'jruby' till https://github.com/jruby/jruby/issues/8642 is fixed
2222
neo4j: [ 5.23.0 ]
23-
active_model: [ 7.1.4, 7.2.1 ]
2423
include:
2524
- ruby: jruby
2625
java-version: 17
@@ -29,19 +28,24 @@ jobs:
2928
steps:
3029
- name: Start neo4j
3130
run: docker run --name neo4j --env NEO4J_AUTH=neo4j/password --env NEO4J_ACCEPT_LICENSE_AGREEMENT=yes --env NEO4J_dbms_directories_import= -p7687:7687 -p7474:7474 -v `pwd`/tmp:/var/lib/neo4j/import --rm neo4j:${{ matrix.neo4j }}-enterprise &
31+
3232
- uses: actions/checkout@v3
33+
3334
- name: Set up Ruby
3435
uses: ruby/setup-ruby@v1
3536
with:
3637
ruby-version: ${{ matrix.ruby-version }}
3738
bundler-cache: true
39+
3840
- name: Set up Java
3941
uses: actions/setup-java@v4
4042
if: matrix.java-version
4143
with:
4244
distribution: 'temurin'
4345
java-version: ${{ matrix.java-version }}
46+
4447
- name: Wait for neo4j
4548
run: while [ $((curl localhost:7474/ > /dev/null 2>&1); echo $?) -ne 0 ]; do sleep 1; done
49+
4650
- name: Run tests
4751
run: bundle exec rspec

CHANGELOG.md

Lines changed: 17 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,27 @@
1-
## Unreleased
1+
# Changelog
22

3-
-
3+
All notable changes to this project will be documented in this file.
44

5-
## 0.1.8 (09-06-2021)
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
67

7-
Features:
8+
## [Unreleased]
89

9-
- Added support for polymorphic relationship.
10+
## [1.0.0] - 2025-03-18
1011

11-
## 0.1.13 (21-12-2021)
12+
### Added
1213

13-
Features:
14+
- **MRI Support**: Introduced compatibility with MRI (Matz's Ruby Interpreter), expanding the gem's usability beyond JRuby (#38).
15+
- **Documentation Updates**: Expanded the README to provide clearer guidance on gem usage and integration (#38).
16+
- **Sideloading Workflow**: Enhanced scoping mechanisms and added support for eager loading associations to improve data retrieval efficiency and flexibility (#38).
1417

15-
- Supports Jruby-9.3.2.0
18+
### Changed
19+
- **Resource Class**: Instead of modifying the `Graphiti::Resource` class, we now define `Graphiti::ActiveGraph::Resource`,
20+
which must be inherited in all resource classes to enable ActiveGraph support (#38).
1621

17-
## 0.1.14 (21-12-2021)
22+
---
1823

19-
Features:
24+
*Note: For details on changes prior to version 1.0.0, please refer to the [`CHANGELOG_PRE_1.0.0.md`](CHANGELOG_PRE_1.0.0.md) file.*
2025

21-
- Adding unpaginated query to resource proxy with preloaded records. This will help in getting count on API.
22-
23-
## 0.1.15 (21-06-2022)
24-
25-
Features:
26-
27-
- Relationships mentioned in sparse field param (and not in include), will now be returned in relationship block of response
28-
29-
## 0.1.20
30-
31-
Features:
32-
33-
- With graphiti config variable "allow_sidepost" you can allow/disallow sideposting, by default it is allowed.
34-
35-
## 0.1.21
36-
37-
Fixes:
38-
39-
- Runner#proxy keyword arguments
40-
41-
## 0.1.22
42-
43-
Fixes:
44-
45-
- when rendering preloaded resources, we were not applying scoping. Now we are skipping around_scoping callback too.
46-
47-
## 0.1.23 (29-04-2024)
48-
49-
Features:
50-
51-
- Added support for UUID
52-
53-
## 0.1.24 (18-06-2024)
54-
55-
Features:
56-
57-
- Added preliminary support for Sideload backed by function instead of model association
58-
59-
## 0.1.25 (04-12-2024)
60-
61-
Features:
62-
63-
- Added support to preload extra_fields for the main resource, replacing N+1 queries with a single query. This does not apply to sideloaded resources.
64-
65-
## 0.2.0 (01-24-2025)
66-
67-
Features:
68-
69-
- Added MRI support
70-
- Added support for rails 8
71-
72-
Breaking changes:
73-
74-
- Removed support for graphiti <= 1.6.3
75-
76-
<!-- ### [version (DD-MM-YYYY)] -->
77-
<!-- Breaking changes:-->
78-
<!-- Features:-->
79-
<!-- Fixes:-->
80-
<!-- Misc:-->
26+
[unreleased]: https://github.com/mrhardikjoshi/graphiti-activegraph/compare/v1.0.0...master
27+
[1.0.0]: https://github.com/mrhardikjoshi/graphiti-activegraph/compare/9f837108ae57287c65b0f6fd2609dd56a95cd461...v1.0.0

CHANGELOG_PRE_1.0.0.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
## 0.1.8 (09-06-2021)
2+
3+
Features:
4+
5+
- Added support for polymorphic relationship.
6+
7+
## 0.1.13 (21-12-2021)
8+
9+
Features:
10+
11+
- Supports Jruby-9.3.2.0
12+
13+
## 0.1.14 (21-12-2021)
14+
15+
Features:
16+
17+
- Adding unpaginated query to resource proxy with preloaded records. This will help in getting count on API.
18+
19+
## 0.1.15 (21-06-2022)
20+
21+
Features:
22+
23+
- Relationships mentioned in sparse field param (and not in include), will now be returned in relationship block of response
24+
25+
## 0.1.20
26+
27+
Features:
28+
29+
- With graphiti config variable "allow_sidepost" you can allow/disallow sideposting, by default it is allowed.
30+
31+
## 0.1.21
32+
33+
Fixes:
34+
35+
- Runner#proxy keyword arguments
36+
37+
## 0.1.22
38+
39+
Fixes:
40+
41+
- when rendering preloaded resources, we were not applying scoping. Now we are skipping around_scoping callback too.
42+
43+
## 0.1.23 (29-04-2024)
44+
45+
Features:
46+
47+
- Added support for UUID
48+
49+
## 0.1.24 (18-06-2024)
50+
51+
Features:
52+
53+
- Added preliminary support for Sideload backed by function instead of model association
54+
55+
## 0.1.25 (04-12-2024)
56+
57+
Features:
58+
59+
- Added support to preload extra_fields for the main resource, replacing N+1 queries with a single query. This does not apply to sideloaded resources.
60+
61+
## 0.2.0 (01-24-2025)
62+
63+
Features:
64+
65+
- Added MRI support
66+
- Added support for rails 8
67+
68+
Breaking changes:
69+
70+
- Removed support for graphiti <= 1.6.3

Gemfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
source "https://rubygems.org"
22

33
gemspec
4-
5-
group :test do
6-
gem 'factory_bot_rails'
7-
gem 'ffaker'
8-
end

graphiti-activegraph.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Gem::Specification.new do |spec|
2323
spec.add_development_dependency 'graphiti_spec_helpers', '>= 1.0.0'
2424
spec.add_development_dependency 'standard'
2525
spec.add_development_dependency 'pry'
26+
spec.add_development_dependency 'ffaker'
27+
spec.add_development_dependency 'factory_bot_rails'
2628
spec.add_development_dependency 'rake', '>= 10.0'
2729
spec.add_development_dependency 'rspec', '>= 3.9.0'
2830
end

0 commit comments

Comments
 (0)