tracing 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84d4d4f8efb01206dd0ee3dbb63532fa393e52df
4
- data.tar.gz: 340bc352b682059e1ddbb64c8acd890ad07ebec1
3
+ metadata.gz: 05ab92f2f09de0906d0e795a21f47e4267319d21
4
+ data.tar.gz: 4c488aebe3862a891f362652913b3d160b3c6349
5
5
  SHA512:
6
- metadata.gz: f6e1dc61dd29d0ff9ebb0ace44ff73f88760a233dd393c7d05d5a7dfc878cd9a122b0ebb17b90dec13ac52f122ff2784027a500b38a40dda6cfdd677a4328bd6
7
- data.tar.gz: cbd2d6eeeadc301d574389402151d5c15b75fc2476d649c05c34ce2aee64558b10e002d4eda1ba2b9462c5bd7b18019a6c9f0e6c0d44a65315d9055a5dc6c706
6
+ metadata.gz: 362ab2a3e417513b8fe91caaef647dfd4544ff1b5df9d2a1d6bee3b20408c20887e74e6205433387e9182a5709ddb4546bc67faa94e30546c7c7172ce587ab2c
7
+ data.tar.gz: 581c694d6d57228b27326aea7b27c4806d1cf5723d4616c70d8180f23b8602bdc84bcbf07661e9e7aa9469b412b07c15e940c5629477c070e05d95f08a9363d0
@@ -190,9 +190,17 @@ module Tracing
190
190
 
191
191
  def initialize *args, &b
192
192
  send(:firstaid_initialize, *args, &b)
193
+ # Array#flatten calls to_ary, ignore it when it comes from Gem Specifications:
193
194
  return if NoMethodError === self && message =~ /^undefined method `to_ary' for \#<Gem::Specification/
195
+
196
+ # LoadErrors are not hard to diagnose, and polyglot uses them
194
197
  return if LoadError === self
195
- puts "Stopped due to #{self.class}: #{message} at "+caller*"\n\t"
198
+
199
+ # The Array() method calls to_ary and/or to_a before making a new array, ignore that:
200
+ clr = caller
201
+ return if NoMethodError === self && clr.detect{|frame| frame =~ /in `Array'/}
202
+
203
+ puts "Stopped due to #{self.class}: #{message} at "+clr*"\n\t"
196
204
  debugger
197
205
  true # Stopped in Exception constructor
198
206
  end
@@ -1,3 +1,3 @@
1
1
  module Tracing
2
- VERSION = "2.0.3"
2
+ VERSION = "2.0.4"
3
3
  end
@@ -30,8 +30,6 @@ debugging.
30
30
  ]
31
31
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
32
32
 
33
- spec.add_runtime_dependency(%q<rbtree-pure>, [">= 0.1.1", "~> 0"])
34
-
35
33
  spec.add_development_dependency "bundler", ">= 1.10", "~> 1.10.6"
36
34
  spec.add_development_dependency "rake", "~> 10.0"
37
35
  spec.add_development_dependency "rspec", "~> 3.3"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tracing
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clifford Heath
@@ -10,26 +10,6 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2015-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rbtree-pure
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 0.1.1
20
- - - "~>"
21
- - !ruby/object:Gem::Version
22
- version: '0'
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: 0.1.1
30
- - - "~>"
31
- - !ruby/object:Gem::Version
32
- version: '0'
33
13
  - !ruby/object:Gem::Dependency
34
14
  name: bundler
35
15
  requirement: !ruby/object:Gem::Requirement