Skip to content

Commit

Permalink
misc gem and dep maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Jan 18, 2025
1 parent 62b1cb5 commit 54de0e1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ source "https://rubygems.org/"
# Specify your gem's dependencies in einhorn.gemspec
gemspec

gem "standard", group: [:development, :test]
group :development, :test do
gem "standard"
gem "debug"
end
2 changes: 1 addition & 1 deletion einhorn.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Gem::Specification.new do |gem|

gem.add_development_dependency "rake", "~> 13"
gem.add_development_dependency "minitest", "~> 5"
gem.add_development_dependency "mocha", "~> 1"
gem.add_development_dependency "mocha", "~> 2"
gem.add_development_dependency "subprocess", "~> 1"
end
2 changes: 1 addition & 1 deletion test/_lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require "minitest/spec"
require "mocha/minitest"

class EinhornTestCase < ::MiniTest::Spec
class EinhornTestCase < ::Minitest::Spec
def setup
# Put global stubs here
end
Expand Down
4 changes: 2 additions & 2 deletions test/integration/_lib/helpers/einhorn_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def einhorn_code_dir

def default_einhorn_command
cmd = ["bundle", "exec"]
cmd << "--keep-file-descriptors" if RUBY_VERSION >= "2.0"
cmd << "--keep-file-descriptors"
cmd << File.expand_path("bin/einhorn", einhorn_code_dir)

cmd
Expand Down Expand Up @@ -125,7 +125,7 @@ def wait_for_open_port
end

def read_from_port
ewouldblock = (RUBY_VERSION >= "1.9.0") ? IO::WaitWritable : Errno::EINPROGRESS
ewouldblock = IO::WaitWritable
socket = Socket.new(Socket::PF_INET, Socket::SOCK_STREAM, 0)
sockaddr = Socket.pack_sockaddr_in(@port, "127.0.0.1")
begin
Expand Down

0 comments on commit 54de0e1

Please sign in to comment.