pry-exception_explorer 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -30,8 +30,8 @@ In the Ruby file:
30
30
  ```ruby
31
31
  require 'pry-exception_explorer'
32
32
 
33
- PryExceptionExplorer.enabled = true
34
- PryExceptionExplorer.intercept(ArgumentError)
33
+ EE.enabled = true
34
+ EE.intercept(ArgumentError)
35
35
 
36
36
  def alpha
37
37
  name = "john"
@@ -27,6 +27,18 @@ module PryExceptionExplorer
27
27
  @hash ||= {}
28
28
  end
29
29
 
30
+ # Enable Exception Explorer.
31
+ # @return [Boolean]
32
+ def enable!
33
+ self.enabled = true
34
+ end
35
+
36
+ # Disable Exception Explorer.
37
+ # @return [Boolean]
38
+ def disable!
39
+ self.enabled = false
40
+ end
41
+
30
42
  # @param [Boolean] v Whether Exception Explorer is enabled.
31
43
  def enabled=(v)
32
44
  local_hash[:enabled] = v
@@ -1,3 +1,3 @@
1
1
  module PryExceptionExplorer
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "pry-exception_explorer"
5
- s.version = "0.1.5"
5
+ s.version = "0.1.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["John Mair (banisterfiend)"]
9
- s.date = "2012-02-08"
9
+ s.date = "2012-02-10"
10
10
  s.description = "Enter the context of exceptions"
11
11
  s.email = "jrmair@gmail.com"
12
12
  s.files = [".gemtest", ".gitignore", ".travis.yml", ".yardopts", "CHANGELOG", "Gemfile", "LICENSE", "README.md", "Rakefile", "examples/example_c_inline.rb", "examples/example_inline.rb", "examples/example_wrap.rb", "lib/pry-exception_explorer.rb", "lib/pry-exception_explorer/cli.rb", "lib/pry-exception_explorer/commands.rb", "lib/pry-exception_explorer/core_ext.rb", "lib/pry-exception_explorer/intercept.rb", "lib/pry-exception_explorer/lazy_frame.rb", "lib/pry-exception_explorer/shim_builder.rb", "lib/pry-exception_explorer/version.rb", "pry-exception_explorer.gemspec", "test/helper.rb", "test/test_exceptions_in_pry.rb", "test/test_inline_exceptions.rb", "test/test_raise.rb", "test/test_wrapped_exceptions.rb"]
@@ -20,16 +20,16 @@ Gem::Specification.new do |s|
20
20
  s.specification_version = 3
21
21
 
22
22
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
23
- s.add_runtime_dependency(%q<pry-stack_explorer>, [">= 0"])
23
+ s.add_runtime_dependency(%q<pry-stack_explorer>, [">= 0.3.9"])
24
24
  s.add_development_dependency(%q<bacon>, ["~> 1.1.0"])
25
25
  s.add_development_dependency(%q<rake>, ["~> 0.9"])
26
26
  else
27
- s.add_dependency(%q<pry-stack_explorer>, [">= 0"])
27
+ s.add_dependency(%q<pry-stack_explorer>, [">= 0.3.9"])
28
28
  s.add_dependency(%q<bacon>, ["~> 1.1.0"])
29
29
  s.add_dependency(%q<rake>, ["~> 0.9"])
30
30
  end
31
31
  else
32
- s.add_dependency(%q<pry-stack_explorer>, [">= 0"])
32
+ s.add_dependency(%q<pry-stack_explorer>, [">= 0.3.9"])
33
33
  s.add_dependency(%q<bacon>, ["~> 1.1.0"])
34
34
  s.add_dependency(%q<rake>, ["~> 0.9"])
35
35
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pry-exception_explorer
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.6
5
+ version: 0.1.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - John Mair (banisterfiend)
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-02-09 00:00:00 Z
13
+ date: 2012-02-10 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pry-stack_explorer