Граф коммитов

59791 Коммитов

Автор SHA1 Сообщение Дата
Koichi Sasada 27fae1d4ad disable ccache if $CC is in /usr/lib/ccache/$CC.
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.
2020-01-03 02:07:21 +09:00
Kazuhiro NISHIYAMA b884eb59eb
Fix variable name and add more example [ci skip] 2020-01-03 01:27:25 +09:00
git db22b36862 * 2020-01-03 [ci skip] 2020-01-03 00:03:31 +09:00
Kazuhiro NISHIYAMA bba4916122
Fix example of node.type [ci skip]
```
% 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]
```
2020-01-03 00:02:28 +09:00
Kazuhiro NISHIYAMA 749915e940
Fix a typo [ci skip] 2020-01-02 12:12:05 +09:00
git 71ae2acee1 * 2020-01-02 [ci skip] 2020-01-02 10:55:58 +09:00
Nobuyoshi Nakada 34bc15c86b
Check Module#ruby2_keywords arity
It is considered a mistake, because calling this method with no
arguments has no effect.
2020-01-02 10:41:24 +09:00
Kenta Murata 076f24c227
bignum.c: extract bdigits_to_mpz and bdigits_from_mpz (#2805) 2020-01-01 22:55:12 +09:00
Takashi Kokubun afd3f64f8c
Redmine /projects/ruby-trunk is now redirected
to /projects/ruby-master
2019-12-31 22:06:19 -08:00
Takashi Kokubun 8c9450e7b8
Remove code to prevent double build on trunk
trunk branch was deleted.
2019-12-31 22:03:21 -08:00
Takashi Kokubun eca964c24e
More consistent failure notifications
The format is the same as Travis / AppVeyor now.
2019-12-31 21:26:40 -08:00
Takashi Kokubun ab9f56b615
Do not notify AppVeyor on_build_status_changed
Similar to 4fb6643f31.
This is motivated by the lack of the same feature in GitHub Actions.
2019-12-31 15:59:02 -08:00
Takashi Kokubun 47c84c74d4
Make test run condition consistent with other jobs
When `make all` fails, we should not run tests and output of such run is
confusing.
2019-12-31 15:29:40 -08:00
Hiroshi SHIBATA 69731b248f
Fixup a6864f6d2f 2020-01-01 07:53:27 +09:00
Hiroshi SHIBATA a6864f6d2f
Removed the old executables of racc
[ruby-core:93516][Feature #15982]

  https://github.com/ruby/racc/pull/123
2020-01-01 07:42:42 +09:00
Sutou Kouhei e1c363f847
[bundler/bundler] Add ruby2_keywords
https://github.com/bundler/bundler/commit/29d932d72d
2020-01-01 07:41:37 +09:00
Takashi Kokubun 74cb414885
Run tests in the consistent order
`make check` runs test -> test-all -> test-spec, and other CIs follow that too.
2019-12-31 10:24:01 -08:00
Takashi Kokubun 52c228604b
Fix an outdated comment
We're actually using it for PR :p
2019-12-31 09:37:03 -08:00
MSP-Greg 860753eabb Actions MinGW - fix test-all (#2803) 2019-12-31 09:35:43 -08:00
Takashi Kokubun 139f0d90d9
Use actions/checkout for PR (#2804) 2019-12-31 09:34:29 -08:00
aycabta 049292e302 Add load path and require for ruby/ruby 2020-01-01 02:04:41 +09:00
aycabta 66e6055c11 [ruby/irb] Fix lib name of OpenStruct
https://github.com/ruby/irb/commit/1f3a84ab6b
2020-01-01 01:38:37 +09:00
git 287bfb69d2 * 2020-01-01 [ci skip] 2020-01-01 00:02:24 +09:00
Kazuhiro NISHIYAMA 1a1862236d
Update GitHub Actions Badges
- Generated by [npx github-actions-badge](https://github.com/azu/github-actions-badge)
- Add MJIT
2020-01-01 00:02:01 +09:00
aycabta 9deb942715 Add "require 'openstruct'" what is forgotten 2019-12-31 23:32:24 +09:00
Ben a118bb805f [ruby/irb] Add tests for RubyLex
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
2019-12-31 23:32:24 +09:00
Yusuke Endoh 337ba56aff [ruby/reline] Degenerate the terminal size to [$LINES, $COLUMNS] if it is unknown
This is a workaround for https://github.com/ruby/irb/issues/50

https://github.com/ruby/reline/commit/5725677d1a
2019-12-31 23:32:24 +09:00
Kenta Murata e082f41611
Introduce BIGNUM_EMBED_P to check BIGNUM_EMBED_FLAG (#2802)
* bignum.h: Add BIGNUM_EMBED_P

* bignum.c: Use macros for handling BIGNUM_EMBED_FLAG
2019-12-31 22:48:23 +09:00
Oleg Zubchenko 4ce28b58cb speed up set intersect 2019-12-31 20:52:41 +09:00
Nobuyoshi Nakada 0cf75e3850 Split test_nomethod_error.rb 2019-12-31 19:43:36 +09:00
Nobuyoshi Nakada a580a3757b Split test_name_error.rb 2019-12-31 19:43:36 +09:00
Nobuyoshi Nakada ee4ead8098 Split test_frozen_error.rb 2019-12-31 19:43:36 +09:00
Nobuyoshi Nakada 8caeef7c1d Fix the exception to be raised
`NoMethodError` has been raised instead of `FrozenError`.
2019-12-31 19:43:36 +09:00
Takashi Kokubun 2e1fd4e2d7
Official actions/checkout is useless
It died again https://github.com/ruby/ruby/runs/368837347
2019-12-31 01:49:17 -08:00
Joao Fernandes 918fe2ed7c Fix Object#inspect documentation
Starting from ruby 2.7.0, there's no longer a connection between the hexadecimal
number that #inspect shows and the object's ID.
2019-12-31 18:31:59 +09:00
Kazuhiro NISHIYAMA db58b4a48d
Update NEWS for Ruby 2.8.0 (tentative; to be 3.0.0) 2019-12-31 18:18:21 +09:00
Kazuhiro NISHIYAMA 3096baec0e
Copy NEWS to doc/NEWS-2.7.0 2019-12-31 18:16:21 +09:00
Nobuyoshi Nakada 26ee0af4b3
Test the bundled version minitest instead of master
Minitest has the released tags now.
2019-12-31 17:49:26 +09:00
MSP-Greg d912393e09 text/readline/test_readline.rb - fix skip on Reline (#2743)
TestRelineAsReadline#test_input_metachar passes on MinGW
2019-12-31 00:29:58 -08:00
Prem Sichanugrist 56a74659cc Copy-editing NEWS file on "is now warned" messages (#2783)
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.
2019-12-31 00:27:24 -08:00
Takashi Kokubun 38c35dd22d
Make Slack notifications consistent 2019-12-30 23:46:18 -08:00
Takashi Kokubun 8136fec6e4
There's no such target 2019-12-30 23:42:20 -08:00
Takashi Kokubun f98650e9f8
Make all Actions job names consistent
like "{platform} / make ({make target}, ...)"
2019-12-30 23:30:35 -08:00
Takashi Kokubun fe158e4c65
Do not doubly build on trunk 2019-12-30 23:23:25 -08:00
Takashi Kokubun b00418732c
Drop MinGW build from AppVeyor
in favor of #2791
2019-12-30 23:20:18 -08:00
MSP-Greg eb2b425821 MinGW on Actions (#2791)
* MinGW - skip spec in spec/ruby/optional/capi/thread_spec.rb

C-API Thread function rb_thread_call_without_gvl
      -- runs a C function with the global lock unlocked and unlocks IO with the generic RUBY_UBF_IO

stops/freezes spec tests

See https://bugs.ruby-lang.org/issues/16265

* MinGW - skip test test/resolv/test_dns.rb

Test times out in CI (both AppVeyor & Actions), cannot repo locally

* MinGW - skip test test/ruby/test_thread_queue.rb

* Add Actions mingw.yml
2019-12-30 23:19:31 -08:00
Takashi Kokubun 79c4202676
Revert "Remove TEST_BUNDLED_GEMS_ALLOW_FAILURES"
This reverts commit 75e8dd58f6.

We seem to randomly hit another issue these days:
https://github.com/ruby/ruby/runs/368756135
https://github.com/ruby/ruby/runs/368756191
2019-12-30 23:09:24 -08:00
Nobuyoshi Nakada 179e402d8a
Updated dependencies on internal/warnings.h
Needed for `UNALIGNED_MEMBER_ACCESS` using `COMPILER_WARNING_`*
macros.
2019-12-31 11:14:19 +09:00
Alan Wu 3264a00958 Fix Proc#<< spec
[Bug #16406]
2019-12-30 18:13:55 -05:00
git f1ea5d22dc * 2019-12-31 [ci skip] 2019-12-31 07:48:19 +09:00