8000 Comparing jruby:master...janx:master · jruby/jruby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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: master
Choose a base ref
...
head repository: janx/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Sep 8, 2011

  1. 5F03

    skip to_ary if it yields non-array result in 1.9 proc call:

    * How to reproduce:
    
        require 'rubygems'
        require 'builder'
    
        b = Builder::XmlMarkup.new
        p = proc { puts 1 }
        p.call b
    
    Above code will raise exception on jruby 1.9, pass on MRI 1.9.
    
    * Cause:
    
    Classes like Builder::XmlMarkup changes common methods like to_ary
    to return different type result, so it's not safe to expect to_ary
    always return a ruby Array.
    Jan Xie committed Sep 8, 2011
    Configuration menu
    Copy the full SHA
    c780525 View commit details
    Browse the repository at this point in the history
Loading
0