1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

640 commits

Author SHA1 Message Date
Nobuyoshi Nakada
6ab95fb741
Removed twisted tests
Why does only Process.daemon have these tests?
2019-07-16 22:03:25 +09:00
Hiroshi SHIBATA
f73ea3342b
Fixed ruby/spec for Logger::LogDevice changes. 2019-07-15 15:07:26 +09:00
Nobuyoshi Nakada
cd069df365
File::Stat uses Time#inspect 2019-07-11 19:46:11 +09:00
Nobuyoshi Nakada
4e038a7e64
Revert "parse.y: Deprecate flip-flops"
This reverts commit bae638ad5b.

[Feature ]
2019-07-11 14:52:02 +09:00
Nobuyoshi Nakada
23c92b6f82
Revert self-referencing finalizer warning [Feature ]
It has caused CI failures.

* d0cd0866d8

  Disable GC during rb_objspace_reachable_object_p

* 89cef1c56b

  Version guard for [Feature ]

* 796eeb6339.

  Fix up [Feature ]

* 928260c2a6.

  Warn in verbose mode on defining a finalizer that captures the object
2019-07-04 04:01:06 +09:00
Nobuyoshi Nakada
89cef1c56b
Version guard for [Feature ] 2019-07-03 15:22:16 +09:00
Chris Seaton
928260c2a6
Warn in verbose mode on defining a finalizer that captures the object
[Feature ]

Closes: https://github.com/ruby/ruby/pull/2264
2019-07-03 04:05:22 +09:00
Takashi Kokubun
dbe834ab5a
Prefer master rather than trunk in README [ci skip] 2019-07-01 01:05:29 +09:00
Nobuyoshi Nakada
9f648262f9
Fix predicate to assert if object is same 2019-06-29 21:45:59 +09:00
Nobuyoshi Nakada
cbb7dc21a8
Fix predicate to assert if object is same 2019-06-29 19:17:51 +09:00
Benoit Daloze
a2091c3023 Update to ruby/spec@94d98ff 2019-06-27 21:21:33 +02:00
Benoit Daloze
d80e44deec Update to ruby/spec@8d74d49 2019-06-27 21:02:36 +02:00
Benoit Daloze
c940397116 Update to ruby/mspec@ca2bc42 2019-06-27 21:02:33 +02:00
Benoit Daloze
9247f6fcc0 Expand and clarify documentation about version guards for specs 2019-06-27 12:06:39 +02:00
Hiroshi SHIBATA
e478671e19
Added version guard for backtrace printing feature of psych to ruby/spec. 2019-06-26 09:23:02 +09:00
Hiroshi SHIBATA
d7887b05d8
Fixed broken ruby/spec related a53ab897c3 2019-06-25 16:46:53 +09:00
Nobuyoshi Nakada
97a7f463f6
Max length of UNIX socket path is 104 bytes on macOS 2019-06-23 23:12:47 +09:00
Nobuyoshi Nakada
50b2807a7c
Do not lengthen UNIX socket path
* spec/ruby/library/socket/unixsocket/recvfrom_spec.rb: do not
  lengthen UNIX socket path, which is very stricted.
2019-06-23 23:10:16 +09:00
Kenichi Kamiya
d01fd82187 Alias ENV.merge! as ENV.update
[Feature ]

Closes: https://github.com/ruby/ruby/pull/2246
2019-06-21 18:25:01 +02:00
Benoit Daloze
3b2d11ad90 Use different names for autoload constants in specs for clarity 2019-06-21 18:21:45 +02:00
Jean Boussier
e5e811e4a0 Add extra spec from https://github.com/ruby/ruby/pull/2173 2019-06-21 18:21:45 +02:00
Jean Boussier
fb85a42860
Add an optional inherit argument to Module#autoload?
[Feature ]

Closes: https://github.com/ruby/ruby/pull/2173
2019-06-21 17:28:37 +09:00
Jeremy Evans
a0af60c7f2 Remove spec testing undefined behavior
Fixes [Bug ]
2019-06-19 12:20:30 -07:00
Jeremy Evans
b9ef35e4c6 Implement Complex#<=>
Implement Complex#<=> so that it is usable as an argument when
calling <=> on objects of other classes (since #coerce will coerce
such numbers to Complex).  If the complex number has a zero imaginary
part, and the other argument is a real number (or complex number with
zero imaginary part), return -1, 0, or 1.  Otherwise, return nil,
indicating the objects are not comparable.

