Skip to content

Commit

Permalink
Merge pull request zombocom#182 from schneems/schneems/dead_end
Browse files Browse the repository at this point in the history
Add dead_end for better syntax debugging
  • Loading branch information
schneems authored Jan 14, 2021
2 parents 0a66008 + 468c271 commit 214aa50
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## HEAD

- Syntax errors easier to debug with `dead_end` gem (https://github.com/schneems/derailed_benchmarks/pull/182)
- Minimum ruby version is now 2.5 (https://github.com/schneems/derailed_benchmarks/pull/183)
- Histograms are now printed side-by-side (https://github.com/schneems/derailed_benchmarks/pull/179)

Expand Down
3 changes: 2 additions & 1 deletion derailed_benchmarks.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ Gem::Specification.new do |gem|
gem.add_dependency "rake", "> 10", "< 14"
gem.add_dependency "thor", ">= 0.19", "< 2"
gem.add_dependency "ruby-statistics", ">= 2.1"
gem.add_dependency "mini_histogram", ">= 0.3.0"
gem.add_dependency "mini_histogram", ">= 0.3.0"
gem.add_dependency "dead_end", ">= 0"

gem.add_development_dependency "webrick", ">= 0"
gem.add_development_dependency "capybara", "~> 2"
Expand Down
3 changes: 2 additions & 1 deletion lib/derailed_benchmarks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

require 'time'
require 'bundler'

require 'get_process_mem'

require 'dead_end'

module DerailedBenchmarks
def self.gem_is_bundled?(name)
specs = ::Bundler.locked_gems.specs.each_with_object({}) {|spec, hash| hash[spec.name] = spec }
Expand Down

0 comments on commit 214aa50

Please sign in to comment.