nagachika
233634fbdc
merge revision(s) 4f1e0bfacd:
...
Followed up CVE-2022-39253 for bundler examples
---
spec/bundler/cache/git_spec.rb | 3 +++
spec/bundler/install/gemfile/git_spec.rb | 9 +++++++++
spec/bundler/update/git_spec.rb | 3 +++
3 files changed, 15 insertions(+)
2022-11-24 11:20:51 +09:00
nagachika
39f6a33e23
merge revision(s) 36f297e621:
...
Use valid tokens as cookie names
---
spec/ruby/library/cgi/cookie/name_spec.rb | 12 ++++++------
spec/ruby/library/cgi/cookie/parse_spec.rb | 10 +++++-----
2 files changed, 11 insertions(+), 11 deletions(-)
2022-11-24 11:20:51 +09:00
Nobuyoshi Nakada
302e366800
The tzdata 2022c removed Amsterdam Mean Time
2022-09-20 18:46:34 +09:00
NAKAMURA Usaku
419266d44c
merge revision(s) 89242279e61b023a81c58065c62a82de8829d0b3,529fc204af84f825f98f83c34b004acbaa802615: [Backport #18141 ]
...
Marshal.load: do not call the proc until strings have their encoding
Ref: https://bugs.ruby-lang.org/issues/18141
---
marshal.c | 7 +++-
spec/ruby/core/marshal/shared/load.rb | 62 +++++++++++++++++++++++------------
test/ruby/test_marshal.rb | 17 ++++++++++
3 files changed, 64 insertions(+), 22 deletions(-)
marshal.c: don't call the proc with partially initialized objects.
(#4866 )
For cyclic objects, it requires to keep a st_table of the partially
initialized objects.
---
marshal.c | 75 ++++++++++++++++++++---------------
spec/ruby/core/marshal/shared/load.rb | 75 ++++++++++++++++++++---------------
test/ruby/test_marshal.rb | 12 ++++++
3 files changed, 97 insertions(+), 65 deletions(-)
2021-11-24 19:36:07 +09:00
nagachika
d069339110
merge revision(s) ed549f80b645aafd62376f65c3a27b66bafa2a38,eff0c5bf2ad47d10a440c5211be5eddb3bbf4028,f6b6a7ad345c50eeb3f7206ceabdf41ba94b7d85,5b48686691c2443d8d7113e593494c4d9302da0e,2af4c1fc5b19fc96203c2d7e917e689510d3527e,c9213aa864fb8527388679c21f1ea8ce129e2f1a,224f29c8e92094af10bc666c474b81a3545d6adf:
...
spec/ruby/core/process/clock_getres_spec.rb: skip on Android
in the same way as FreeBSD and OpenBSD.
I guess that the spec makes too strong assumption.
Try to avoid random failures on clock_getres_spec.rb
This spec fails too often
https://github.com/ruby/ruby/runs/529546249
https://github.com/ruby/ruby/runs/524933256
Show failed times
Remove Process.clock_getres "matches the resolution in practice"
specs
* Almost all platforms return incorrect values for Process.clock_getres,
it should be removed: https://bugs.ruby-lang.org/issues/16740
Skip Process#clock_getres specs on Android
... just like AIX and OpenBSD.
Update to ruby/spec@d394dfd
spec/ruby/core/process/clock_getres_spec.rb: lax the resolution limit
Android is Linux, but the clock resolution is 10 milliseconds.
I think that 1 microsecond is too strict for embedded environment.
This change laxes the limit to 10 milliseconds.
2020-12-31 18:34:09 +09:00
nagachika
df3f52a633
merge revision(s) 996af2ce08: [Backport #16345 ] [Backport #17000 ]
...
Disable deprecation warning by the default [Feature #16345 ]
And `-w` option turns it on.
2020-09-29 22:43:25 +09:00
nagachika
eb8270d675
Skip bundler spec using irb with simulated JRuby environment.
2020-09-17 21:23:39 +09:00
Yusuke Endoh
3590f08244
spec/ruby/core/file/utime_spec.rb: far future timestamp may be trancated
...
Under some Ext4 filesystem settings, a timestamp is limited up to
0x37fffffff (2446-05-10).
https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout#Inode_Timestamps
> Therefore, timestamps should not overflow until May 2446.
Actually the spec fails under one of our CI environments, like:
```
1)
File.utime allows Time instances in the far future to set mtime and atime FAILED
Expected 2446 == 559444
to be truthy but was false
```
https://rubyci.org/logs/rubyci.s3.amazonaws.com/arch/ruby-master/log/20200208T180002Z.fail.html.gz
2020-09-09 22:47:58 +09:00
nagachika
2c9dd060ab
Revert "Don't display singleton class in Method#inspect unless method defined there"
...
[Backport #16771 ]
This reverts commit 0d24fb774d .
2020-09-05 19:18:07 +09:00
nagachika
4437f9eb0b
merge revision(s) da05c1552e: [Backport #16749 ]
...
Update to ruby/spec@cc7b9e5
2020-07-23 17:30:26 +09:00
nagachika
4be9bf1f67
merge revision(s) 99a9c3fe2e: [Backport #17024 ]
...
Fixed yday and wday with timezone [Bug #17024 ]
2020-07-23 11:33:11 +09:00
nagachika
cc39480cf9
merge revision(s) 5a79d8e0507cd143100bf928a88a59a8b5a5bca6,160511d851375f7cb922faae3a9310633187f51f: [Backport #16925 ]
...
Fix error raised by Net::HTTPResponse#inflater if the block raises
* See https://bugs.ruby-lang.org/issues/13882#note-6
Quarantine specs which fail frequently with CHECK_LEAKS=true
2020-07-23 11:11:12 +09:00
Yusuke Endoh
17b088d1e5
Update some syslog tests to absurb the format change of FreeBSD syslog
...
FreeBSD
```
$ ruby -rsyslog -e 'Syslog.open("rubyspec", Syslog::LOG_PERROR) {|s| s.log(Syslog::LOG_ALERT, "Hello") }'
rubyspec 78462 - - Hello
```
Linux
```
$ ruby -rsyslog -e 'Syslog.open("rubyspec", Syslog::LOG_PERROR) {|s| s.log(Syslog::LOG_ALERT, "Hello") }'
rubyspec: Hello
```
https://github.com/freebsd/freebsd/commit/591ef7c8076109cff3c41f9bb50da996a34121e9
2020-07-18 13:35:45 +09:00
Hiroshi SHIBATA
7b51338013
Merge bundler-2.1.4
2020-03-27 14:43:20 +09:00
Jean Boussier
47b08728cf
[ruby/stringio] StringIO#initialize default to the source string encoding
...
[Bug #16497 ]
https://github.com/ruby/stringio/commit/4958a5ccab
(cherry picked from commit e257c08f2e )
2020-03-15 20:53:14 +09:00
Jeremy Evans
0d24fb774d
Don't display singleton class in Method#inspect unless method defined there
...
Previously, if an object has a singleton class, and you call
Object#method on the object, the resulting string would include
the object's singleton class, even though the method was not
defined in the singleton class.
Change this so the we only show the singleton class if the method
is defined in the singleton class.
Fixes [Bug #15608 ]
(cherry picked from commit e02bd0e713 )
2020-03-14 16:15:15 +09:00
MSP-Greg
44ef8af4fb
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
2020-01-30 13:34:24 +09:00
Alan Wu
52bb32d6b7
Fix Proc#<< spec
...
[Bug #16406 ]
2020-01-16 17:52:04 +09:00
Hiroshi SHIBATA
1857b44278
Merge Bundler 2.1.2 from bundler/bundler.
...
[Misc #16449 ][ruby-core:96458]
2019-12-25 07:28:02 +09:00
Nobuyoshi Nakada
e954be14d0
Get rid of false positive misspellings
...
[Bug #16437 ]
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 #15267 ]
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 #16419 ]
2019-12-20 14:18:20 +09:00
Nobuyoshi Nakada
e68999c82c
Fixed misspellings
...
Fixed misspellings reported at [Bug #16437 ], for default gems.
2019-12-20 12:19:45 +09:00
Nobuyoshi Nakada
db16629008
Fixed misspellings
...
Fixed misspellings reported at [Bug #16437 ], 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 ( #1506 )"
...
This reverts commit 2a22a6b2d8 .
Revert [Feature #13083 ]
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