summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2023-01-01 16:20:36 -0300
committerGitHub <noreply@github.com>2023-01-01 16:20:36 -0300
commit468cf20986ce5072dbad6500ec20554cb420e66d (patch)
treeb617a33b14ab59929a3611c4dbd38ebcf031cab5
parentee81361936cb9b2241ef5947ec4a269e1326a5fe (diff)
parentcdc2b9e6a628edb8471c0a8aff7f569cfd52481b (diff)
downloadpry-468cf20986ce5072dbad6500ec20554cb420e66d.tar.gz
Merge pull request #2257 from dduugg/rm-mri-19-cruft
Clean up MRI 1.9 code
-rw-r--r--Dockerfile1
-rw-r--r--lib/pry/helpers/platform.rb5
-rw-r--r--lib/pry/repl.rb3
3 files changed, 1 insertions, 8 deletions
diff --git a/Dockerfile b/Dockerfile
index e55c246c..90feb7f8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,7 +7,6 @@ RUN wget --no-check-certificate -O ruby-install-0.4.3.tar.gz https://github.com/
RUN tar -xzvf ruby-install-0.4.3.tar.gz
RUN cd ruby-install-0.4.3 && make install
-RUN ruby-install ruby 1.9.3
RUN ruby-install ruby 2.1.1
RUN ruby-install ruby 2.1.2
diff --git a/lib/pry/helpers/platform.rb b/lib/pry/helpers/platform.rb
index 3af4d3f7..632e71d4 100644
--- a/lib/pry/helpers/platform.rb
+++ b/lib/pry/helpers/platform.rb
@@ -47,11 +47,6 @@ class Pry
end
# @return [Boolean]
- def self.mri_19?
- mri? && RUBY_VERSION.start_with?('1.9')
- end
-
- # @return [Boolean]
def self.mri_2?
mri? && RUBY_VERSION.start_with?('2')
end
diff --git a/lib/pry/repl.rb b/lib/pry/repl.rb
index ba032c7f..9a58b827 100644
--- a/lib/pry/repl.rb
+++ b/lib/pry/repl.rb
@@ -141,8 +141,7 @@ class Pry
retry
# Handle <Ctrl+C> like Bash: empty the current input buffer, but don't
- # quit. This is only for MRI 1.9; other versions of Ruby don't let you
- # send Interrupt from within Readline.
+ # quit.
rescue Interrupt
return :control_c