Skip to content

Commit e4545e4

Browse files
committedSep 1, 2020
Updates Bundler.with_clean_dev (deprecated) to with_unbundled_env
1 parent 2de6778 commit e4545e4

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed
 

‎elasticsearch-model/Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ namespace :bundle do
3333
gemfiles = ENV['RAILS_VERSIONS'] ? ENV['RAILS_VERSIONS'].split(',').map { |v| "#{v}.gemfile"} : GEMFILES
3434
gemfiles.each do |gemfile|
3535
puts "GEMFILE: #{gemfile}"
36-
Bundler.with_clean_env do
36+
Bundler.with_unbundled_env do
3737
sh "bundle install --gemfile #{File.expand_path('../gemfiles/'+gemfile, __FILE__)}"
3838
end
3939
puts '-' * 80

‎elasticsearch-persistence/Rakefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ end
4040
namespace :bundle do
4141
desc 'Install gem dependencies'
4242
task :install do
43-
puts '-'*80
44-
Bundler.with_clean_env do
43+
puts '-' * 80
44+
Bundler.with_unbundled_env do
4545
sh 'bundle install'
4646
end
47-
puts '-'*80
47+
puts '-' * 80
4848
end
4949
end
5050

‎elasticsearch-rails/Rakefile

+6-7
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,32 @@
1818
require "bundler/gem_tasks"
1919

2020
desc "Run unit tests"
21-
task :default => 'test:unit'
22-
task :test => 'test:unit'
21+
task default: 'test:unit'
22+
task test: 'test:unit'
2323

2424
# ----- Test tasks ------------------------------------------------------------
2525

2626
require 'rake/testtask'
2727
require 'rspec/core/rake_task'
2828

2929
namespace :test do
30-
3130
RSpec::Core::RakeTask.new(:spec)
3231

3332
Rake::TestTask.new(:all) do |test|
3433
test.verbose = false
3534
test.warning = false
36-
test.deps = [ :spec ] unless defined?(JRUBY_VERSION)
35+
test.deps = [:spec] unless defined?(JRUBY_VERSION)
3736
end
3837
end
3938

4039
namespace :bundle do
4140
desc 'Install gem dependencies'
4241
task :install do
43-
puts '-'*80
44-
Bundler.with_clean_env do
42+
puts '-' * 80
43+
Bundler.with_unbundled_env do
4544
sh 'bundle install'
4645
end
47-
puts '-'*80
46+
puts '-' * 80
4847
end
4948
end
5049

0 commit comments

Comments
 (0)