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
|
||||
/.bundle
|
||||
/gemfiles/.bundle
|
||||
/gemfiles/vendor/bundle
|
||||
|
||||
## PROJECT::RVM
|
||||
.rvmrc
|
||||
|
|
|
@ -16,6 +16,8 @@ gemfile:
|
|||
- gemfiles/rails_6.1.gemfile
|
||||
- gemfiles/mongoid_5.0.gemfile
|
||||
- gemfiles/mongoid_6.0.gemfile
|
||||
- gemfiles/mongoid_7.0.gemfile
|
||||
- gemfiles/mongoid_7.1.gemfile
|
||||
|
||||
matrix:
|
||||
include:
|
||||
|
|
12
Appraisals
12
Appraisals
|
@ -27,10 +27,6 @@ appraise 'rails-6.1' do
|
|||
gem 'rails', '>= 6.1.0', '< 6.2'
|
||||
end
|
||||
|
||||
appraise 'mongoid-4.0' do
|
||||
gem 'mongoid', '~> 4.0.0'
|
||||
end
|
||||
|
||||
appraise 'mongoid-5.0' do
|
||||
gem 'mongoid', '~> 5.0.0'
|
||||
end
|
||||
|
@ -39,6 +35,14 @@ appraise 'mongoid-6.0' do
|
|||
gem 'mongoid', '~> 6.0.0'
|
||||
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
|
||||
# gem 'mongo_mapper'
|
||||
# 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)
|
||||
end
|
||||
|
||||
def mongoid_4_0?
|
||||
Gem::Requirement.new('~> 4.0.0').satisfied_by?(mongoid_version)
|
||||
end
|
||||
|
||||
def mongoid_5_0?
|
||||
Gem::Requirement.new('~> 5.0.0').satisfied_by?(mongoid_version)
|
||||
end
|
||||
|
@ -14,6 +10,14 @@ module MongoidVersions
|
|||
def mongoid_6_0?
|
||||
Gem::Requirement.new('~> 6.0.0').satisfied_by?(mongoid_version)
|
||||
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
|
||||
|
||||
RSpec.configure do |config|
|
||||
|
|
Loading…
Reference in a new issue