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

954 commits

Author SHA1 Message Date
Hiroshi SHIBATA
13f4f07f21 Merge bundler-2.1.4 2020-01-08 18:00:32 +09:00
Jeremy Evans
0eeed5bcc5 Make eval(code, binding) use (eval) as __FILE__ and 1 as __LINE__
This removes the warning that was added in
3802fb92ff, and switches the behavior
so that the eval does not use the binding's __FILE__ and __LINE__
implicitly.

Fixes [Bug ]
2020-01-03 20:13:09 -08:00
Jeremy Evans
e014e6bf66 Update specs for keyword argument separation 2020-01-02 18:40:45 -08:00
Sutou Kouhei
e1c363f847
[bundler/bundler] Add ruby2_keywords
https://github.com/bundler/bundler/commit/29d932d72d
2020-01-01 07:41:37 +09:00
MSP-Greg
eb2b425821 MinGW on Actions ()
* 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
Alan Wu
3264a00958 Fix Proc#<< spec
[Bug ]
2019-12-30 18:13:55 -05:00
Alan Wu
99c7b0b7ea
Decide lambdaness of (f << g) using g ()
* Deciding lambdaness of (f << g) using g

* Use version guards for spec changes
2019-12-30 17:47:58 -05: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
Benoit Daloze
a2fac1d72c Update to ruby/spec@d419e74 2019-12-27 16:46:08 +01:00
Benoit Daloze
26a9f80c82 Update to ruby/mspec@1034afc 2019-12-27 16:46:05 +01:00
Hiroshi SHIBATA
1857b44278
Merge Bundler 2.1.2 from bundler/bundler.
[Misc ][ruby-core:96458]
2019-12-25 07:28:02 +09:00
Nobuyoshi Nakada
e954be14d0
Get rid of false positive misspellings
[Bug ]
2019-12-24 10:33:32 +09:00
NAKAMURA Usaku
204dc3f39f Revert "Should return "." for File.extname("file.") also on Windows"
We want to introduce consistency and better compatibility with unixen,
but the Windows APIs doues not have consistency fundamentally and
we can not found any logical way...

This reverts commit 61aff0cd18.
2019-12-23 11:54:25 +09:00
Benoit Daloze
7c33ee5ddf Move version guard outside to make it clear the method was added in Ruby 2.5 2019-12-22 11:39:22 +01:00
NAKAMURA Usaku
61aff0cd18 Should return "." for File.extname("file.") also on Windows
But not changes another cases, such as "file.rb."
[Bug ]
2019-12-22 02:42:09 +09:00
Alan Wu
ddb6023d64 Add spec for capturing Kernel#lambda with Kernel#method 2019-12-21 09:08:52 -05:00
Alan Wu
e0b336c8ce Add specs for calling into Kernel#lambda with super 2019-12-21 09:08:52 -05:00
Nobuyoshi Nakada
435a4ca2a3
Makes the receiver to FrozenError.new a keyword parameter
[Feature ]
2019-12-20 14:18:20 +09:00
Nobuyoshi Nakada
e68999c82c
Fixed misspellings
Fixed misspellings reported at [Bug ], for default gems.
2019-12-20 12:19:45 +09:00
Nobuyoshi Nakada
db16629008
Fixed misspellings
Fixed misspellings reported at [Bug ], only in ruby and rubyspec.
2019-12-20 09:32:42 +09:00
Hiroshi SHIBATA
efbc0d499c
Merge bundler-2.1.1 from bundler/bundler 2019-12-18 14:53:19 +09:00
NARUSE, Yui
5da4a310cc close datasocket on stor of server side 2019-12-17 08:24:47 +09:00
David Rodríguez
9f43160014 Delegate should be supported now
Since `did_you_mean` dropped its dependency on it.
2019-12-15 16:41:10 +09:00
Hiroshi SHIBATA
286cb3395f Fixed test failures with gem command path on ruby core repo. 2019-12-15 16:41:10 +09:00
Hiroshi SHIBATA
38002a8adb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
Nobuyoshi Nakada
3098798044
Test Thread#to_s when used from to_s_spec.rb 2019-12-11 16:52:06 +09:00
Nobuyoshi Nakada
d2d42081ce
Thread#to_s has been added at ruby 2.5 2019-12-11 16:52:06 +09:00
Koichi Sasada
1269157a6e Thread#to_s is not same as #inspect on old version.
Thread#to_s returns simple Object#to_s until Ruby 2.4.
2019-12-11 16:10:26 +09:00
Koichi Sasada
6025783a3b fix for old MRI versions 2019-12-11 14:00:32 +09:00
Jean byroot Boussier
8a80bfcfd4 Make Thread#to_s consistent with Method and Proc to_s 2019-12-11 11:59:14 +09:00
NARUSE, Yui
8852fa8760 Revert "Regexp#match{?} with nil raises TypeError as String, Symbol ()"
This reverts commit 2a22a6b2d8.
Revert [Feature ]
2019-12-04 06:40:54 +09:00
NARUSE, Yui
08074eb712 Revert "Revert nil error and adding deprecation message"
This reverts commit 452bee3ee8.
2019-12-04 06:40:54 +09:00
NARUSE, Yui
a705f6472c Revert "Improve warning message"
This reverts commit 31110d820c.
2019-12-04 06:40:54 +09:00
NARUSE, Yui
34a66b1f36 Revert "Fix warnings in Regexp#{match,match?} specs"
This reverts commit 782d1b8fb0.
2019-12-04 06:40:54 +09:00
Benoit Daloze
424ad9a493 Make more attempts to check for the precision of Process.times
* Process.clock_getres specs use 10_000 but that's quite slow for
  the Process.times spec.
