summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* merge revision(s) 4f1e0bfacd93c28bff549e2f3603c3b4942429a3:nagachika2022-11-243-0/+15
| | | | | | | | | | 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(+)
* merge revision(s) 36f297e62108072b9377d927321928b994f66a93:nagachika2022-11-242-11/+11
| | | | | | | | | 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(-)
* The tzdata 2022c removed Amsterdam Mean TimeNobuyoshi Nakada2022-09-201-0/+2
|
* Fix spec to not touch the networkDavid Rodríguez2022-04-121-1/+3
| | | | | And not depend on the state of rack's master branch, in particular, on their Ruby support range.
* Expect to receive a non-keywords hashNobuyoshi Nakada2022-04-121-2/+2
| | | | | | | `RSpec::Mocks::ArgumentListMatcher#args_match?` fails when a non-keywords hash is passed while a keyword hash is expected. This is a change in `rspec-mocks` 3.10.3, so we need to adapt to it.
* Merge Bundler-2.2.33Hiroshi SHIBATA2022-04-1218-50/+310
|
* Fix bundler test failures.nagachika2022-02-121-2/+2
| | | | | | | | | | | | | | | | | | | | | These failures are caused by the incompatibility in keyword argument treatment in rspec-mocks. I fix the expectations in the bundler/rubygems_integration_spec.rb. These tests are not touched in the master branch. It seems that the following patch also fix the failures. But I believe the expectations in these tests are wrong. We should pass a Hash literal explicitly. --- a/common.mk +++ b/common.mk @@ -1365,7 +1365,7 @@ yes-test-bundler-precheck: main no-test-bundler-prepare: no-test-bundler-precheck yes-test-bundler-prepare: yes-test-bundler-precheck $(XRUBY) -C "$(srcdir)" bin/gem install --no-document \ - --install-dir .bundle --conservative "rspec:~> 3.8" "rake:~> 13.0" "parallel_tests:~> 2.29" + --install-dir .bundle --conservative "rspec-core:= 3.10.1" "rspec-expectations:= 3.10.1" "rspec-mocks:= 3.10.2" "rake:~> 13.0" "parallel_tests:~> 2.29" RSPECOPTS = BUNDLER_SPECS =
* merge revision(s) 342e7a094a70d6f90b96262c88177dae32976c85:nagachika2022-02-121-1/+3
| | | | | | | | | | | | [rubygems/rubygems] Fix spec to not touch the network And not depend on the state of rack's master branch, in particular, on their Ruby support range. https://github.com/rubygems/rubygems/commit/9ea4baffac --- spec/bundler/commands/remove_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
* Merge RubyGems-3.2.32 and Bundler-2.2.32Hiroshi SHIBATA2021-11-2417-181/+207
|
* Merge RubyGems 3.2.31 and Bundler 2.2.31Hiroshi SHIBATA2021-11-2219-101/+616
|
* Merge RubyGems 3.2.30 and Bundler 2.2.30Hiroshi SHIBATA2021-11-2220-52/+294
|
* Merge RubyGems 3.2.29 and Bundler 2.2.29Hiroshi SHIBATA2021-11-224-3/+58
|
* Merge RubyGems 3.2.28 and Bundler 2.2.28Hiroshi SHIBATA2021-11-224-2/+27
|
* Merge RubyGems 3.2.27 and Bundler 2.2.27Hiroshi SHIBATA2021-11-227-11/+103
|
* merge revision(s) ↵nagachika2021-10-091-48/+79
| | | | | | | | | | | | | | | | | | | | | | | | 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(-)
* Merge RubyGems 3.2.26 and Bundler 2.2.26Hiroshi SHIBATA2021-08-1914-51/+121
|
* Merge RubyGems 3.2.25 and Bundler 2.2.25Hiroshi SHIBATA2021-08-1949-157/+585
|
* Merge RubyGems 3.2.24 and Bundler 2.2.24Hiroshi SHIBATA2021-08-197-7/+67
|
* Merge RubyGems 3.2.23 and Bundler 2.2.23Hiroshi SHIBATA2021-08-199-75/+132
|
* Merge RubyGems-3.2.22 and Bundler-2.2.22Hiroshi SHIBATA2021-07-0720-363/+400
|
* Merge RubyGems-3.2.21 and Bundler-2.2.21Hiroshi SHIBATA2021-07-074-21/+119
|
* Merge RubyGems-3.2.20 and Bundler-2.2.20Hiroshi SHIBATA2021-07-074-0/+115
|
* Merge RubyGems-3.2.19 and Bundler-2.2.19Hiroshi SHIBATA2021-07-072-3/+37
|
* Merge RubyGems-3.2.18 and Bundler-2.2.18Hiroshi SHIBATA2021-07-0742-701/+732
|
* Merge RubyGems-3.2.17 and Bundler-2.2.17Hiroshi SHIBATA2021-07-0726-125/+771
|
* Merge RubyGems-3.2.16 and Bundler-2.2.16Hiroshi SHIBATA2021-07-0717-128/+380
|
* merge revision(s) cfd162d535c7a4f8b1f95255cc6be696a8b75557: [Backport #17467]nagachika2021-05-232-18/+22
| | | | | | | | | | | | | | | | | | | Make String#{strip,lstrip}{,!} strip leading NUL bytes The documentation already specifies that they strip whitespace and defines whitespace to include null. This wraps the new behavior in the appropriate guards in the specs, but does not specify behavior for previous versions, because this is a bug that could be backported. Fixes [Bug #17467] --- spec/ruby/core/string/lstrip_spec.rb | 18 ++++++++++++------ spec/ruby/core/string/strip_spec.rb | 22 ++++++++++------------ string.c | 4 ++-- test/ruby/test_string.rb | 16 ++++++++++++++++ 4 files changed, 40 insertions(+), 20 deletions(-)
* merge revision(s) 6268fdc662c75c61091b2ab0b476ec15df023328:nagachika2021-04-181-2/+2
| | | | | | | | | | | spec/ruby/core/hash/transform_keys_spec.rb: Fix the failure of ruby_3_0 https://github.com/ruby/spec/pull/833 https://github.com/ruby/spec/commit/8290e5ad8952b14ee9a5069651d9864c66681112 --- spec/ruby/core/hash/transform_keys_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
* merge revision(s) ↵nagachika2021-04-151-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 31e0382723bfb35cffe3ca485dd0577668cafa07,5e5fb72f99701dc27c66ab148471893f14e6d6f0,fb6ebe55d91187d9635e0183d47dbf38e95b1141,522d4cd32f7727886f4fcbc28ed29c08d361ee20: [Backport #17735] Keep non evaluated keys in `Hash#transform_keys!` [Bug #17735] --- hash.c | 6 +++++- spec/ruby/core/hash/transform_keys_spec.rb | 12 +++++++++++- test/ruby/test_hash.rb | 8 ++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) Clear an intermediate hash [Bug #17735] --- hash.c | 1 + 1 file changed, 1 insertion(+) Hide an intermediate array --- hash.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) Force recycle intermediate collection in Hash#transform_keys! [Bug #17735] * Force recycle intermediate hash * Force recycle intermediate array too https://github.com/ruby/ruby/pull/4329#issuecomment-808840718 --- hash.c | 2 ++ 1 file changed, 2 insertions(+)
* Merge RubyGems-3.2.15 and Bundler-2.2.15 (#4311)Hiroshi SHIBATA2021-03-245-1/+101
|
* Merge RubyGems-3.2.14 and Bundler-2.2.14Hiroshi SHIBATA2021-03-1115-268/+579
|
* Merge RubyGems-3.2.13 and Bundler-2.2.13Hiroshi SHIBATA2021-03-117-116/+270
|
* Merge RubyGems-3.2.12 and Bundler-2.2.12Hiroshi SHIBATA2021-03-1112-89/+222
|
* Merge RubyGems-3.2.11 and Bundler-2.2.11Hiroshi SHIBATA2021-03-1111-265/+245
|
* Merge RubyGems-3.2.10 and Bundler-2.2.10Hiroshi SHIBATA2021-03-1115-264/+416
|
* Merge RubyGems 3.2.9 and Bundler 2.2.9 (#4158)Hiroshi SHIBATA2021-02-0916-58/+303
|
* Merge Bundler-2.2.7Hiroshi SHIBATA2021-02-0216-118/+326
|
* Merge RubyGems 3.2.6 and Bundler 2.2.6 (#4103)Hiroshi SHIBATA2021-01-217-13/+108
|
* Merge Bundler-2.2.5Hiroshi SHIBATA2021-01-1413-62/+158
|
* Merge Bundler-2.2.4Hiroshi SHIBATA2021-01-145-23/+27
|
* Fix typosMarcus Stollsteimer2020-12-244-4/+4
|
* Fix class of method in Method#inspect for singleton classes of classesJeremy Evans2020-12-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Previously, due to a change to fix bug 15608, Method#inspect output changed for class methods: Ruby 2.7 "#<Method: String.prepend(*)>" Before change: "#<Method: #<Class:Object>(Module)#prepend(*)>" This is wrong because the Method object was created from String and not Object. This is because the fix for bug 15608 assumed it was being called on the singleton class of a instance, and would skip the first singleton class until it got to the class itself. For class methods, this results in always using the superclass. Fix behavior to not skip until the superclass if the singleton class is the singleton class of a module or class. After change: "#<Method: #<Class:Object>(Module)#prepend(*)>" Fixes [Bug #17428]
* Merge RubyGems 3.2.3 and Bundler 2.2.3Hiroshi SHIBATA2020-12-235-1/+204
|
* Enumerator.new: raise unless block given卜部昌平2020-12-222-30/+42
| | | | | Has been deprecated since c73b6bd7ebd01133538c645566944132dbde4d13. [Feature #17116] [ruby-dev:50945]
* Remvoed no longer needed version guardsNobuyoshi Nakada2020-12-223-16/+0
|
* Removed rb_cData entityNobuyoshi Nakada2020-12-223-1/+9
| | | | | | | * Use the wrapper of rb_cObject instead of data access * Replaced rest of extentions * Updated the version guard for Data * Added the version guard of rb_cData
* Data: delete卜部昌平2020-12-221-7/+9
| | | | | | | | Has been deprecated since 684bdf6171b76f5bc5e4f05926a5ab01ec2b4fd5. Matz says in [ruby-core:83954] that Data should be an alias of Object. Because rb_cData has not been deprecated, let us deprecate the constant to make it a C-level synonym of rb_cObject.
* Fix misspellings [ci skip]Kazuhiro NISHIYAMA2020-12-213-3/+3
|
* Use Integer instead of Fixnum/BignumNobuyoshi Nakada2020-12-21144-389/+391
|
* Fixed indefinite articles before "Integer" [ci skip]Nobuyoshi Nakada2020-12-215-5/+5
|