[DRE-commits] [pry] 01/07: New upstream version 0.10.4

Youhei SASAKI uwabami-guest at moszumanska.debian.org
Wed Aug 30 06:57:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

uwabami-guest pushed a commit to branch master
in repository pry.

commit bdcd23ed4f0de03529b614a555487825b78fec73
Author: Youhei SASAKI <uwabami at gfd-dennou.org>
Date:   Wed Aug 30 15:49:47 2017 +0900

    New upstream version 0.10.4
---
 .gitignore                    | 18 ------------------
 lib/pry/code.rb               |  2 ++
 lib/pry/commands/show_info.rb |  6 ++++++
 lib/pry/commands/whereami.rb  |  6 ++++++
 lib/pry/history.rb            |  2 +-
 lib/pry/module_candidate.rb   |  1 +
 lib/pry/pager.rb              |  3 +++
 lib/pry/version.rb            |  2 +-
 lib/pry/wrapped_module.rb     |  1 +
 9 files changed, 21 insertions(+), 20 deletions(-)

diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index d56a4c2..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,18 +0,0 @@
-Makefile
-*.so
-*.o
-*.def
-*.rbc
-*.bundle
-doc/
-pkg/
-coverage/
-.yardoc/
-/tags
-vendor
-*.gem
-.rbx/
-.rvmrc
-Gemfile.lock
-*.swp
-**/*~
diff --git a/lib/pry/code.rb b/lib/pry/code.rb
index f58189e..da928b5 100644
--- a/lib/pry/code.rb
+++ b/lib/pry/code.rb
@@ -91,6 +91,8 @@ class Pry
       @lines = lines.each_with_index.map { |line, lineno|
         LOC.new(line, lineno + start_line.to_i) }
       @code_type = code_type
+
+      @with_marker = @with_indentation = nil
     end
 
     # Append the given line. +lineno+ is one more than the last existing
diff --git a/lib/pry/commands/show_info.rb b/lib/pry/commands/show_info.rb
index 92958cb..88a6264 100644
--- a/lib/pry/commands/show_info.rb
+++ b/lib/pry/commands/show_info.rb
@@ -4,6 +4,12 @@ class Pry
 
     command_options :shellwords => false, :interpolate => false
 
+    def initialize(*)
+      super
+
+      @used_super = nil
+    end
+
     def options(opt)
       opt.on :s, :super, "Select the 'super' method. Can be repeated to traverse the ancestors", :as => :count
       opt.on :l, "line-numbers", "Show line numbers"
diff --git a/lib/pry/commands/whereami.rb b/lib/pry/commands/whereami.rb
index ac70164..2ceff72 100644
--- a/lib/pry/commands/whereami.rb
+++ b/lib/pry/commands/whereami.rb
@@ -1,6 +1,12 @@
 class Pry
   class Command::Whereami < Pry::ClassCommand
 
+    def initialize(*)
+      super
+
+      @method_code = nil
+    end
+
     class << self
       attr_accessor :method_size_cutoff
     end
diff --git a/lib/pry/history.rb b/lib/pry/history.rb
index 81b7417..494a6b7 100644
--- a/lib/pry/history.rb
+++ b/lib/pry/history.rb
@@ -83,7 +83,7 @@ class Pry
     def read_from_file
       path = history_file_path
 
-      if File.exists?(path)
+      if File.exist?(path)
         File.foreach(path) { |line| yield(line) }
       end
     rescue => error
diff --git a/lib/pry/module_candidate.rb b/lib/pry/module_candidate.rb
index 4c97f13..831e34e 100644
--- a/lib/pry/module_candidate.rb
+++ b/lib/pry/module_candidate.rb
@@ -49,6 +49,7 @@ class Pry
           raise CommandError, "No such module candidate. Allowed candidates range is from 0 to #{number_of_candidates - 1}"
         end
 
+        @source = @source_location = nil
         @rank = rank
         @file, @line = source_location
       end
diff --git a/lib/pry/pager.rb b/lib/pry/pager.rb
index e5451d2..5394298 100644
--- a/lib/pry/pager.rb
+++ b/lib/pry/pager.rb
@@ -133,6 +133,8 @@ class Pry::Pager
       pager
     end
 
+    @system_pager = nil
+
     def self.available?
       if @system_pager.nil?
         @system_pager = begin
@@ -151,6 +153,7 @@ class Pry::Pager
       super
       @tracker = PageTracker.new(height, width)
       @buffer  = ""
+      @pager   = nil
     end
 
     def write(str)
diff --git a/lib/pry/version.rb b/lib/pry/version.rb
index 2a6bcc6..e0d2304 100644
--- a/lib/pry/version.rb
+++ b/lib/pry/version.rb
@@ -1,3 +1,3 @@
 class Pry
-  VERSION = "0.10.3"
+  VERSION = "0.10.4"
 end
diff --git a/lib/pry/wrapped_module.rb b/lib/pry/wrapped_module.rb
index bfa5793..f64e17d 100644
--- a/lib/pry/wrapped_module.rb
+++ b/lib/pry/wrapped_module.rb
@@ -63,6 +63,7 @@ class Pry
       @source = nil
       @source_location = nil
       @doc = nil
+      @all_source_locations_by_popularity = nil
     end
 
     # Returns an array of the names of the constants accessible in the wrapped

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/pry.git



More information about the Pkg-ruby-extras-commits mailing list