Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
303 commits
Select commit Hold shift + click to select a range
fe0e186
Fix standard lint errors; lock version
wadetandy Jul 16, 2020
da27dfe
Merge pull request #256 from wadetandy/fix_standardrb
wadetandy Jul 16, 2020
def5c1f
Infer inverse_filter from `inverse_of`
mkamensky Jul 1, 2020
0e17694
Add specs for datetime eq nil and !eq datetime nil
zailleh Jul 17, 2020
b0384a9
Merge pull request #254 from zailleh/fix-filter-datetime-eq-nil-activ…
richmolj Jul 17, 2020
7ba3007
bump version
Jul 17, 2020
0d952b2
Merge pull request #257 from richmolj/master
richmolj Jul 17, 2020
38d79cb
Patch memory leak in Graphiti::Debugger.
gfmurphy Jul 26, 2020
f586d34
Fix rubocop violations
gfmurphy Jul 26, 2020
23d6088
Merge pull request #259 from gfmurphy/memory-leak
richmolj Jul 26, 2020
e63586d
bump version
Jul 26, 2020
fefc6d8
Avoid need for writable PK on update
Aug 22, 2020
6f7ed7e
Ensure scope override is honored on update/destroy
Aug 24, 2020
e3306ad
Merge pull request #268 from richmolj/update_scope
richmolj Aug 24, 2020
4f62a39
Merge pull request #267 from richmolj/master
richmolj Aug 25, 2020
897761f
bump version
Aug 25, 2020
bf75a88
Merge pull request #269 from richmolj/master
richmolj Aug 25, 2020
1527829
Fix specs
Aug 27, 2020
9fa8f74
Merge pull request #270 from richmolj/master
richmolj Aug 27, 2020
b474f71
Fix specs
Aug 27, 2020
873192c
Merge pull request #271 from richmolj/master
richmolj Aug 27, 2020
9b45988
Merge pull request #236 from michal-kazmierczak/master
richmolj Sep 1, 2020
45ab1cc
bump version
Sep 1, 2020
ab03cb9
Merge pull request #272 from richmolj/master
richmolj Sep 1, 2020
9fda2f5
Merge pull request #255 from wadetandy/many_to_many_infer_inverse
richmolj Sep 2, 2020
497fe7d
bump version
Sep 2, 2020
1c03f11
Merge pull request #273 from richmolj/master
richmolj Sep 2, 2020
3d09eec
Fix typo in Inference module name
wadetandy Sep 2, 2020
a29adc2
Revert change from includes to preload/join
wadetandy Sep 2, 2020
79589fa
Bail out if trying to filter by a nil id
wadetandy Sep 2, 2020
5bc99a3
Merge pull request #275 from wadetandy/bail_on_null_association
richmolj Sep 3, 2020
e92b98e
bump version
Sep 3, 2020
eb2b6fa
Merge pull request #276 from richmolj/master
richmolj Sep 3, 2020
12b0878
Merge pull request #274 from wadetandy/master
richmolj Sep 3, 2020
abc7e12
bump version
Sep 3, 2020
d9c5689
Merge pull request #277 from richmolj/master
richmolj Sep 3, 2020
08b4498
fixes ruby 2.7 kwargs usage warnings
mariacorazon Sep 13, 2020
c771c56
Merge pull request #278 from mariacorazon/fixes_ruby_2_7_0_kwargs_usa…
wadetandy Sep 14, 2020
d262e06
fixes #280 duplicate count query issue
mrhardikjoshi Sep 25, 2020
f058ab1
fixes rubocop issues
mrhardikjoshi Sep 25, 2020
87bec17
Fixes #282: multiple errors when model name contains "Resource"
Sep 29, 2020
1821056
Support Ruby 3.0
wagenet Sep 29, 2020
25664a1
Run CI against ruby head
wagenet Sep 29, 2020
a5d087a
Merge pull request #284 from graphiti-api/ruby-3
richmolj Sep 30, 2020
74ff9d3
moved connection close logic in to adapter
mrhardikjoshi Oct 5, 2020
2fd9525
remove pagination links when no data is present in response
mrhardikjoshi Oct 5, 2020
f82e9d9
moved associations related logic in to adapter
mrhardikjoshi Oct 5, 2020
db9f988
Merge pull request #281 from mrhardikjoshi/duplicate_count_query
richmolj Oct 7, 2020
d246c73
Merge pull request #283 from martin-denizet/hotfix/model-name-issue
richmolj Oct 7, 2020
149ea51
Merge pull request #279 from mrhardikjoshi/new_adapter_support
richmolj Oct 7, 2020
54fe7e4
Fix total count not working with some base_scope
Oct 9, 2020
110c9a0
Change the context description
tranxuanthang Oct 9, 2020
c05b986
Merge pull request #288 from tranxuanthang/fix-total-count-with-base-…
richmolj Oct 19, 2020
0787f5c
Avoid evaluating guards on load
Oct 19, 2020
52cb6c7
Merge pull request #289 from richmolj/master
richmolj Oct 19, 2020
5fe200e
Merge pull request #241 from seocahill/feature/allow-attribute-guard-…
richmolj Oct 20, 2020
50cd0b3
bump version
Oct 20, 2020
649e9fa
Merge pull request #291 from richmolj/master
richmolj Oct 20, 2020
a8ffce2
Fix activerecord namespace
Oct 22, 2020
6426a07
Merge pull request #293 from richmolj/master
richmolj Oct 22, 2020
8b027fc
Do not generate many_to_many filter when it exists
Oct 27, 2020
92dcea3
Fix formatting
Oct 30, 2020
d122c7d
Merge pull request #295 from hanssgo/do_not_generate_when_filter_exists
richmolj Nov 2, 2020
452d5ba
bump version
Nov 2, 2020
2961d9c
Merge pull request #296 from richmolj/master
richmolj Nov 2, 2020
39e0dd1
Fix logger level check
budu Nov 4, 2020
089a100
Merge pull request #297 from budu/bug/log-level-check
richmolj Nov 5, 2020
530e7a4
ignore trailing slash
XHPJ Nov 29, 2020
b54f98e
fix style issue
XHPJ Nov 29, 2020
63cd403
Merge pull request #300 from XHPJ/master
richmolj Dec 7, 2020
cfd7479
Add validation error on missing sidepost
Jan 30, 2021
279f2f3
Ensure FK is returned on remote sideload
Feb 9, 2021
67fe790
Improve schema output
Feb 9, 2021
652debf
Avoid validating endpoint in GQL context
Feb 9, 2021
d3678d8
Improve vanilla JSON renderer
Feb 9, 2021
48fe9cb
Support polymorphic fields in json renderer
Feb 9, 2021
878b9c0
GraphQL prep
Feb 10, 2021
a39cc3b
Merge pull request #310 from richmolj/master
wadetandy Feb 10, 2021
aa0ac60
Add graphql_entrypoint to schema
Feb 10, 2021
592b3f3
Sort remote resources in schema generation
PChambino Feb 19, 2021
11f9e3b
Add spec and changelog entry
PChambino Feb 19, 2021
4a20c5b
Merge pull request #313 from PChambino/patch-1
richmolj Feb 19, 2021
1951f72
Ensure deeply nested fields dot-syntax works
Feb 18, 2021
8f21d6d
Merge pull request #312 from richmolj/gqlwork7
richmolj Feb 21, 2021
3220572
Appease standard
Feb 21, 2021
0c41937
Merge pull request #315 from richmolj/master
richmolj Feb 21, 2021
78a87d1
Support polymorphic includes
Feb 21, 2021
b1718a3
Merge pull request #314 from richmolj/gqlwork7
richmolj Feb 22, 2021
373d8c4
Raise error when unreadable attribute in GQL context
Feb 22, 2021
0e4f9db
Merge pull request #316 from richmolj/master
richmolj Feb 23, 2021
794b0ec
Add `:self` to pagination links (#317)
revdan Feb 26, 2021
9d49336
Remove previous guard when attribute overridden
Feb 26, 2021
83b32b2
Merge pull request #318 from richmolj/g1
wadetandy Feb 26, 2021
096eb06
Allow same name for attribute and relationship
Feb 26, 2021
95d86fd
Allow requesting _type and __typename on hash renderer
Feb 26, 2021
06391b6
Allow `.as_json` not just `.to_json`
Feb 26, 2021
75b2484
Ensure remote resources with with vanilla json renderer
Feb 26, 2021
59e1650
bump version
Feb 28, 2021
bcd78ac
Require active_support/deprecation
PChambino Mar 2, 2021
532ff13
Auto-convert graphql_entrypoint on assignment
Mar 6, 2021
aa88f85
bump version
Mar 7, 2021
71e2a6f
Support extra_fields in polymorphic children
Mar 9, 2021
1f76a61
Use SimpleErrors instead of ActiveModel::Errors
PChambino Mar 9, 2021
ced743e
Propagate nested extra_fields to links
CGA1123 Mar 9, 2021
cec7128
Added filter_group DSL:
chiliburger Mar 12, 2021
cfe0311
Changed FilterGroup module to FilterGroupValidator class based on
chiliburger Mar 12, 2021
6cdbdde
Removed excess whitespace in FilterGroup errors.
chiliburger Mar 12, 2021
a2144ed
Added specs for filter_group DSL
chiliburger Mar 12, 2021
8ebba95
Removed leftover focus in specs
chiliburger Mar 12, 2021
92eb0fc
Standard linter fixes
chiliburger Mar 12, 2021
36aeaf4
Changed FilterGropuValidator raise methods to bang methods.
chiliburger Mar 12, 2021
a7bdce8
Standard fix for keys.include?
chiliburger Mar 12, 2021
c2c3d6e
Added specs for GroupFilterValidator class.
chiliburger Mar 12, 2021
0d6435a
Fixed Standard error
chiliburger Mar 12, 2021
a6d60a5
Fixed Standard error
chiliburger Mar 12, 2021
aa762c0
Changes from PR feedback
chiliburger Mar 15, 2021
6af36dc
Fixed broken specs
chiliburger Mar 15, 2021
054685c
Merge pull request #336 from chiliburger/add-filter-group
wadetandy Mar 16, 2021
5ce0f87
Add validation error when data/type missing
Mar 18, 2021
16cc581
Added filter_group bypass for resource find method.
chiliburger Mar 18, 2021
1d04420
Bumped version
chiliburger Mar 18, 2021
d370687
Fixed Standard error
chiliburger Mar 18, 2021
4a7ad6a
Add filter_group to schema/diffing
Mar 19, 2021
3c585fc
Accommodate statistics in hash renderer
Mar 14, 2021
45a1517
bump version
Mar 19, 2021
4ba0f36
Fix schema diffing
Mar 19, 2021
19c75b5
Ensure multiple extra_attrs without blocks work correctly
Mar 21, 2021
648cb28
Allow unwritable PK when associating on create
Mar 26, 2021
5230f44
bump version
Mar 26, 2021
96e0f20
Don't blow up when missing/unexpected context
Apr 13, 2021
f952c24
Fix many_to_many validation exception when sideposting
KirchoKirev Apr 22, 2021
593a19b
Fix single quote usage warning
KirchoKirev Apr 23, 2021
9ab7fa8
bump version
Apr 23, 2021
3b19e70
Remove pagination links from show/find requests
marcelobarreto May 8, 2021
c977ae9
Fix specs and rubocop issues
marcelobarreto May 8, 2021
37ecefa
fix: pagination links for show actions
marcelobarreto May 12, 2021
eff8f72
fix: rubocop offenses
marcelobarreto May 17, 2021
073cac1
Support page[offset] param
richmolj May 16, 2021
96664ed
Don't blow up on invalid JSON
richmolj Jun 8, 2021
0bdd137
bump version
richmolj Jun 8, 2021
6807f54
bump version
richmolj Jun 8, 2021
87f200a
Fix paginate arity check
richmolj Jun 25, 2021
5e7633a
Support cursor-based pagination
richmolj Jun 25, 2021
0389e50
bump version
richmolj Aug 8, 2021
adf083c
Trim error messages
PChambino Aug 9, 2021
7991740
changelog
PChambino Aug 9, 2021
34602f2
Fix hasNextPage logic
richmolj Aug 17, 2021
7cac442
bump version
richmolj Aug 17, 2021
ceaa89a
Decouple attribute and filter schema flag
richmolj Aug 30, 2021
f60da0e
Make attribute filterable when .filter called
richmolj Aug 31, 2021
57dfad2
Ensure attr/rel guards don't conflict
richmolj Sep 1, 2021
22808b8
Support schema for filters of extra attributes
PChambino Aug 23, 2021
4bc8a1d
Drop EOLed Rubies and Rails on CI
wagenet Jan 26, 2022
0f71353
Fix standard ruby failures
wagenet Jan 26, 2022
a062636
Drop old versions from gemspec
wagenet Jan 26, 2022
290b256
Don't use old bundler
wagenet Jan 26, 2022
fd2f798
Run CI for Ruby 3.0
wagenet Jan 26, 2022
43e6772
Test Rails 7 on CI
wagenet Jan 26, 2022
04b6960
Fix failing specs
wagenet Jan 26, 2022
6615213
Upgrade to Standard 1.0
wadetandy Mar 11, 2021
6dcf894
Switch to GHA
wagenet Feb 3, 2022
04455e3
Remove the upper bound of the ruby version
calebuharrison Nov 10, 2021
560547d
Upgrade to the oldest version of Standard Ruby that supports 3.1
wagenet Jan 26, 2022
a0b5f46
Add Ruby 3.1 to CI
wagenet Feb 3, 2022
61181e7
Merge pull request #406 from graphiti-api/ruby-3-1-gha
wagenet Feb 4, 2022
1521cf1
bump to 1.3.6
richmolj Feb 4, 2022
aecf564
Use eql when filtering [as]_type
timflapper Oct 19, 2021
c5fa0f8
Camelize multi-word GQL stats
richmolj Apr 25, 2022
2cbe1a2
Support group_by on stats
richmolj May 25, 2022
edb1145
bump version
richmolj May 25, 2022
d93166d
Move grouping to adapter
richmolj May 25, 2022
469002c
Fix test failures re: uninitialized constant Position
jkeen Jun 24, 2022
7591347
Run standardrb on file
jkeen Jun 24, 2022
05ebda3
Require base64 to fix other test failure
jkeen Jun 24, 2022
5d1dac3
more lint fixes
jkeen Jun 24, 2022
43e813f
Prefer #update over #update_attributes, as that's the newer Rails way…
jkeen Jun 28, 2022
14e84ef
Enable CLA
richmolj Jul 8, 2022
34e9f8e
Use an options hash for log subscriber instead of positional arguments
factyy Oct 30, 2023
df2f566
Make changes backward compatible with Rails pre-7.1
factyy Oct 31, 2023
6212335
Check ActiveSupport version properly
factyy Oct 31, 2023
1f112b0
460 🐛 Fix bug: graphiti not compatible with Rails 7.1
svobom57 Jan 30, 2024
d2c3486
Show includes for sideloads in debugger
bebbs Feb 15, 2024
88ca46d
Merge pull request #457 from shrimple-tech/feature/fix-log-subscriber…
jkeen Feb 27, 2024
ef4ee33
Merge pull request #461 from svobom57/460/make-graphiti-compatible-wi…
jkeen Feb 27, 2024
0cf85ba
Linter fixes
jkeen Feb 27, 2024
3766e9d
Merge pull request #462 from bebbs/fix-include-debugger
jkeen Feb 27, 2024
f374bbc
Ignore lint warning for using the incorrect method
jkeen Feb 27, 2024
61ea2c3
Update appraisals to include Rails 7.1 and Ruby 3.2 + 3.3 (#463)
jkeen Feb 27, 2024
aee78ca
Fix private call (#446)
daniel-illi Feb 27, 2024
91c4210
fix: resolve inconsistency for filters containing curly brackets (#452)
lkalwa Feb 27, 2024
d3e09c2
fix: Re-use resource class for remote sideloads to avoid memory leak …
PChambino Feb 27, 2024
c94cd33
fix: sort types in generated schema (#407)
PChambino Feb 27, 2024
9de191c
fix: check for url presence before trying to append to it (#464)
jkeen Feb 27, 2024
689aac7
Bump version and manually create a 1.4.0 release
jkeen Mar 17, 2024
f68b61f
feat: add before_sideload hook (#371)
jhnvz Mar 18, 2024
3f8b4a9
chore: Add semantic release to automatically cut releases, generate c…
jkeen Mar 18, 2024
42a0a4e
add publish step to CI, correct error in release.yml [skip ci]
jkeen Mar 18, 2024
c269283
Correct release branch name [skip ci]
jkeen Mar 18, 2024
efdef21
Remove incorrect semantic-release package [skip ci]
jkeen Mar 18, 2024
2c72265
1.5.0 CHANGELOG [skip ci]
semantic-release-bot Mar 18, 2024
629757a
Bump version and release [skip ci]
jkeen Mar 18, 2024
3a29ea1
Add semantic-release rubygem to release pipeline [skip ci]
jkeen Mar 18, 2024
4e58702
fix: polymorphic `on` expects a symbol (#433)
jasonkarns Mar 18, 2024
0b2d9ff
1.5.1 CHANGELOG [skip ci]
semantic-release-bot Mar 18, 2024
56d34fd
fix: Enum should allow the conventionally case-sensitive operators (#…
jasonkarns Mar 18, 2024
c79b4dc
1.5.2 CHANGELOG [skip ci]
semantic-release-bot Mar 18, 2024
e1dd811
fix: prevent :id stripping when :id not in path (#447)
doublevoid Mar 18, 2024
ae09a46
fix: leverage ruby-2.7 parameter forwarding (#431)
belt Mar 18, 2024
18519b6
1.5.3 CHANGELOG [skip ci]
semantic-release-bot Mar 18, 2024
697d761
feat: add thread pool and concurrency_max_threads configuration optio…
MattFenelon Mar 20, 2024
3899855
1.6.0 CHANGELOG [skip ci]
semantic-release-bot Mar 20, 2024
0400ab0
fix: correct thread-pool mutex logic which was causing a deadlock
jkeen Mar 22, 2024
4854c74
1.6.1 CHANGELOG [skip ci]
semantic-release-bot Mar 22, 2024
99f469f
[skip ci] ensure version up to date
jkeen Mar 22, 2024
51fb51c
fix: thread pool scope and mutex need to be global across all instanc…
MattFenelon Mar 22, 2024
8f46cf3
1.6.2 CHANGELOG [skip ci]
semantic-release-bot Mar 22, 2024
7941b6f
fix: Remove thread pool executor logic until we get a better handle o…
jkeen Mar 26, 2024
4eb2fc8
1.6.3 CHANGELOG [skip ci]
semantic-release-bot Mar 26, 2024
0d0e218
refactor: rename and alias some methods for clarity
jkeen Mar 27, 2024
512123a
1.6.4 CHANGELOG [skip ci]
semantic-release-bot Mar 27, 2024
8bae50a
feat: Add support for caching renders in Graphiti, and better support…
jkeen Mar 27, 2024
764eb93
1.7.0 CHANGELOG [skip ci]
semantic-release-bot Mar 27, 2024
dcee71b
docs: update badges [skip ci]
jkeen Mar 28, 2024
661e3b5
fix: rescue error from sideloads updated_at calculation, defaulting t…
jkeen Apr 17, 2024
d2a7a03
fix: properly display .find vs .all in debugger statements
jkeen Apr 17, 2024
1479411
1.7.1 CHANGELOG [skip ci]
semantic-release-bot Apr 18, 2024
bb2a488
fix: require necessary ActiveSupport parts in proper order
factyy Jun 11, 2024
ad4f04e
1.7.2 CHANGELOG [skip ci]
semantic-release-bot Jun 11, 2024
e0fa18a
fix: require OpenStruct explicitly (#475)
factyy Jun 26, 2024
15ba979
1.7.3 CHANGELOG [skip ci]
semantic-release-bot Jun 26, 2024
8313e33
fix: update ActiveRecord adapter w/ support for Rails 7.2+ (#478)
mihaimuntenas Sep 11, 2024
4dca1ef
1.7.4 CHANGELOG [skip ci]
semantic-release-bot Sep 11, 2024
42c82c3
fix: Fixes error in version check for ActiveRecord adapter introduced…
mihaimuntenas Sep 16, 2024
4cad908
1.7.5 CHANGELOG [skip ci]
semantic-release-bot Sep 16, 2024
b377b99
account for rendering change in ruby 3.4 tests (#484)
jkeen Nov 6, 2024
68e2492
fix: Gem version check (#483)
ef4 Nov 6, 2024
7ce9cdb
1.7.6 CHANGELOG [skip ci]
semantic-release-bot Nov 6, 2024
9296b88
Update workflow version refs
jkeen Mar 14, 2025
04f1f3c
fix: change class attribute behavior on endpoint method to work in ru…
jkeen Mar 15, 2025
f092241
1.7.7 CHANGELOG [skip ci]
semantic-release-bot Mar 15, 2025
20b80dd
fix: compare URI-decoded path params (#482)
zvkemp Mar 16, 2025
3cc2983
fix: lazy constantize relation resources (#492)
bguban Mar 16, 2025
dc28a4f
fix: correct issue with many_to_many when one of the models has a pre…
bguban Mar 16, 2025
d643a6e
1.7.8 CHANGELOG [skip ci]
semantic-release-bot Mar 16, 2025
4e764f6
fix: update version check for clear active connections active record …
yasirazgar Mar 16, 2025
878ed02
1.7.9 CHANGELOG [skip ci]
semantic-release-bot Mar 16, 2025
2998852
feat: add thread pool with promises to limit concurrent sideloading (…
MattFenelon Mar 17, 2025
32d8acc
1.8.0 CHANGELOG [skip ci]
semantic-release-bot Mar 17, 2025
dbd7e3c
test: add Rails 7.2, Rails 8, and ruby 3.4 to test cases (#494)
jkeen Mar 17, 2025
e3cffe4
1.8.1 CHANGELOG [skip ci]
semantic-release-bot Mar 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/probots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
enabled:
- cla
166 changes: 166 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
name: CI

on:
push:
branches: [master]
pull_request: {}

concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
bundler-cache: true
- name: Run standardrb
run: bundle exec standardrb --no-fix --format progress
test:
name: "Tests - ${{ matrix.ruby }} | ${{ matrix.gemfile }} | Appraisal: ${{ matrix.appraisal }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"
- "3.4"
gemfile:
- Gemfile
- gemfiles/rails_5_2.gemfile
- gemfiles/rails_6.gemfile
- gemfiles/rails_7.gemfile
- gemfiles/rails_5_2_graphiti_rails.gemfile
- gemfiles/rails_6_graphiti_rails.gemfile
- gemfiles/rails_7_graphiti_rails.gemfile
- gemfiles/rails_7_1_graphiti_rails.gemfile
- gemfiles/rails_7_2_graphiti_rails.gemfile
- gemfiles/rails_8_0_graphiti_rails.gemfile
appraisal:
- true
- false
include:
- ruby: ruby-head
gemfile: gemfiles/rails_7_1.gemfile
appraisal: true
- ruby: ruby-head
gemfile: gemfiles/rails_7_2_graphiti_rails.gemfile
appraisal: true
- ruby: ruby-head
gemfile: gemfiles/rails_8_0_graphiti_rails.gemfile
appraisal: true
- ruby: ruby-head
gemfile: Gemfile
appraisal: false
exclude:
# Skip some extra variants
- gemfile: Gemfile
appraisal: true
- gemfile: gemfiles/rails_5_2.gemfile
appraisal: false
- gemfile: gemfiles/rails_6.gemfile
appraisal: false
- gemfile: gemfiles/rails_7.gemfile
appraisal: false
- gemfile: gemfiles/rails_5_2_graphiti_rails.gemfile
appraisal: false
- gemfile: gemfiles/rails_6_graphiti_rails.gemfile
appraisal: false
- gemfile: gemfiles/rails_7_graphiti_rails.gemfile
appraisal: false
- gemfile: gemfiles/rails_7_1_graphiti_rails.gemfile
appraisal: false
- gemfile: gemfiles/rails_7_2_graphiti_rails.gemfile
appraisal: false
- gemfile: gemfiles/rails_8_0_graphiti_rails.gemfile
appraisal: false

# Rails 8 needs ruby 3.2 +
- gemfile: gemfiles/rails_8_0_graphiti_rails.gemfile
ruby: 2.7
- gemfile: gemfiles/rails_8_0_graphiti_rails.gemfile
ruby: 3.0
- gemfile: gemfiles/rails_8_0_graphiti_rails.gemfile
ruby: 3.1

# Rails 7.2 needs ruby 3.1 +
- gemfile: gemfiles/rails_7_2_graphiti_rails.gemfile
ruby: 2.7
- gemfile: gemfiles/rails_7_2_graphiti_rails.gemfile
ruby: 3.0

# Rails 7.1 needs ruby 3.0 +
- gemfile: gemfiles/rails_7_1_graphiti_rails.gemfile
ruby: 2.7
- gemfile: gemfiles/rails_7_1_graphiti_rails.gemfile
ruby: 3.0

# Rails 7.0 needs ruby 3.1 +
- gemfile: gemfiles/rails_7_0_graphiti_rails.gemfile
ruby: 3.2
- gemfile: gemfiles/rails_7_0_graphiti_rails.gemfile
ruby: 3.3
- gemfile: gemfiles/rails_7_0_graphiti_rails.gemfile
ruby: 3.4

# Rails 6 needs < ruby 3.4
- gemfile: gemfiles/rails_6.gemfile
ruby: 3.4
- gemfile: gemfiles/rails_6_graphiti_rails.gemfile
ruby: 3.4

# Rails 5 can't run on Ruby 3
- gemfile: gemfiles/rails_5_2.gemfile
ruby: 3.0
- gemfile: gemfiles/rails_5_2_graphiti_rails.gemfile
ruby: 3.0
- gemfile: gemfiles/rails_5_2.gemfile
ruby: 3.1
- gemfile: gemfiles/rails_5_2_graphiti_rails.gemfile
ruby: 3.1
- gemfile: gemfiles/rails_5_2.gemfile
ruby: 3.2
- gemfile: gemfiles/rails_5_2_graphiti_rails.gemfile
ruby: 3.2
- gemfile: gemfiles/rails_5_2.gemfile
ruby: 3.3
- gemfile: gemfiles/rails_5_2_graphiti_rails.gemfile
ruby: 3.3
- gemfile: gemfiles/rails_5_2.gemfile
ruby: 3.4
- gemfile: gemfiles/rails_5_2_graphiti_rails.gemfile
ruby: 3.4
continue-on-error: ${{ matrix.ruby == 'ruby-head' }}
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
steps:
- name: Set up Appraisal
if: matrix.appraisal
run: echo "APPRAISAL_INITIALIZED=true" >> $GITHUB_ENV
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rspec
publish:
name: Release
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
needs: [test]
steps:
- name: Dispatch Release
uses: benc-uk/workflow-dispatch@v1
with:
workflow: Generate New Release
token: ${{ secrets.GITHUB_TOKEN }}
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Generate New Release

on:
workflow_dispatch:

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
- name: Build
run: |
gem install bundler
git submodule update --init --recursive
bundle install --jobs 4 --retry 3
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
run: node_modules/.bin/semantic-release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/spec/reports/
/gemfiles/*.lock
/tmp/
node_modules
.byebug_history
spec/.rspec-examples
spec/dummy/log/*
Expand Down
10 changes: 5 additions & 5 deletions .standard.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
fix: true
parallel: true
ruby_version: 2.4
ruby_version: 2.7

ignore:
- 'vendor/**/*'
- 'spec/**/*':
# There are some false hits when doing repeated
# Class.new blocks in different test cases
- Lint/DuplicateMethods
# This was causing many tests to be harder to read.
# Ongoing discussion with StandardRB team in
# https://github.com/testdouble/standard/issues/94
- Standard/SemanticBlocks
# We define a lot of test-specific classes within our test blocks
# There's probably a better way to do this, but it's not worth the
# effort right now, so let's just disable for specs
- Lint/ConstantDefinitionInBlock
59 changes: 0 additions & 59 deletions .travis.yml

This file was deleted.

55 changes: 38 additions & 17 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,38 +1,59 @@
appraise "rails-4" do
gem "rails", "~> 4.1"
appraise "rails-5_2" do
gem "rails", "~> 5.2.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.3.6"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
end

appraise "rails-5" do
gem "rails", "~> 5.2"
appraise "rails-5_2-graphiti-rails" do
gem "rails", "~> 5.2.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.3.6"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
gem "graphiti-rails", "~> 0.4.0"
end

appraise "rails-5-graphiti-rails" do
gem "rails", "~> 5.2"
appraise "rails-6" do
gem "rails", "~> 6.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.3.6"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
gem "rescue_registry", git: "https://github.com/wagenet/rescue_registry.git", branch: "master"
gem "graphiti-rails", git: "https://github.com/wagenet/graphiti-rails.git", branch: "master"
end

appraise "rails-6" do
gem "rails", "~> 6.0.0.rc1"
appraise "rails-6-graphiti-rails" do
gem "rails", "~> 6.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
gem "graphiti-rails", "~> 0.4.0"
end

appraise "rails-6-graphiti-rails" do
gem "rails", "~> 6.0.0.rc1"
appraise "rails-7" do
gem "rails", "~> 7.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
end

appraise "rails-7-graphiti-rails" do
gem "rails", "~> 7.0"
gem "rspec-rails"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
gem "graphiti-rails", "~> 0.4.0"
end

appraise "rails-7-1" do
gem "rails", "~> 7.1"
gem "rspec-rails"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
end

appraise "rails-7-1-graphiti-rails" do
gem "rails", "~> 7.1"
gem "rspec-rails"
gem "sqlite3", "~> 1.4.0"
gem "database_cleaner"
gem "rescue_registry", git: "https://github.com/wagenet/rescue_registry.git", branch: "master"
gem "graphiti-rails", git: "https://github.com/wagenet/graphiti-rails.git", branch: "master"
gem "graphiti-rails", "~> 0.4.0"
end
Loading