#encoding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'minitest/byebug'

Gem::Specification.new do |spec|
  spec.name          = "minitest-byebug"
  spec.version       = Minitest::Byebug::VERSION
  spec.authors       = ["Kasper Timm Hansen"]
  spec.email         = ["kaspth@gmail.com"]
  spec.summary       = %q{Minitest plugin that starts a byebug session on test failures}
  spec.homepage      = "https://github.com/kaspth/minitest-byebug"
  spec.license       = "MIT"

  spec.files         = `git ls-files`.split($/)
  spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
  spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
  spec.require_paths = ["lib"]

  spec.add_dependency "byebug", "~> 1.8.2"
  spec.add_dependency "minitest", "~> 5.0"

  spec.add_development_dependency "bundler", "~> 1.3"
  spec.add_development_dependency "rake"
end

#encoding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'minitest/byebug'

Gem::Specification.new do |spec|
  spec.name          = "minitest-byebug"
  spec.version       = Minitest::Byebug::VERSION
  spec.authors       = ["Kasper Timm Hansen"]
  spec.email         = ["kaspth@gmail.com"]
  spec.summary       = %q{Minitest plugin that starts a byebug session on test failures}
  spec.homepage      = "https://github.com/kaspth/minitest-byebug"
  spec.license       = "MIT"

  spec.files         = `git ls-files`.split($/)
  spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
  spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
  spec.require_paths = ["lib"]

  spec.add_dependency "byebug"
  spec.add_dependency "minitest", "~> 5.0"

  spec.add_development_dependency "bundler", "~> 1.3"
  spec.add_development_dependency "rake"
end

Remove version restriction on byebug.
Remove version restriction on byebug.

Latest version of byebug is 3.5.1, so let’s not restrict byebug at all. The `byebug` method seems to be a fairly stable interface to byebug starting the debugger in code crossing versions.

The reason to restrict minitest is because of the plug-in interface; if the interface changes in an incompatible way in minitest 6 (not likely, but possible), then we don’t want the minitest interface to break. The single interface to byebug seems to be safe to trust for any future version.