Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
37 changes: 26 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,36 @@
name: CI
on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
jobs:
tests:
name: Tests
name: Ruby ${{ matrix.ruby }} • ${{ matrix.gemfile_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ruby: [
"3.1",
]
gemfile: [
"gemfiles/mongoid7",
"gemfiles/mongoid8",
]
experimental: [false]
include:
- os: ubuntu-latest
ruby: "3.2"
gemfile: gemfiles/mongoid8.gemfile
gemfile_name: mongoid8
- os: ubuntu-latest
ruby: "3.2"
gemfile: Gemfile
gemfile_name: mongoid9
- os: ubuntu-latest
ruby: "3.3"
gemfile: Gemfile
gemfile_name: mongoid9
- os: ubuntu-latest
ruby: "3.4"
gemfile: Gemfile
gemfile_name: mongoid9

env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}

steps:
- name: Checkout code
Expand Down
47 changes: 27 additions & 20 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,52 @@ PATH
remote: .
specs:
mongoid_includes (3.0.3)
mongoid (>= 7.0.10, < 10.0.0)
mongoid (>= 8.0.0, < 10.0.0)

GEM
remote: https://rubygems.org/
specs:
activemodel (7.1.3.4)
activesupport (= 7.1.3.4)
activesupport (7.1.3.4)
activemodel (8.0.3)
activesupport (= 8.0.3)
activesupport (8.0.3)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
base64 (0.2.0)
bigdecimal (3.1.8)
bson (5.0.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
base64 (0.3.0)
benchmark (0.4.1)
bigdecimal (3.2.3)
bson (5.1.1)
byebug (11.1.3)
coderay (1.1.3)
concurrent-ruby (1.3.3)
connection_pool (2.4.1)
concurrent-ruby (1.3.5)
connection_pool (2.5.4)
diff-lcs (1.5.1)
docile (1.3.2)
drb (2.2.1)
drb (2.2.3)
given_core (3.8.2)
sorcerer (>= 0.3.7)
i18n (1.14.5)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
json (2.3.1)
logger (1.7.0)
method_source (1.1.0)
minitest (5.24.1)
mongo (2.20.1)
minitest (5.25.5)
mongo (2.21.3)
base64
bson (>= 4.14.1, < 6.0.0)
mongoid (9.0.1)
activemodel (>= 5.1, < 7.2, != 7.0.0)
mongoid (9.0.8)
activemodel (>= 5.1, < 8.1, != 7.0.0)
concurrent-ruby (>= 1.0.5, < 2.0)
mongo (>= 2.18.0, < 3.0.0)
mutex_m (0.2.0)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
Expand All @@ -66,6 +71,7 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
securerandom (0.4.1)
simplecov (0.17.1)
docile (~> 1.1)
json (>= 1.8, < 3)
Expand All @@ -74,6 +80,7 @@ GEM
sorcerer (2.0.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uri (1.0.3)

PLATFORMS
ruby
Expand All @@ -88,4 +95,4 @@ DEPENDENCIES
simplecov (~> 0.17.0)

BUNDLED WITH
2.3.22
2.7.2
13 changes: 0 additions & 13 deletions gemfiles/mongoid7.gemfile

This file was deleted.

83 changes: 0 additions & 83 deletions gemfiles/mongoid7.gemfile.lock

This file was deleted.

2 changes: 1 addition & 1 deletion gemfiles/mongoid8.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ gemspec path: '..'
gem 'bundler'
gem 'rake'
gem 'pry-byebug'
gem 'mongoid', '~> 8.0.2'
gem 'mongoid', '~> 8.1'

group :test do
gem 'rspec-given', '~> 3.5'
Expand Down
101 changes: 101 additions & 0 deletions gemfiles/mongoid8.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
PATH
remote: ..
specs:
mongoid_includes (3.0.3)
mongoid (>= 8.0.0, < 10.0.0)

GEM
remote: https://rubygems.org/
specs:
activemodel (8.0.3)
activesupport (= 8.0.3)
activesupport (8.0.3)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
base64 (0.3.0)
benchmark (0.4.1)
bigdecimal (3.2.3)
bson (5.1.1)
byebug (12.0.0)
coderay (1.1.3)
concurrent-ruby (1.3.5)
connection_pool (2.5.4)
diff-lcs (1.6.2)
docile (1.4.1)
drb (2.2.3)
given_core (3.8.2)
sorcerer (>= 0.3.7)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
json (2.15.0)
logger (1.7.0)
method_source (1.1.0)
minitest (5.25.5)
mongo (2.21.3)
base64
bson (>= 4.14.1, < 6.0.0)
mongoid (8.1.11)
activemodel (>= 5.1, < 8.1, != 7.0.0)
concurrent-ruby (>= 1.0.5, < 2.0)
mongo (>= 2.18.0, < 3.0.0)
ruby2_keywords (~> 0.0.5)
pry (0.15.2)
coderay (~> 1.1)
method_source (~> 1.0)
pry-byebug (3.11.0)
byebug (~> 12.0)
pry (>= 0.13, < 0.16)
rake (13.3.0)
rspec (3.13.1)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.5)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-given (3.8.2)
given_core (= 3.8.2)
rspec (>= 2.14.0)
rspec-mocks (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.6)
ruby2_keywords (0.0.5)
securerandom (0.4.1)
simplecov (0.17.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
sorcerer (2.0.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uri (1.0.3)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
bundler
mongoid (~> 8.1)
mongoid_includes!
pry-byebug
rake
rspec-given (~> 3.5)
simplecov (~> 0.17.0)

BUNDLED WITH
2.6.9
2 changes: 1 addition & 1 deletion mongoid_includes.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ Gem::Specification.new do |s|
s.files = Dir.glob('lib/**/*') + %w(LICENSE.txt README.md Rakefile)
s.test_files = Dir.glob('spec/**/*')

s.add_runtime_dependency 'mongoid', ['>= 7.0.10', '< 10.0.0']
s.add_runtime_dependency 'mongoid', ['>= 8.0.0', '< 10.0.0']
end