Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 19a43e1ea40c
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7c6f524a7ec0
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Dec 28, 2017

  1. Require Kernel#pp by default

    For more information, please see feature #14123.
    nomadium committed Dec 28, 2017
    Copy the full SHA
    87c702c View commit details

Commits on Jan 10, 2018

  1. Merge pull request #4914 from nomadium/require-pp-in-kernel

    Make Kernel#pp available by default
    enebo authored Jan 10, 2018
    Copy the full SHA
    7c6f524 View commit details
Showing with 10 additions and 0 deletions.
  1. +1 −0 core/src/main/ruby/jruby/kernel.rb
  2. +9 −0 core/src/main/ruby/jruby/kernel/pp.rb
1 change: 1 addition & 0 deletions core/src/main/ruby/jruby/kernel.rb
Original file line number Diff line number Diff line change
@@ -31,5 +31,6 @@
load 'jruby/kernel/basicobject.rb'
load 'jruby/kernel/hash.rb'
load 'jruby/kernel/string.rb'
load 'jruby/kernel/pp.rb'

$" << 'thread.rb'
9 changes: 9 additions & 0 deletions core/src/main/ruby/jruby/kernel/pp.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Kernel
def pp(*objs)
require 'pp'
pp(*objs)
end

# suppress redefinition warning
alias pp pp # :nodoc:
end