Skip to content

Commit 606f348

Browse files
committed
Updates Bundler.with_clean_dev (deprecated) to with_unbundled_env
1 parent 92938d8 commit 606f348

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
@@ -18,7 +18,7 @@ namespace :bundle do
1818
gemfiles = ENV['RAILS_VERSIONS'] ? ENV['RAILS_VERSIONS'].split(',').map { |v| "#{v}.gemfile"} : GEMFILES
1919
gemfiles.each do |gemfile|
2020
puts "GEMFILE: #{gemfile}"
21-
Bundler.with_clean_env do
21+
Bundler.with_unbundled_env do
2222
sh "bundle install --gemfile #{File.expand_path('../gemfiles/'+gemfile, __FILE__)}"
2323
end
2424
puts '-' * 80

elasticsearch-persistence/Rakefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ end
2323
namespace :bundle do
2424
desc 'Install gem dependencies'
2525
task :install do
26-
puts '-'*80
27-
Bundler.with_clean_env do
26+
puts '-' * 80
27+
Bundler.with_unbundled_env do
2828
sh 'bundle install'
2929
end
30-
puts '-'*80
30+
puts '-' * 80
3131
end
3232
end
3333

elasticsearch-rails/Rakefile

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
11
require "bundler/gem_tasks"
22

33
desc "Run unit tests"
4-
task :default => 'test:unit'
5-
task :test => 'test:unit'
4+
task default: 'test:unit'
5+
task test: 'test:unit'
66

77
# ----- Test tasks ------------------------------------------------------------
88

99
require 'rake/testtask'
1010
require 'rspec/core/rake_task'
1111

1212
namespace :test do
13-
1413
RSpec::Core::RakeTask.new(:spec)
1514

1615
Rake::TestTask.new(:all) do |test|
1716
test.verbose = false
1817
test.warning = false
19-
test.deps = [ :spec ] unless defined?(JRUBY_VERSION)
18+
test.deps = [:spec] unless defined?(JRUBY_VERSION)
2019
end
2120
end
2221

2322
namespace :bundle do
2423
desc 'Install gem dependencies'
2524
task :install do
26-
puts '-'*80
27-
Bundler.with_clean_env do
25+
puts '-' * 80
26+
Bundler.with_unbundled_env do
2827
sh 'bundle install'
2928
end
30-
puts '-'*80
29+
puts '-' * 80
3130
end
3231
end
3332

0 commit comments

Comments
 (0)