mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Ability to use byebug easily while developing/testing
This commit is contained in:
parent
c9cd0239a4
commit
2406435663
3 changed files with 10 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -5,3 +5,4 @@ bin
|
||||||
*.gemfile.lock
|
*.gemfile.lock
|
||||||
.ruby-version
|
.ruby-version
|
||||||
.ruby-gemset
|
.ruby-gemset
|
||||||
|
.byebug_history
|
||||||
|
|
|
||||||
|
|
@ -41,4 +41,9 @@ Gem::Specification.new do |s|
|
||||||
#
|
#
|
||||||
# See https://github.com/guard/guard-minitest/pull/131
|
# See https://github.com/guard/guard-minitest/pull/131
|
||||||
s.add_development_dependency 'guard'
|
s.add_development_dependency 'guard'
|
||||||
|
|
||||||
|
# byebug only works with MRI
|
||||||
|
if RUBY_ENGINE == "ruby"
|
||||||
|
s.add_development_dependency 'byebug'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,10 @@ rescue LoadError
|
||||||
#nothing to do here
|
#nothing to do here
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if RUBY_ENGINE == "ruby"
|
||||||
|
require "byebug"
|
||||||
|
end
|
||||||
|
|
||||||
class MiniTest::Spec
|
class MiniTest::Spec
|
||||||
|
|
||||||
include Rack::Test::Methods
|
include Rack::Test::Methods
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue