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

59769 Коммитов

Автор SHA1 Сообщение Дата
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
Alan Wu 99c7b0b7ea
Decide lambdaness of (f << g) using g (#2729)
* Deciding lambdaness of (f << g) using g

* Use version guards for spec changes
2019-12-30 17:47:58 -05:00
Nobuyoshi Nakada 3e2418e2a6
[ruby/io-console] bump up to 0.5.4 2019-12-30 17:38:28 +09:00
git aed5afdaa0 * 2019-12-30 [ci skip] 2019-12-30 09:59:25 +09:00
Vladimir Dementyev e882187612 syntax.rdoc: remove "experimental" from refinements (#2796) 2019-12-29 16:59:07 -08:00
Hiroshi SHIBATA 2ef8d5beee
ext/openssl/ossl_ssl.c: nodoc for private methods
[Misc #11712][ruby-core:71565]
2019-12-29 21:09:15 +08:00
Nobuyoshi Nakada 31e2f03512 [ruby/io-console] Enable only interrupt bits on `intr: true`
https://github.com/ruby/io-console/commit/baaf929041
2019-12-29 16:26:22 +09:00
Ary Borenszweig e5c441a4a2 Optimize Array#rotate!(n) for n = 1 and n = -1
For the most common cases of `rotate!` one place to the right or to the
left, instead of doing some reversals of the array we just keep a single
value in a temporary value, use memmove and then put the temporary
value where it should be.
2019-12-29 13:12:42 +09:00
Seiei Miyagi a0d1fd16d1 Fix documentation of Dir#each_child 2019-12-29 12:59:23 +09:00
Nobuyoshi Nakada d7bef803ac Separate builtin initialization calls 2019-12-29 12:34:55 +09:00
Nobuyoshi Nakada 8ce5d46e66
Fixed an unavailable sanitizer feature 2019-12-29 08:19:43 +09:00
git 290711e1ce * 2019-12-29 [ci skip] 2019-12-29 07:13:25 +09:00
Jeremy Evans a04c535967 Use __func__ as rb_cv_function_name_string on OpenBSD
The use of RUBY_WERROR_FLAG causes this test to fail on OpenBSD
platforms that use the binutils linker (ld.bfd) instead of the
llvm linker (ld.lld), due to warnings added to the binutils linker
in OpenBSD.

Removing the RUBY_WERROR_FLAG would probably also fix it, but that
would affect other platforms.

This should also be backported to Ruby 2.7.

Analysis and similar fix recommended by George Koehler.
2019-12-28 14:13:05 -08:00
Kazuhiro NISHIYAMA bb5b8ace8d
Fix typo 2019-12-28 21:10:08 +09:00
Takashi Kokubun 4fb6643f31
Do not notify Travis on_success
We don't find it useful anymore, because notifications from many other
CIs are mixed.
2019-12-28 01:12:17 -08:00
Takashi Kokubun a994b0aee7
Add VM insns counter like debug_counter (#2789) 2019-12-28 00:44:09 -08:00
Samuel Williams bf04fe086b
Remove "All Rights Reserved." from Copyright statement. 2019-12-28 12:45:37 +13:00
Samuel Williams f96216df8d
Remove "All Rights Reserved." from Copyright statement. 2019-12-28 12:41:47 +13:00
Jeremy Evans f05416c91f Fix coroutine copy implementation on OpenBSD
OpenBSD is the only platform that uses this support by default,
and it did not work because while OpenBSD supports alloca, it does
not include alloca.h.

This should be backported to Ruby 2.7.

From George Koehler
2019-12-27 15:01:01 -08:00
Benoit Daloze c74d30e795 Update to ruby/spec@7241f39 2019-12-27 17:36:07 +01:00
Benoit Daloze 74fdc1e60f Update to ruby/mspec@673fcab 2019-12-27 17:36:04 +01:00
git fe3d9d2832 * 2019-12-28 [ci skip] 2019-12-28 00:47:26 +09:00
Benoit Daloze a2fac1d72c Update to ruby/spec@d419e74 2019-12-27 16:46:08 +01:00