pry 0.10.3 → 0.10.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f539f89339ca2e09e86dae119e279afba051be1d
4
- data.tar.gz: 1c3daace25b57e644d5800c0aff32b59082d1193
3
+ metadata.gz: f1b85ec70167eee63c4f58e11c27f2c1f94f49db
4
+ data.tar.gz: 08a2b56e67aef2cdaf4fb6c4aa3ac0c1e8bf395f
5
5
  SHA512:
6
- metadata.gz: aee9ba33ae88e346db9a497478183f1f1af564a6916fe19364355f30361a24b3b26a2f9b45d6477eaf755a0352116e48436a6523a1d4ccaa1b51785afd46867e
7
- data.tar.gz: 5a396b134d69cef8abfee8086a6b355b0dd1e2113af9237f27e90695b64f81f8bd51b9b5a3a8ae7fc51628fbf59eee51a13457357243ef8d3cea2456e6e79aaa
6
+ metadata.gz: f82d5ccba499a9dc6a11bc48496424f691248134bad714cdaf8704bc95ffd3368fa07471d3651f464fcf92cac0b0779860276fa973783f1b2bd34b338c14ce92
7
+ data.tar.gz: 088a2f47add7c3e16ca078f4e84ebac15b05051d945b3f5c25a295292ec6478bf5bbe0c6752a143f16d323116fbf1e19ebd72b5fbbfa716830a9181a768fe20a
@@ -91,6 +91,8 @@ class Pry
91
91
  @lines = lines.each_with_index.map { |line, lineno|
92
92
  LOC.new(line, lineno + start_line.to_i) }
93
93
  @code_type = code_type
94
+
95
+ @with_marker = @with_indentation = nil
94
96
  end
95
97
 
96
98
  # Append the given line. +lineno+ is one more than the last existing
@@ -4,6 +4,12 @@ class Pry
4
4
 
5
5
  command_options :shellwords => false, :interpolate => false
6
6
 
7
+ def initialize(*)
8
+ super
9
+
10
+ @used_super = nil
11
+ end
12
+
7
13
  def options(opt)
8
14
  opt.on :s, :super, "Select the 'super' method. Can be repeated to traverse the ancestors", :as => :count
9
15
  opt.on :l, "line-numbers", "Show line numbers"
@@ -1,6 +1,12 @@
1
1
  class Pry
2
2
  class Command::Whereami < Pry::ClassCommand
3
3
 
4
+ def initialize(*)
5
+ super
6
+
7
+ @method_code = nil
8
+ end
9
+
4
10
  class << self
5
11
  attr_accessor :method_size_cutoff
6
12
  end
@@ -83,7 +83,7 @@ class Pry
83
83
  def read_from_file
84
84
  path = history_file_path
85
85
 
86
- if File.exists?(path)
86
+ if File.exist?(path)
87
87
  File.foreach(path) { |line| yield(line) }
88
88
  end
89
89
  rescue => error
@@ -49,6 +49,7 @@ class Pry
49
49
  raise CommandError, "No such module candidate. Allowed candidates range is from 0 to #{number_of_candidates - 1}"
50
50
  end
51
51
 
52
+ @source = @source_location = nil
52
53
  @rank = rank
53
54
  @file, @line = source_location
54
55
  end
@@ -133,6 +133,8 @@ class Pry::Pager
133
133
  pager
134
134
  end
135
135
 
136
+ @system_pager = nil
137
+
136
138
  def self.available?
137
139
  if @system_pager.nil?
138
140
  @system_pager = begin
@@ -151,6 +153,7 @@ class Pry::Pager
151
153
  super
152
154
  @tracker = PageTracker.new(height, width)
153
155
  @buffer = ""
156
+ @pager = nil
154
157
  end
155
158
 
156
159
  def write(str)
@@ -1,3 +1,3 @@
1
1
  class Pry
2
- VERSION = "0.10.3"
2
+ VERSION = "0.10.4"
3
3
  end
@@ -63,6 +63,7 @@ class Pry
63
63
  @source = nil
64
64
  @source_location = nil
65
65
  @doc = nil
66
+ @all_source_locations_by_popularity = nil
66
67
  end
67
68
 
68
69
  # Returns an array of the names of the constants accessible in the wrapped
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.3
4
+ version: 0.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mair (banisterfiend)
@@ -10,62 +10,62 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-10-15 00:00:00.000000000 Z
13
+ date: 2016-07-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: coderay
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ~>
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
21
  version: 1.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ~>
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
28
  version: 1.1.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: slop
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ~>
33
+ - - "~>"
34
34
  - !ruby/object:Gem::Version
35
35
  version: '3.4'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ~>
40
+ - - "~>"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '3.4'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: method_source
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ~>
47
+ - - "~>"
48
48
  - !ruby/object:Gem::Version
49
49
  version: 0.8.1
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ~>
54
+ - - "~>"
55
55
  - !ruby/object:Gem::Version
56
56
  version: 0.8.1
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: bundler
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ~>
61
+ - - "~>"
62
62
  - !ruby/object:Gem::Version
63
63
  version: '1.0'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ~>
68
+ - - "~>"
69
69
  - !ruby/object:Gem::Version
70
70
  version: '1.0'
71
71
  description: An IRB alternative and runtime developer console
@@ -217,17 +217,17 @@ require_paths:
217
217
  - lib
218
218
  required_ruby_version: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - '>='
220
+ - - ">="
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  requirements:
225
- - - '>='
225
+ - - ">="
226
226
  - !ruby/object:Gem::Version
227
227
  version: '0'
228
228
  requirements: []
229
229
  rubyforge_project:
230
- rubygems_version: 2.0.14
230
+ rubygems_version: 2.5.1
231
231
  signing_key:
232
232
  specification_version: 4
233
233
  summary: An IRB alternative and runtime developer console