pry-nav 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ ## 0.2.3 (2012-12-16)
2
+
3
+ * Safer `alias_method_chain`-style patching of `Pry.start` and
4
+ `PryRemote::Server#teardown`. (@benizi)
5
+
1
6
  ## 0.2.2 (2012-06-14)
2
7
 
3
8
  * Upgrade to Pry 0.9.10. (@banister)
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
- **Notice:** Using MRI 1.9.2+? Check out [**pry-debugger**][pry-debugger].
2
- Includes the same features as **pry-nav** with faster tracing, breakpoints, and
3
- other additional capabilities.
1
+ ### Using MRI 1.9.2+? Switch to [**pry-debugger**][pry-debugger].
4
2
 
3
+ Same features as **pry-nav** but with faster tracing, breakpoints, and more.
4
+
5
+ * * *
5
6
 
6
7
  pry-nav
7
8
  =======
@@ -52,6 +53,7 @@ results and almost no performance penalty.
52
53
  * Gopal Patel (@nixme)
53
54
  * John Mair (@banister)
54
55
  * Conrad Irwin (@ConradIrwin)
56
+ * Benjamin R. Haskell (@benizi)
55
57
 
56
58
  Patches and bug reports are welcome. Just send a [pull request][pullrequests] or
57
59
  file an [issue][issues]. [Project changelog][changelog].
@@ -2,19 +2,21 @@ require 'pry'
2
2
  require 'pry-nav/tracer'
3
3
 
4
4
  class << Pry
5
- alias_method :start_existing, :start
5
+ alias_method :start_without_pry_nav, :start
6
6
 
7
- def start(target = TOPLEVEL_BINDING, options = {})
7
+ def start_with_pry_nav(target = TOPLEVEL_BINDING, options = {})
8
8
  old_options = options.reject { |k, _| k == :pry_remote }
9
9
 
10
10
  if target.is_a?(Binding) && PryNav.check_file_context(target)
11
11
  # Wrap the tracer around the usual Pry.start
12
12
  PryNav::Tracer.new(options).run do
13
- start_existing(target, old_options)
13
+ start_without_pry_nav(target, old_options)
14
14
  end
15
15
  else
16
16
  # No need for the tracer unless we have a file context to step through
17
- start_existing(target, old_options)
17
+ start_without_pry_nav(target, old_options)
18
18
  end
19
19
  end
20
+
21
+ alias_method :start, :start_with_pry_nav
20
22
  end
@@ -21,11 +21,12 @@ module PryRemote
21
21
  end
22
22
 
23
23
  # Override to reset our saved global current server session.
24
- alias_method :teardown_existing, :teardown
25
- def teardown
26
- teardown_existing
24
+ alias_method :teardown_without_pry_nav, :teardown
25
+ def teardown_with_pry_nav
26
+ teardown_without_pry_nav
27
27
  PryNav.current_remote_server = nil
28
28
  end
29
+ alias_method :teardown, :teardown_with_pry_nav
29
30
  end
30
31
  end
31
32
 
@@ -1,3 +1,3 @@
1
1
  module PryNav
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
@@ -20,5 +20,5 @@ Gem::Specification.new do |gem|
20
20
  # Dependencies
21
21
  gem.required_ruby_version = '>= 1.8.7'
22
22
  gem.add_runtime_dependency 'pry', '~> 0.9.10'
23
- gem.add_development_dependency 'pry-remote', '~> 0.1.1'
23
+ gem.add_development_dependency 'pry-remote', '~> 0.1.6'
24
24
  end
metadata CHANGED
@@ -1,38 +1,48 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry-nav
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
5
4
  prerelease:
5
+ version: 0.2.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Gopal Patel
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-14 00:00:00.000000000 Z
12
+ date: 2012-12-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: pry
16
- requirement: &70284073919060 !ruby/object:Gem::Requirement
17
- none: false
15
+ version_requirements: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.9.10
20
+ none: false
21
+ name: pry
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70284073919060
25
- - !ruby/object:Gem::Dependency
26
- name: pry-remote
27
- requirement: &70284073917940 !ruby/object:Gem::Requirement
24
+ requirement: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ version: 0.9.10
28
29
  none: false
30
+ - !ruby/object:Gem::Dependency
31
+ version_requirements: !ruby/object:Gem::Requirement
29
32
  requirements:
30
33
  - - ~>
31
34
  - !ruby/object:Gem::Version
32
- version: 0.1.1
35
+ version: 0.1.6
36
+ none: false
37
+ name: pry-remote
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70284073917940
40
+ requirement: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: 0.1.6
45
+ none: false
36
46
  description: Turn Pry into a primitive debugger. Adds 'step' and 'next' commands to
37
47
  control execution.
38
48
  email: nixme@stillhope.com
@@ -62,20 +72,20 @@ rdoc_options: []
62
72
  require_paths:
63
73
  - lib
64
74
  required_ruby_version: !ruby/object:Gem::Requirement
65
- none: false
66
75
  requirements:
67
76
  - - ! '>='
68
77
  - !ruby/object:Gem::Version
69
78
  version: 1.8.7
70
- required_rubygems_version: !ruby/object:Gem::Requirement
71
79
  none: false
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
81
  requirements:
73
82
  - - ! '>='
74
83
  - !ruby/object:Gem::Version
75
84
  version: '0'
85
+ none: false
76
86
  requirements: []
77
87
  rubyforge_project:
78
- rubygems_version: 1.8.11
88
+ rubygems_version: 1.8.23
79
89
  signing_key:
80
90
  specification_version: 3
81
91
  summary: Simple execution navigation for Pry.