dexc 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (7) hide show
  1. checksums.yaml +4 -4
  2. data/BSDL +1 -1
  3. data/COPYING +1 -1
  4. data/dexc.gemspec +1 -0
  5. data/lib/dexc.rb +15 -9
  6. data/lib/dexc/version.rb +1 -1
  7. metadata +23 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22ffadb2a8fd9aeabe0d5582aafe1231bcdb24b8
4
- data.tar.gz: aa1f0adb35679ae4a24b4e17de3b3bec224a058a
3
+ metadata.gz: fa1312aa4c3a44113ff7fecaa6e2e1fc38e1a389
4
+ data.tar.gz: 6aad9ecdde10db98b53618eecee06fa071e8d238
5
5
  SHA512:
6
- metadata.gz: 5e77c775cac363ccb8f6b8d10b375e7e6d95c15f6112d0a5f1d369e8f6227b1d719649c5d0884ed8c692f5febfcb3c34f2c1303894e669419c574c8a09819a2b
7
- data.tar.gz: 42c204ebb02bdc796217d8b38608f39214e83236aa398dd96d212ee41a83c9ba7b680cf7bf2c0aebacd7d91dd3d1a4b384c20b4f8b93dc7469103b8a06ce7dbf
6
+ metadata.gz: cc5a2f85d36d611efae7d6d133664fd5d1ea8bab46068a22b59ffdc3dfe8b3e2a64a72f46b896f1833abc77226f6541706915c919940de9fcad43f1adff4c4a7
7
+ data.tar.gz: e99d13437da5c18ec260b516ccd00c4239bdab5f255d1f5f83181fd35a9d261faea915cdf801f6b73e9b0165048015af5f95b9611491844d50df39504624380e
data/BSDL CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (C) 2013 Kazuki Tsujimoto, All rights reserved.
1
+ Copyright (C) 2013-2016 Kazuki Tsujimoto, All rights reserved.
2
2
  Copyright (C) 1993-2013 Yukihiro Matsumoto. All rights reserved. (lib/irb.rb)
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
data/COPYING CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (C) 2013 Kazuki Tsujimoto, All rights reserved.
1
+ Copyright (C) 2013-2016 Kazuki Tsujimoto, All rights reserved.
2
2
  Copyright (C) 1993-2013 Yukihiro Matsumoto. All rights reserved. (lib/irb.rb)
3
3
 
4
4
  You can redistribute it and/or modify it under either the terms of the
@@ -15,6 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f) }
16
16
  s.require_paths = ['lib']
17
17
  s.add_development_dependency 'rake'
18
+ s.add_development_dependency 'test-unit'
18
19
  s.extra_rdoc_files = ['README.rdoc']
19
20
  s.rdoc_options = ['--main', 'README.rdoc']
20
21
  end
@@ -1,6 +1,6 @@
1
1
  # dexc.rb
2
2
  #
3
- # Copyright (C) 2013 Kazuki Tsujimoto, All rights reserved.
3
+ # Copyright (C) 2013-2016 Kazuki Tsujimoto, All rights reserved.
4
4
 
5
5
  raise LoadError, "TracePoint is undefined. Use Ruby 2.0.0 or later." unless defined? TracePoint
6
6
 
@@ -29,9 +29,10 @@ module Dexc
29
29
  RaiseEvent = Struct.new(:event, :raised_exception)
30
30
  ReturnEvent = Struct.new(:event, :lineno, :path, :defined_class, :method_id, :return_value)
31
31
 
32
- # See MiniTest::Unit::TestCase::PASSTHROUGH_EXCEPTIONS
33
- # to know why SystemExit is used
34
- class ExceptionWrapper < SystemExit
32
+ # See MiniTest::Unit::TestCase::PASSTHROUGH_EXCEPTIONS,
33
+ # Test::Unit::ErrorHandler::PASS_THROUGH_EXCEPTIONS
34
+ # to know why Interrupt is used
35
+ class ExceptionWrapper < NoMemoryError
35
36
  attr_reader :wrapped_exception
36
37
 
37
38
  def initialize(wrapped_exception)
@@ -40,7 +41,7 @@ module Dexc
40
41
  end
41
42
  end
42
43
 
43
- module MiniTestPassThroughException
44
+ module TestPassThroughException
44
45
  def run_test(*)
45
46
  super
46
47
  rescue => e
@@ -51,10 +52,15 @@ module Dexc
51
52
  class ::Object
52
53
  prepend Module.new {
53
54
  def require(path)
54
- super
55
- if path == 'minitest/unit'
56
- MiniTest::Unit::TestCase.class_eval do
57
- prepend MiniTestPassThroughException
55
+ super.tap do
56
+ if path == 'minitest/unit'
57
+ MiniTest::Unit::TestCase.class_eval do
58
+ prepend TestPassThroughException
59
+ end
60
+ elsif path == 'test/unit'
61
+ Test::Unit::TestCase.class_eval do
62
+ prepend TestPassThroughException
63
+ end
58
64
  end
59
65
  end
60
66
  end
@@ -1,3 +1,3 @@
1
1
  module Dexc
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,27 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dexc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuki Tsujimoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-18 00:00:00.000000000 Z
11
+ date: 2016-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: test-unit
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
25
39
  - !ruby/object:Gem::Version
26
40
  version: '0'
27
41
  description: Automatically start the REPL and show trace on an exception to debug.
@@ -32,7 +46,7 @@ extensions: []
32
46
  extra_rdoc_files:
33
47
  - README.rdoc
34
48
  files:
35
- - .gitignore
49
+ - ".gitignore"
36
50
  - BSDL
37
51
  - COPYING
38
52
  - Gemfile
@@ -47,23 +61,23 @@ licenses: []
47
61
  metadata: {}
48
62
  post_install_message:
49
63
  rdoc_options:
50
- - --main
64
+ - "--main"
51
65
  - README.rdoc
52
66
  require_paths:
53
67
  - lib
54
68
  required_ruby_version: !ruby/object:Gem::Requirement
55
69
  requirements:
56
- - - '>='
70
+ - - ">="
57
71
  - !ruby/object:Gem::Version
58
72
  version: '0'
59
73
  required_rubygems_version: !ruby/object:Gem::Requirement
60
74
  requirements:
61
- - - '>='
75
+ - - ">="
62
76
  - !ruby/object:Gem::Version
63
77
  version: '0'
64
78
  requirements: []
65
79
  rubyforge_project:
66
- rubygems_version: 2.0.3
80
+ rubygems_version: 2.5.1
67
81
  signing_key:
68
82
  specification_version: 4
69
83
  summary: A library that helps you to debug an exception