mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
Added mongoid 7 gemsets; ignore vendor/bundle (#395)
* Added mongoid 7 gemsets; ignore vendor/bundle * Added specs for Mongoid 7x * Added missing gemfiles Co-authored-by: Bryan Hanks, PMP <bryan@master-developer.com>
This commit is contained in:
parent
60a8498e28
commit
7ce81f7bb9
6 changed files with 33 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -26,6 +26,7 @@ Gemfile.lock
|
||||||
/tmp
|
/tmp
|
||||||
/.bundle
|
/.bundle
|
||||||
/gemfiles/.bundle
|
/gemfiles/.bundle
|
||||||
|
/gemfiles/vendor/bundle
|
||||||
|
|
||||||
## PROJECT::RVM
|
## PROJECT::RVM
|
||||||
.rvmrc
|
.rvmrc
|
||||||
|
|
|
@ -16,6 +16,8 @@ gemfile:
|
||||||
- gemfiles/rails_6.1.gemfile
|
- gemfiles/rails_6.1.gemfile
|
||||||
- gemfiles/mongoid_5.0.gemfile
|
- gemfiles/mongoid_5.0.gemfile
|
||||||
- gemfiles/mongoid_6.0.gemfile
|
- gemfiles/mongoid_6.0.gemfile
|
||||||
|
- gemfiles/mongoid_7.0.gemfile
|
||||||
|
- gemfiles/mongoid_7.1.gemfile
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
|
12
Appraisals
12
Appraisals
|
@ -27,10 +27,6 @@ appraise 'rails-6.1' do
|
||||||
gem 'rails', '>= 6.1.0', '< 6.2'
|
gem 'rails', '>= 6.1.0', '< 6.2'
|
||||||
end
|
end
|
||||||
|
|
||||||
appraise 'mongoid-4.0' do
|
|
||||||
gem 'mongoid', '~> 4.0.0'
|
|
||||||
end
|
|
||||||
|
|
||||||
appraise 'mongoid-5.0' do
|
appraise 'mongoid-5.0' do
|
||||||
gem 'mongoid', '~> 5.0.0'
|
gem 'mongoid', '~> 5.0.0'
|
||||||
end
|
end
|
||||||
|
@ -39,6 +35,14 @@ appraise 'mongoid-6.0' do
|
||||||
gem 'mongoid', '~> 6.0.0'
|
gem 'mongoid', '~> 6.0.0'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
appraise 'mongoid-7.0' do
|
||||||
|
gem 'mongoid', '~> 7.0.0'
|
||||||
|
end
|
||||||
|
|
||||||
|
appraise 'mongoid-7.1' do
|
||||||
|
gem 'mongoid', '~> 7.1.0'
|
||||||
|
end
|
||||||
|
|
||||||
# appraise 'mongo_mapper' do
|
# appraise 'mongo_mapper' do
|
||||||
# gem 'mongo_mapper'
|
# gem 'mongo_mapper'
|
||||||
# end
|
# end
|
||||||
|
|
7
gemfiles/mongoid_7.0.gemfile
Normal file
7
gemfiles/mongoid_7.0.gemfile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# This file was generated by Appraisal
|
||||||
|
|
||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "mongoid", "~> 7.0.0"
|
||||||
|
|
||||||
|
gemspec path: "../"
|
7
gemfiles/mongoid_7.1.gemfile
Normal file
7
gemfiles/mongoid_7.1.gemfile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# This file was generated by Appraisal
|
||||||
|
|
||||||
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "mongoid", "~> 7.1.0"
|
||||||
|
|
||||||
|
gemspec path: "../"
|
|
@ -3,10 +3,6 @@ module MongoidVersions
|
||||||
Gem::Version.new(Mongoid::VERSION)
|
Gem::Version.new(Mongoid::VERSION)
|
||||||
end
|
end
|
||||||
|
|
||||||
def mongoid_4_0?
|
|
||||||
Gem::Requirement.new('~> 4.0.0').satisfied_by?(mongoid_version)
|
|
||||||
end
|
|
||||||
|
|
||||||
def mongoid_5_0?
|
def mongoid_5_0?
|
||||||
Gem::Requirement.new('~> 5.0.0').satisfied_by?(mongoid_version)
|
Gem::Requirement.new('~> 5.0.0').satisfied_by?(mongoid_version)
|
||||||
end
|
end
|
||||||
|
@ -14,6 +10,14 @@ module MongoidVersions
|
||||||
def mongoid_6_0?
|
def mongoid_6_0?
|
||||||
Gem::Requirement.new('~> 6.0.0').satisfied_by?(mongoid_version)
|
Gem::Requirement.new('~> 6.0.0').satisfied_by?(mongoid_version)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def mongoid_7_0?
|
||||||
|
Gem::Requirement.new('~> 7.0.0').satisfied_by?(mongoid_version)
|
||||||
|
end
|
||||||
|
|
||||||
|
def mongoid_7_1?
|
||||||
|
Gem::Requirement.new('~> 7.1.0').satisfied_by?(mongoid_version)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
|
|
Loading…
Add table
Reference in a new issue