summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2019-04-05 09:51:57 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2019-04-05 09:51:57 +0900
commit9f151e5a09f0810d5949f9b04c10bfd347290799 (patch)
tree4fec5b23ab97a89544b692bb1e572bea60f8aa43
parent79c380f58112be7d0a71b167ff026ab2a9e9f9a2 (diff)
downloadbundler-remove-thread.tar.gz
Remove explictily loading thread library, It's provided by embedded module in the modern Ruby.remove-thread
-rw-r--r--lib/bundler.rb1
-rw-r--r--lib/bundler/worker.rb2
-rw-r--r--spec/realworld/dependency_api_spec.rb2
-rw-r--r--spec/realworld/gemfile_source_header_spec.rb2
-rw-r--r--spec/realworld/mirror_probe_spec.rb2
5 files changed, 1 insertions, 8 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index d500a57861..f792a3bc98 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -5,7 +5,6 @@ require "bundler/compatibility_guard"
require "bundler/vendored_fileutils"
require "pathname"
require "rbconfig"
-require "thread"
require "bundler/errors"
require "bundler/environment_preserver"
diff --git a/lib/bundler/worker.rb b/lib/bundler/worker.rb
index 1c7c1ccf6c..3471654b43 100644
--- a/lib/bundler/worker.rb
+++ b/lib/bundler/worker.rb
@@ -1,7 +1,5 @@
# frozen_string_literal: true
-require "thread"
-
module Bundler
class Worker
POISON = Object.new
diff --git a/spec/realworld/dependency_api_spec.rb b/spec/realworld/dependency_api_spec.rb
index c1ce8ceff1..e7d11419cd 100644
--- a/spec/realworld/dependency_api_spec.rb
+++ b/spec/realworld/dependency_api_spec.rb
@@ -9,7 +9,7 @@ RSpec.describe "gemcutter's dependency API", :realworld => true do
@server_uri = "http://127.0.0.1:#{port}"
require File.expand_path("../../support/artifice/endpoint_timeout", __FILE__)
- require "thread"
+
@t = Thread.new do
server = Rack::Server.start(:app => EndpointTimeout,
:Host => "0.0.0.0",
diff --git a/spec/realworld/gemfile_source_header_spec.rb b/spec/realworld/gemfile_source_header_spec.rb
index ad8897d68c..eaefd0f03e 100644
--- a/spec/realworld/gemfile_source_header_spec.rb
+++ b/spec/realworld/gemfile_source_header_spec.rb
@@ -1,7 +1,5 @@
# frozen_string_literal: true
-require "thread"
-
RSpec.describe "fetching dependencies with a mirrored source", :realworld => true do
let(:mirror) { "https://server.example.org" }
let(:original) { "http://127.0.0.1:#{@port}" }
diff --git a/spec/realworld/mirror_probe_spec.rb b/spec/realworld/mirror_probe_spec.rb
index 8235032321..c5e95f3059 100644
--- a/spec/realworld/mirror_probe_spec.rb
+++ b/spec/realworld/mirror_probe_spec.rb
@@ -1,7 +1,5 @@
# frozen_string_literal: true
-require "thread"
-
RSpec.describe "fetching dependencies with a not available mirror", :realworld => true do
let(:mirror) { @mirror_uri }
let(:original) { @server_uri }