Jean Boussier
ae8362fdc8
Add a spec for the new NoMethodError display of the receiver
2020-06-02 16:57:32 +02:00
Benoit Daloze
b7e1de117e
Make sure rb_enc_str_new_static() is used when enc is NULL
...
* The definition of the rb_enc_str_new_cstr macro depends on
HAVE_BUILTIN___BUILTIN_CONSTANT_P.
* It SEGV on mswin otherwise.
2020-06-01 00:30:41 +02:00
Benoit Daloze
34776105c8
Update to ruby/spec@4e486fa
2020-05-31 18:22:49 +02:00
Benoit Daloze
f4502b001a
Update to ruby/mspec@e3abf6b
2020-05-31 18:22:47 +02:00
Benoit Daloze
5a79d8e050
Fix error raised by Net::HTTPResponse#inflater if the block raises
...
* See https://bugs.ruby-lang.org/issues/13882#note-6
2020-05-31 12:48:14 +02:00
Benoit Daloze
5b4b82b712
Fix spec description for Net::HTTP.get
2020-05-31 12:48:14 +02:00
Yusuke Endoh
e73e504e2f
spec: add wsl guard
...
WSL 2 is officially released. It uses Linux kernel, so almost all specs
for Linux work on WSL, except one: gethostbyaddr. I guess network
resolution in WSL is based on Windows, so the behavior seems a bit
different from normal Linux.
This change adds `platform_is_not :wsl` guard, and guards out the test
in question.
2020-05-30 01:52:38 +09:00
Jean Boussier
385ac07fd8
Use receiver #name rather than #inspect to build NameError message
2020-05-26 14:10:33 +09:00
Kazuhiro NISHIYAMA
b10b37924a
Fix failures in ./spec/bundler/quality_spec.rb
...
```
Failures:
1) The library itself does not contain any warnings
Failure/Error: raise "Invoking #{method}!(#{args.map(&:inspect).join(", ")}) failed:\n#{last_command.stdboth}"
RuntimeError:
Invoking sys_exec!("ruby -w") failed:
/home/user/snapshot-master/lib/bundler/cli/add.rb:4:in `<module:Bundler>': uninitialized constant Bundler::CLI (NameError)
from /home/user/snapshot-master/lib/bundler/cli/add.rb:3:in `<top (required)>'
from /home/user/snapshot-master/lib/rubygems/core_ext/kernel_require.rb:91:in `require'
from /home/user/snapshot-master/lib/rubygems/core_ext/kernel_require.rb:91:in `require'
from -:2:in `<main>'
Commands:
$ ruby -w
/home/user/snapshot-master/lib/bundler/cli/add.rb:4:in `<module:Bundler>': uninitialized constant Bundler::CLI (NameError)
from /home/user/snapshot-master/lib/bundler/cli/add.rb:3:in `<top (required)>'
from /home/user/snapshot-master/lib/rubygems/core_ext/kernel_require.rb:91:in `require'
from /home/user/snapshot-master/lib/rubygems/core_ext/kernel_require.rb:91:in `require'
from -:2:in `<main>'
# $? => 1
```
2020-05-25 20:12:41 +09:00
Kazuhiro NISHIYAMA
fcc8be0198
Fix a failure in bundle version with version outputs the version with build metadata
...
```
1) bundle version with version outputs the version with build metadata
Failure/Error: expect(out).to match(/\ABundler version #{Regexp.escape(Bundler::VERSION)} \(\d{4}-\d{2}-\d{2} commit #{COMMIT_HASH}\)\z/)
expected "Bundler version 2.2.0.dev (2020-05-25 commit )" to match /\ABundler version 2\.2\.0\.dev \(\d{4}-\d{2}-\d{2} commit (?-mix:unknown|[a-fA-F0-9]{7,})\)\z/
Diff:
@@ -1,2 +1,2 @@
-/\ABundler version 2\.2\.0\.dev \(\d{4}-\d{2}-\d{2} commit (?-mix:unknown|[a-fA-F0-9]{7,})\)\z/
+"Bundler version 2.2.0.dev (2020-05-25 commit )"
Commands:
$ /home/user/snapshot-master/ruby -I/home/user/snapshot-master/spec/bundler -r/home/user/snapshot-master/spec/bundler/support/artifice/fail.rb -r/home/user/snapshot-master/spec/bundler/support/hax.rb /home/user/snapshot-master/tmp/1/gems/system/bin/bundle version
Bundler version 2.2.0.dev (2020-05-25 commit )
# $? => 0
```
2020-05-25 20:08:30 +09:00
Kazuhiro NISHIYAMA
67d2a715ca
Fix a error in a `before(:suite)` hook
...
https://github.com/ruby/actions/runs/703745101?check_suite_focus=true#step:16:27
```
An error occurred in a `before(:suite)` hook.
Failure/Error: contents = File.read(version_file)
Errno::ENOENT:
No such file or directory @ rb_sysopen - /home/runner/work/actions/actions/snapshot-master/tmp/1/bundler-2.2.0.dev/lib/bundler/version.rb
```
2020-05-25 20:08:30 +09:00
Hiroshi SHIBATA
df5fd1d09c
Fixup 1d079a0c5d4d80860a4d6d692344124fe5c562b5
2020-05-22 20:32:30 +09:00
Hiroshi SHIBATA
1d889c9656
Sync Bundler PR #3624 with HEAD commits
2020-05-22 20:32:30 +09:00
Hiroshi SHIBATA
93ebf9643d
Revert 1f011cccb1
2020-05-22 20:32:30 +09:00
Hiroshi SHIBATA
26367367ec
Marked the failing examples with the current master branch on ruby repository
2020-05-22 20:32:30 +09:00
Hiroshi SHIBATA
c7ebeb7eda
Sync Bundler PR #3624
2020-05-22 20:32:30 +09:00
Kazuhiro NISHIYAMA
6c1a51dae8
Skip some tests if extracted from tarball (again)
...
Fix up previous commit
ref
9aa75795f9
,
38002a8adb
, and
0e60b59d58
2020-05-19 00:58:33 +09:00
Kazuhiro NISHIYAMA
1f011cccb1
Skip some tests if extracted from tarball (again)
...
ref 9aa75795f9
2020-05-18 23:18:44 +09:00
Samuel Williams
0e3b0fcdba
Thread scheduler for light weight concurrency.
2020-05-14 22:10:55 +12:00
Hiroshi SHIBATA
35bbbc751d
clean-up .bundle directory in bundled_app
2020-05-14 09:11:28 +09:00
Hiroshi SHIBATA
d4acf254e3
Use the gemspec in build_dir directly
2020-05-14 09:11:28 +09:00
Hiroshi SHIBATA
cecd343336
Skip the examples for bundle exec with gem installation
2020-05-13 07:54:37 +09:00
Hiroshi SHIBATA
f61dbb921e
Marked the some examples that are not working with the ruby repository
2020-05-13 07:54:37 +09:00
Hiroshi SHIBATA
aecbb78517
Use relative path in ruby core repository
2020-05-13 07:54:37 +09:00
Hiroshi SHIBATA
143872bf98
Unmask the some of examples with ruby_repo label
2020-05-13 07:54:37 +09:00
Hiroshi SHIBATA
ca892e6902
Skip the example to use rake command
2020-05-13 07:54:37 +09:00
Hiroshi SHIBATA
ea517cfe23
skip lockfile_spec.rb:33 because it cleanup the .bundle repo
2020-05-13 07:54:37 +09:00
Hiroshi SHIBATA
fcb5a9ee46
Resolved the file path of gemspec for ruby core repository
2020-05-13 07:54:37 +09:00
Hiroshi SHIBATA
5b634afe4c
Added test_gems.rb for setup dependencies
2020-05-13 07:54:37 +09:00
Hiroshi SHIBATA
0e60b59d58
Update the bundler version with master branch
2020-05-13 07:54:37 +09:00
Hiroshi SHIBATA
7df6eaf29e
Addeed missing RSpec namespace
2020-05-09 16:58:21 +09:00
Kazuhiro NISHIYAMA
0a86679a7b
Fix a typo [ci skip]
2020-05-09 14:22:33 +09:00
Hiroshi SHIBATA
b9031b1043
[rubygems/rubygems] Restore the old .gemrc example for compatible tests
...
https://github.com/rubygems/rubygems/commit/c45d65a06d
2020-05-08 14:13:29 +09:00
Benoit Daloze
5aaa75e7c1
Update to ruby/spec@032ee74
2020-05-03 12:28:29 +02:00
Benoit Daloze
f646d20aae
Update to ruby/mspec@d419d0b
2020-05-03 12:28:27 +02:00
Nobuyoshi Nakada
8af098b40e
Show unreserved bits only
...
`RUBY_FL_SEEN_OBJ_ID` can be set by #object_id.
2020-05-03 14:36:56 +09:00
Yusuke Endoh
224f29c8e9
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-05-03 00:23:18 +09:00
Nobuyoshi Nakada
717680f197
DO NOT CORRUPT TYPE FLAGS
2020-05-03 00:11:47 +09:00
Nobuyoshi Nakada
9998161b10
Fixed missing `should`
2020-05-03 00:05:19 +09:00
Nobuyoshi Nakada
e964f67b89
append newline at EOF [ci skip]
2020-05-02 23:15:00 +09:00
Nobuyoshi Nakada
de8b8b609a
Command failed to run just fails
...
The exact exit status value of command failed to run is not a
spec, but a platform dependent implementation detail. Just it is
not "success".
2020-05-02 23:11:42 +09:00
Benoit Daloze
a2be428c5f
Fix ObjectSpace::WeakMap#key? to work if the value is nil
...
* Fixes [Bug #16826 ]
2020-05-02 16:08:36 +02:00
Benoit Daloze
c9213aa864
Update to ruby/spec@d394dfd
2020-05-02 16:03:14 +02:00
Benoit Daloze
a68ddf4287
Update to ruby/mspec@ee29a34
2020-05-02 16:03:12 +02:00
Nobuyoshi Nakada
28aa5f7fa6
Fixed a message and version guard then moved to the existing block
2020-05-01 19:52:29 +09:00
Takashi Kokubun
773afeb73d
Fix a typo
2020-05-01 00:46:01 -07:00
Takashi Kokubun
76507bfc3d
Fix matrix spec for 7d360efe92
2020-05-01 00:45:17 -07:00
Nobuyoshi Nakada
e801e9ba65
[ruby/spec] expand temporary directory to the real path
...
It may contain symbolic links.
2020-04-29 15:28:40 +09:00
Nobuyoshi Nakada
32e7d9140e
[ruby/spec] Temporary directories should be under the mock_dir
2020-04-29 15:28:40 +09:00
Nobuyoshi Nakada
86431f5075
Remove rubyspec temporary directories
2020-04-28 19:00:33 +09:00