aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix unused warningsKazuhiro NISHIYAMA2020-01-032-24/+0
| | | | | | | | | | | | | | | | | http://ci.rvm.jp/results/trunk_gcc7@silicon-docker/2539622 ``` /tmp/ruby/v2/src/trunk_gcc7/class.c: In function 'rb_scan_args_parse': /tmp/ruby/v2/src/trunk_gcc7/class.c:1971:12: warning: unused variable 'tmp_buffer' [-Wunused-variable] VALUE *tmp_buffer = arg->tmp_buffer; ^~~~~~~~~~ ``` ``` In file included from /tmp/ruby/v2/src/trunk_gcc7/vm_insnhelper.c:1895:0, from /tmp/ruby/v2/src/trunk_gcc7/vm.c:349: /tmp/ruby/v2/src/trunk_gcc7/vm_args.c:212:1: warning: 'args_stored_kw_argv_to_hash' defined but not used [-Wunused-function] args_stored_kw_argv_to_hash(struct args_info *args) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
* Update specs for keyword argument separationJeremy Evans2020-01-025-213/+633
|
* Update tests for full keyword argument separationJeremy Evans2020-01-0212-1694/+556
|
* Fully separate positional arguments and keyword argumentsJeremy Evans2020-01-0216-679/+96
| | | | | | | | | | | | | | | | | | | | | | | | This removes the warnings added in 2.7, and changes the behavior so that a final positional hash is not treated as keywords or vice-versa. To handle the arg_setup_block splat case correctly with keyword arguments, we need to check if we are taking a keyword hash. That case didn't have a test, but it affects real-world code, so add a test for it. This removes rb_empty_keyword_given_p() and related code, as that is not needed in Ruby 3. The empty keyword case is the same as the no keyword case in Ruby 3. This changes rb_scan_args to implement keyword argument separation for C functions when the : character is used. For backwards compatibility, it returns a duped hash. This is a bad idea for performance, but not duping the hash breaks at least Enumerator::ArithmeticSequence#inspect. Instead of having RB_PASS_CALLED_KEYWORDS be a number, simplify the code by just making it be rb_keyword_given_p().
* Bump benchmark-driver to v0.15.7 (#2811)Lourens Naudé2020-01-021-1/+1
|
* move internal/debug.h definitions to internal.hKoichi Sasada2020-01-037-46/+24
| | | | Debug utilities should be accessible from any internal code.
* modify MJIT_CC only on RUBY_DEBUG=ciKoichi Sasada2020-01-031-1/+2
| | | | Modify MJIT_CC (27fae1d4ad) only on CI environment.
* disable ccache if $CC is in /usr/lib/ccache/$CC.Koichi Sasada2020-01-031-0/+5
| | | | | | | | | | | | | MJIT with ccache has a problem on docker environment, so we need to use original CC (/usr/bin/gcc, for example). Ubuntu system provides /usr/lib/ccache/gcc and so on to use gcc with ccache. It is easy to setup ccache by adding /usr/lib/ccache to $PATH. However we need to use /usr/bin/gcc (and so on) for MJIT_CC. We can specify MJIT_CC option at configure, but specifying them is troublesome. This patch choose original $CC (/usr/bin/gcc, for example) if $CC is /usr/lib/ccache/$CC.
* Fix variable name and add more example [ci skip]Kazuhiro NISHIYAMA2020-01-031-2/+4
|
* * 2020-01-03 [ci skip]git2020-01-031-1/+1
|
* Fix example of node.type [ci skip]Kazuhiro NISHIYAMA2020-01-031-1/+1
| | | | | | | | | | | | | | | ``` % docker run -it --rm rubylang/all-ruby env ALL_RUBY_SINCE=ruby-2.6 ./all-ruby -e 'root = RubyVM::AbstractSyntaxTree.parse("x = 1 + 2") p [root, root.type] call = root.children[2] p [call, call.type] ' ruby-2.6.0 [#<RubyVM::AbstractSyntaxTree::Node:SCOPE@1:0-1:9>, :SCOPE] [#<RubyVM::AbstractSyntaxTree::Node:LASGN@1:0-1:9>, :LASGN] ... ruby-2.7.0 [#<RubyVM::AbstractSyntaxTree::Node:SCOPE@1:0-1:9>, :SCOPE] [#<RubyVM::AbstractSyntaxTree::Node:LASGN@1:0-1:9>, :LASGN] ```
* Fix a typo [ci skip]Kazuhiro NISHIYAMA2020-01-021-1/+1
|
* * 2020-01-02 [ci skip]git2020-01-021-1/+1
|
* Check Module#ruby2_keywords arityNobuyoshi Nakada2020-01-022-0/+7
| | | | | It is considered a mistake, because calling this method with no arguments has no effect.
* bignum.c: extract bdigits_to_mpz and bdigits_from_mpz (#2805)Kenta Murata2020-01-011-18/+27
|
* Redmine /projects/ruby-trunk is now redirectedTakashi Kokubun2019-12-319-18/+18
| | | | to /projects/ruby-master
* Remove code to prevent double build on trunkTakashi Kokubun2019-12-317-9/+6
| | | | trunk branch was deleted.
* More consistent failure notificationsTakashi Kokubun2019-12-316-10/+24
| | | | The format is the same as Travis / AppVeyor now.
* Do not notify AppVeyor on_build_status_changedTakashi Kokubun2019-12-311-1/+1
| | | | | Similar to 4fb6643f31cdee33184043ce17c42001274c4392. This is motivated by the lack of the same feature in GitHub Actions.
* Make test run condition consistent with other jobsTakashi Kokubun2019-12-311-2/+0
| | | | | When `make all` fails, we should not run tests and output of such run is confusing.
* Fixup a6864f6d2f39bcd1ff04516591cc18d4027ab186Hiroshi SHIBATA2020-01-011-2/+2
|
* Removed the old executables of raccHiroshi SHIBATA2020-01-014-588/+0
| | | | | | [ruby-core:93516][Feature #15982] https://github.com/ruby/racc/pull/123
* [bundler/bundler] Add ruby2_keywordsSutou Kouhei2020-01-013-3/+3
| | | | https://github.com/bundler/bundler/commit/29d932d72d
* Run tests in the consistent orderTakashi Kokubun2019-12-311-10/+10
| | | | `make check` runs test -> test-all -> test-spec, and other CIs follow that too.
* Fix an outdated commentTakashi Kokubun2019-12-311-1/+1
| | | | We're actually using it for PR :p
* Actions MinGW - fix test-all (#2803)MSP-Greg2019-12-311-2/+2
|
* Use actions/checkout for PR (#2804)Takashi Kokubun2019-12-311-7/+4
|
* Add load path and require for ruby/rubyaycabta2020-01-011-0/+2
|
* [ruby/irb] Fix lib name of OpenStructaycabta2020-01-011-1/+1
| | | | https://github.com/ruby/irb/commit/1f3a84ab6b
* * 2020-01-01 [ci skip]git2020-01-011-3/+3
|
* Update GitHub Actions BadgesKazuhiro NISHIYAMA2020-01-012-10/+12
| | | | | - Generated by [npx github-actions-badge](https://github.com/azu/github-actions-badge) - Add MJIT
* Add "require 'openstruct'" what is forgottenaycabta2019-12-311-0/+1
|
* [ruby/irb] Add tests for RubyLexBen2019-12-311-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The set_auto_indent method calculates the correct number of spaces for indenting a line. We think there might be a few bugs in this method so we are testing the current functionality to make sure nothing breaks when we address those bugs. Example test failure: ``` 1) Failure: TestIRB::TestRubyLex#test_auto_indent [/Users/Ben/Projects/irb/test/irb/test_ruby_lex.rb:75]: Calculated the wrong number of spaces for: def each_top_level_statement initialize_input catch(:TERM_INPUT) do loop do begin prompt unless l = lex throw :TERM_INPUT if @line == '' else . <10> expected but was <12>. ``` https://github.com/ruby/irb/commit/752d5597ab
* [ruby/reline] Degenerate the terminal size to [$LINES, $COLUMNS] if it is ↵Yusuke Endoh2019-12-311-1/+5
| | | | | | | | unknown This is a workaround for https://github.com/ruby/irb/issues/50 https://github.com/ruby/reline/commit/5725677d1a
* Introduce BIGNUM_EMBED_P to check BIGNUM_EMBED_FLAG (#2802)Kenta Murata2019-12-313-9/+17
| | | | | | * bignum.h: Add BIGNUM_EMBED_P * bignum.c: Use macros for handling BIGNUM_EMBED_FLAG
* speed up set intersectOleg Zubchenko2019-12-311-1/+9
|
* Split test_nomethod_error.rbNobuyoshi Nakada2019-12-312-86/+89
|
* Split test_name_error.rbNobuyoshi Nakada2019-12-312-127/+130
|
* Split test_frozen_error.rbNobuyoshi Nakada2019-12-312-50/+57
|
* Fix the exception to be raisedNobuyoshi Nakada2019-12-311-2/+2
| | | | `NoMethodError` has been raised instead of `FrozenError`.
* Official actions/checkout is uselessTakashi Kokubun2019-12-311-4/+15
| | | | It died again https://github.com/ruby/ruby/runs/368837347
* Fix Object#inspect documentationJoao Fernandes2019-12-311-1/+1
| | | | | Starting from ruby 2.7.0, there's no longer a connection between the hexadecimal number that #inspect shows and the object's ID.
* Update NEWS for Ruby 2.8.0 (tentative; to be 3.0.0)Kazuhiro NISHIYAMA2019-12-311-799/+2
|
* Copy NEWS to doc/NEWS-2.7.0Kazuhiro NISHIYAMA2019-12-311-0/+828
|
* Test the bundled version minitest instead of masterNobuyoshi Nakada2019-12-311-2/+0
| | | | Minitest has the released tags now.
* text/readline/test_readline.rb - fix skip on Reline (#2743)MSP-Greg2019-12-311-1/+2
| | | TestRelineAsReadline#test_input_metachar passes on MinGW
* Copy-editing NEWS file on "is now warned" messages (#2783)Prem Sichanugrist2019-12-311-11/+13
| | | | | The phrase "[doing X] is now warned" is not grammatically correct in English as it is lacking an object. We can make these sentences read better by switching to "[doing X] will now display a warning" instead.
* Make Slack notifications consistentTakashi Kokubun2019-12-302-3/+18
|
* There's no such targetTakashi Kokubun2019-12-301-1/+1
|
* Make all Actions job names consistentTakashi Kokubun2019-12-302-3/+6
| | | | like "{platform} / make ({make target}, ...)"