Skip to content

Commit

Permalink
Updates Bundler.with_clean_dev (deprecated) to with_unbundled_env
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Sep 1, 2020
1 parent 2de6778 commit e4545e4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion elasticsearch-model/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace :bundle do
gemfiles = ENV['RAILS_VERSIONS'] ? ENV['RAILS_VERSIONS'].split(',').map { |v| "#{v}.gemfile"} : GEMFILES
gemfiles.each do |gemfile|
puts "GEMFILE: #{gemfile}"
Bundler.with_clean_env do
Bundler.with_unbundled_env do
sh "bundle install --gemfile #{File.expand_path('../gemfiles/'+gemfile, __FILE__)}"
end
puts '-' * 80
Expand Down
6 changes: 3 additions & 3 deletions elasticsearch-persistence/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ end
namespace :bundle do
desc 'Install gem dependencies'
task :install do
puts '-'*80
Bundler.with_clean_env do
puts '-' * 80
Bundler.with_unbundled_env do
sh 'bundle install'
end
puts '-'*80
puts '-' * 80
end
end

Expand Down
13 changes: 6 additions & 7 deletions elasticsearch-rails/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,32 @@
require "bundler/gem_tasks"

desc "Run unit tests"
task :default => 'test:unit'
task :test => 'test:unit'
task default: 'test:unit'
task test: 'test:unit'

# ----- Test tasks ------------------------------------------------------------

require 'rake/testtask'
require 'rspec/core/rake_task'

namespace :test do

RSpec::Core::RakeTask.new(:spec)

Rake::TestTask.new(:all) do |test|
test.verbose = false
test.warning = false
test.deps = [ :spec ] unless defined?(JRUBY_VERSION)
test.deps = [:spec] unless defined?(JRUBY_VERSION)
end
end

namespace :bundle do
desc 'Install gem dependencies'
task :install do
puts '-'*80
Bundler.with_clean_env do
puts '-' * 80
Bundler.with_unbundled_env do
sh 'bundle install'
end
puts '-'*80
puts '-' * 80
end
end

Expand Down

0 comments on commit e4545e4

Please sign in to comment.