Disable automatic bundle install to avoid issues such as config/mongoid.yml being overwritten.

This commit is contained in:
chiu 2026-03-06 04:17:15 +00:00
parent 61636ad553
commit 7864919509
1 changed files with 8 additions and 8 deletions

View File

@ -14,14 +14,14 @@ rescue LoadError
end
source 'https://rubygems.org'
#update all site!!!!!!!!
if $0.to_s.scan('bundle').length==0
self.bundler_with_clean_env{
# Deprecated: bundle show => bundle list, bundle show gem => bundle info gem --path
# Tested: bundler >= 1.17 will have bundle info and bundle list
flag = system("bundle info announcement --path >/dev/null 2>&1 || bundle show announcement >/dev/null 2>&1")
system("bundle install") if !flag
}
end
#if $0.to_s.scan('bundle').length==0
# self.bundler_with_clean_env{
# # Deprecated: bundle show => bundle list, bundle show gem => bundle info gem --path
# # Tested: bundler >= 1.17 will have bundle info and bundle list
# flag = system("bundle info announcement --path >/dev/null 2>&1 || bundle show announcement >/dev/null 2>&1")
# system("bundle install") if !flag
# }
#end
gem 'multipart-post', '1.2'
gem 'oauth2', '1.4.7'
gem 'rack-protection', '2.2.2'