2019-12-02 21:23:10 +01:00
Takashi Kokubun
a47d6c256f
Fix random failure on getusage-missing environments
`* 1e6` makes a spurious result about floating point number's precision.

```
irb(main)[01:0]> 16.028
=> 16.028
irb(main)[02:0]> (16.028 * 1e6)
=> 16027999.999999998
```
2019-12-02 00:17:41 -08:00
Takashi Kokubun
185f760873
Debug random failure of ruby-spec on ci.rvm.jp 2019-12-01 23:23:40 -08:00
Benoit Daloze
617a3735ae Update to ruby/spec@dcf4955 2019-12-01 14:11:42 +01:00
Benoit Daloze
60d362b0bb Update to ruby/mspec@aa28e95 2019-12-01 14:11:40 +01:00
Nobuyoshi Nakada
ab516e263c
[ruby/spec] Fix failures with LC_ALL=C
https://github.com/ruby/spec/commit/51047687c0
https://github.com/ruby/spec/commit/2b87b467cc
2019-12-01 21:55:51 +09:00
Nobuyoshi Nakada
bdc62dfc8e
Fixed type of an index variable 2019-12-01 14:38:33 +09:00
Takashi Kokubun
5b1f7f26b4
Skip if getrusage is not supported
1243255c3a broke ci.rvm.jp tests like
http://ci.rvm.jp/results/trunk_clang_39@silicon-docker/2445098.

253232c028 works only if getrusage is supported.
2019-11-30 13:29:01 -08:00
Benoit Daloze
1243255c3a Update to ruby/spec@4eec3dc 2019-11-30 21:26:52 +01:00
Benoit Daloze
ab8345271e Update to ruby/mspec@a401f63 2019-11-30 21:26:49 +01:00
Koichi Sasada
36da0b3da1 check interrupts at each frame pop timing.
Asynchronous events such as signal trap, finalization timing,
thread switching and so on are managed by "interrupt_flag".
Ruby's threads check this flag periodically and if a thread
does not check this flag, above events doesn't happen.

This checking is CHECK_INTS() (related) macro and it is placed
at some places (laeve instruction and so on). However, at the end
of C methods, C blocks (IMEMO_IFUNC) etc there are no checking
and it can introduce uninterruptible thread.

To modify this situation, we decide to place CHECK_INTS() at
vm_pop_frame(). It increases interrupt checking points.
[Bug ]

This patch can introduce unexpected events...
2019-11-29 17:47:02 +09:00
Kazuhiro NISHIYAMA
fea24bbfdb Fix glob base in bundler.gemspec 2019-11-19 00:29:10 +09:00
Kazuhiro NISHIYAMA
9aa75795f9 Skip some tests if extracted from tarball 2019-11-19 00:29:10 +09:00
Kazuhiro NISHIYAMA
e9992bcab0 Allow unknown if ruby core 2019-11-19 00:29:10 +09:00
Jeremy Evans
ffd0820ab3 Deprecate taint/trust and related methods, and make the methods no-ops
This removes the related tests, and puts the related specs behind
version guards.  This affects all code in lib, including some
libraries that may want to support older versions of Ruby.
2019-11-18 01:00:25 +02:00