Fixes [Bug ]
2019-06-19 10:50:58 -07:00
Hiroshi SHIBATA
e4364dbf6e
Fixed the code-style with the upstream rule. 2019-06-11 12:16:26 +09:00
Benoit Daloze
626ae5a9b6 Resolv specs should pass on Windows now 2019-06-10 12:47:08 +02:00
Benoit Daloze
60af6fef3c Fix Resolv specs to not depend on a system /etc/hosts file
* https://rubyci.org/logs/rubyci.s3.amazonaws.com/archlinux/ruby-master/log/20190609T153804Z.fail.html.gz
* Thanks @naruse for the tip.
2019-06-10 12:45:00 +02:00
Hiroshi SHIBATA
2c59c58a47 Fixed wrong BUNDLE_BIN_PATH for ruby core. 2019-06-09 12:44:31 +09:00
Hiroshi SHIBATA
44f7f093ab Added the condition for ruby_core repository. 2019-06-09 12:44:27 +09:00
Hiroshi SHIBATA
8f37629519 Merge bundler master from upstream.
Pick from 8dd59e3ba97eb80a599f8149f31bf40773b69dc0
2019-06-09 12:44:10 +09:00
Jeremy Evans
119ca4343c Make specs pass on OpenBSD
Skip Process clockres specs that don't work on either FreeBSD or
Solaris/AIX in addition to OpenBSD.

Run most current String#crypt specs on non-OpenBSD, and add a new
set of crypt specs for OpenBSD, which support bcrypt but not DES
in crypt(3).

Use @server.connect_address instead of @server.getsockname in some
socket tests, as OpenBSD does not treat connection to all zero
IPv4 or IPv6 addresses as connection to localhost.

When trying to connect using UDP on an unsupported address family,
allow Errno::EPROTONOSUPPORT in addition to Errno::EAFNOSUPPORT,
as OpenBSD raises the former.
2019-06-06 21:16:28 -07:00
Nobuyoshi Nakada
84c294eb0b
spec/bundler/bundler/dsl_spec.rb: fix exception to raise
When describing "Runtime errors", raise a `RuntimeError` as-is.
2019-06-05 15:51:48 +09:00
Nobuyoshi Nakada
aa8a8d8f6d
Split an assertion for f1f04caf60 2019-06-05 12:04:11 +09:00
Nobuyoshi Nakada
22da5d71ea
ruby -v may no longer be ASCII-only on non-master branches 2019-06-03 12:56:36 +09:00
Benoit Daloze
1d37cc1900 Update to ruby/spec@cfe908c 2019-05-31 19:02:08 +02:00
Benoit Daloze
f97979ce88 Update to ruby/mspec@a57a9af 2019-05-31 19:02:06 +02:00
Nobuyoshi Nakada
8b39df854d
Let irb use an empty file as irbrc
to get rid of side-effect by existing .irbrc file.
2019-05-31 16:32:27 +09:00
Nobuyoshi Nakada
b632566d33
UNIX domain socket name length has a certain limit 2019-05-31 16:32:27 +09:00
Benoit Daloze
a4161b7649 Update to ruby/spec@0ba5312 2019-05-30 22:11:24 +02:00
Benoit Daloze
e935a3227d Update to ruby/mspec@3cc36d0 2019-05-30 22:11:22 +02:00
Takashi Kokubun
5379ca9250
Skip spec broken since a66bc2c011
This has not worked since the merge https://travis-ci.org/ruby/ruby/jobs/538438184
2019-05-29 14:57:25 +09:00
Nobuyoshi Nakada
8552e9d696
Fix shorten-64-to-32 warning 2019-05-29 13:24:24 +09:00
Benoit Daloze
91f5a8db59 Update to ruby/spec@0c5c5c1 2019-05-28 23:15:57 +02:00
Benoit Daloze
a66bc2c011 Update to ruby/spec@9a501a8 2019-05-28 22:41:48 +02:00
Jeremy Evans
39eadca76b Add FrozenError#receiver
Similar to NameError#receiver, this returns the object on which
the modification was attempted.  This is useful as it can pinpoint
exactly what is frozen.  In many cases when a FrozenError is
raised, you cannot determine from the context which object is
frozen that you attempted to modify.

Users of the current rb_error_frozen C function will have to switch
to using rb_error_frozen_object or the new rb_frozen_error_raise
in order to set the receiver of the FrozenError.

To allow the receiver to be set from Ruby, support an optional
second argument to FrozenError#initialize.

Implements [Feature ]
2019-05-26 11:09:21 -07:00
Benoit Daloze
2d34087a38 Add notes for the Process#clock_getres spec 2019-05-24 14:48:10 +02:00
Benoit Daloze
4541d2effe Only exclude the failing clocks for Process.clock_getres specs on AIX
* https://rubyci.org/logs/rubyci.s3.amazonaws.com/aix71_ppc/ruby-trunk/log/20190522T103301Z.fail.html.gz
2019-05-24 14:29:47 +02:00
Yusuke Endoh
50e993d4e3 Skip the Process.clock_getres spec on AIX
https://rubyci.org/logs/rubyci.s3.amazonaws.com/aix71_ppc/ruby-trunk/log/20190522T103301Z.fail.html.gz
2019-05-24 12:17:05 +09:00
manga_osyo
f5415a95ce
Add Time#ceil.
Closes: https://github.com/ruby/ruby/pull/2133
2019-05-23 22:30:19 +09:00
Alfonso Jiménez
0acbdd1ed0
Adding Enumerable#filter_map
[Feature ]
Closes: https://github.com/ruby/ruby/pull/2017
2019-05-23 14:39:16 +09:00