Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tempfile#open doesn't support default argument #5735

Closed
nori0320 opened this issue May 17, 2019 · 2 comments
Closed

Tempfile#open doesn't support default argument #5735

nori0320 opened this issue May 17, 2019 · 2 comments
Milestone

Comments

@nori0320
Copy link

@nori0320 nori0320 commented May 17, 2019

Environment

% uname -a
Darwin xxxxxxxx.local 16.7.0 Darwin Kernel Version 16.7.0: Sun Oct 28 22:30:19 PDT 2018; root:xnu-3789.73.27~1/RELEASE_X86_64 x86_64

% jruby -v
jruby 9.2.7.0 (2.5.3) 2019-04-09 8a269e3 Java HotSpot(TM) 64-Bit Server VM 25.202-b08 on 1.8.0_202-b08 +jit [darwin-x86_64]

% ruby -v
ruby 2.4.5p335 (2018-10-18 revision 65137) [x86_64-darwin16]

Expected Behavior

% ruby -v
ruby 2.4.5p335 (2018-10-18 revision 65137) [x86_64-darwin16]
% irb
irb(main):001:0> require 'tempfile'
=> true
irb(main):002:0> Tempfile.open {}
=> nil

Actual Behavior

% jruby -v
jruby 9.2.7.0 (2.5.3) 2019-04-09 8a269e3 Java HotSpot(TM) 64-Bit Server VM 25.202-b08 on 1.8.0_202-b08 +jit [darwin-x86_64]
% irb
irb(main):001:0> require 'tempfile'
=> true
irb(main):002:0> Tempfile.open {}
Traceback (most recent call last):
        6: from /Users/xxxxxx/.rbenv/versions/jruby-9.2.7.0/bin/irb:13:in `<main>'
        5: from org/jruby/RubyKernel.java:1193:in `catch'
        4: from org/jruby/RubyKernel.java:1193:in `catch'
        3: from org/jruby/RubyKernel.java:1425:in `loop'
        2: from org/jruby/RubyKernel.java:1061:in `eval'
        1: from (irb):2:in `evaluate'
ArgumentError (wrong number of arguments (given 0, expected 1..3))
@headius
Copy link
Member

@headius headius commented May 20, 2019

🤔

Loading

@headius headius closed this in 3b9ac0d May 20, 2019
headius added a commit that referenced this issue May 20, 2019
@headius headius added this to the JRuby 9.2.8.0 milestone May 20, 2019
eregon added a commit to ruby/spec that referenced this issue May 28, 2019
@Adithya-copart
Copy link

@Adithya-copart Adithya-copart commented Jul 6, 2019

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants