diff --git a/.rspec b/.rspec index 9cfec3b3..5e7aa5e1 100644 --- a/.rspec +++ b/.rspec @@ -1,6 +1,2 @@ --color --format NyanCatWideFormatter - ---require spec_helper ---order random ---format documentation diff --git a/Gemfile b/Gemfile index 1db6e2b4..20b30e9c 100644 --- a/Gemfile +++ b/Gemfile @@ -18,7 +18,7 @@ gem 'ims-lti' gem 'kramdown' gem 'newrelic_rpm' gem 'pg', platform: :ruby -gem 'pry' +gem 'pry-byebug' gem 'puma', '~> 2.15.3' gem 'pundit' gem 'rails', '~> 4.1.13' diff --git a/Gemfile.lock b/Gemfile.lock index a2739805..aba77147 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -190,6 +190,9 @@ GEM method_source (~> 0.8.1) slop (~> 3.4) spoon (~> 0.0) + pry-byebug (3.3.0) + byebug (~> 8.0) + pry (~> 0.10) puma (2.15.3) puma (2.15.3-java) pundit (1.1.0) @@ -324,6 +327,7 @@ GEM json (>= 1.8.0) unf (0.1.4) unf_ext + unf (0.1.4-java) unf_ext (0.0.7.1) unicode-display_width (0.3.1) web-console (2.3.0) @@ -380,7 +384,7 @@ DEPENDENCIES nokogiri nyan-cat-formatter pg - pry + pry-byebug puma (~> 2.15.3) pundit rails (~> 4.1.13) @@ -406,3 +410,6 @@ DEPENDENCIES uglifier (>= 1.3.0) web-console (~> 2.0) will_paginate (~> 3.0) + +BUNDLED WITH + 1.12.4 diff --git a/lib/docker_client.rb b/lib/docker_client.rb index aa1af299..cce2812b 100644 --- a/lib/docker_client.rb +++ b/lib/docker_client.rb @@ -191,6 +191,7 @@ class DockerClient container.port_bindings.values.each { |port| PortPool.release(port) } clean_container_workspace(container) if(container) + binding.pry container.delete(force: true, v: true) end rescue Docker::Error::NotFoundError => error diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 50e1ba0f..a251b8b2 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -15,6 +15,7 @@ # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration + unless RUBY_PLATFORM == 'java' if ENV['CODECLIMATE_REPO_TOKEN'] require 'codeclimate-test-reporter'