summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-04-19[rubygems/rubygems] Move all changes only in RubyGemsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d842e2092f
2023-04-19[rubygems/rubygems] Added guard condition for replacing __ variable in YAML keysHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/e7d31405ea
2023-04-19[rubygems/rubygems] Replaced load_yaml_file with Bundler::YAMLSerializerHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/1ed5fc018e
2023-04-19[rubygems/rubygems] api_key is always contained stringHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/925f7f6717
2023-04-19fix `NameError` messageKoichi Sasada
The following code produces two NameErrors respectively and they are independent, but the second one can show `private constant` message because of first NameError. ```ruby class C class PrivateClass; end private_constant :PrivateClass end begin eval('class C::PrivateClass; end') rescue => e p e end begin Object.const_get 'Foo' rescue => e p e end #<NameError: private constant C::PrivateClass referenced> #<NameError: private constant C::Foo referenced> #=> should be #<NameError: uninitialized constant Foo> ``` It fails the test-all tests with `make test-all TESTS='ruby/class ruby/parse --seed=58891 -v`. The reason is clear miss from https://github.com/ruby/ruby/commit/7387c08373a Notes: Merged: https://github.com/ruby/ruby/pull/7736
2023-04-19* remove trailing spaces. [ci skip]git
2023-04-19Refactor `Regexp#match` cache implementation (#7724)TSUYUSATO Kitsune
* Refactor Regexp#match cache implementation Improved variable and function names Fixed [Bug 19537] (Maybe fixed in https://github.com/ruby/ruby/pull/7694) * Add a comment of the glossary for "match cache" * Skip to reset match cache when no cache point on null check Notes: Merged-By: makenowjust <[email protected]>
2023-04-19MatchData#named_captures: add optional symbolize_names keyword (#6952)Vladimir Dementyev
Notes: Merged-By: ioquatix <[email protected]>
2023-04-17[rubygems/rubygems] Bump rb-sysdependabot[bot]
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.71 to 0.9.72. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.71...v0.9.72) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2023-04-16skip if `DidYouMean.formatter=` is not definedKoichi Sasada
ruby/test_default_gems.rb can define empty `DidYouMean` module because of the following line (second require) in the `lib/did_you_mean/did_you_mean.gemspec`: ```ruby begin require_relative "lib/did_you_mean/version" rescue LoadError # Fallback to load version file in ruby core repository require_relative "version" end ``` It defines only `::DidYouMean::VERSION`. However, in the `test/ruby/test_patten_matching.rb` assumes that if `defined?(DidYouMean)` is true, then there is a method `DidYouMean.formatter=` and this assumption fails all tests in `test/ruby/test_patten_matching.rb` if there is only a `::DidYouMean::VERSION`. To reproduce the failures, we need to repeat the following command: `make test-all TESTS='-v ruby/test_default_gems.rb ruby/pattern_matching'` (because the ruby/test_default_gems.rb should be run before the ruby/pattern_matching`) This patch introduces more strict gurds. Notes: Merged: https://github.com/ruby/ruby/pull/7722
2023-04-15Implement ObjectSpace::WeakMap#delete and ObjectSpace::WeakKeyMap#deleteJean Boussier
[Feature #19561] It's useful to be able to remove references from weak maps. Notes: Merged: https://github.com/ruby/ruby/pull/7629
2023-04-15[ruby/reline] Change Reline.add_dialog_proc(name, nil) to properlytomoya ishida
remove dialog_proc (https://github.com/ruby/reline/pull/532) https://github.com/ruby/reline/commit/43283b2f37
2023-04-14[Bug #19533] Fix infinite range inclusion with numeric valueNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7574
2023-04-13Emit a performance warning when a class reached max variationsJean Boussier
[Feature #19538] This new `peformance` warning category is disabled by default. It needs to be specifically enabled via `-W:performance` or `Warning[:performance] = true` Notes: Merged: https://github.com/ruby/ruby/pull/7708
2023-04-13[rubygems/rubygems] Extract alias variables for long name classHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/33caea928e
2023-04-13[rubygems/rubygems] Downcase camel like cases of instance variableHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/4eaac27107
2023-04-13[Feature #19590] Show the invalid clock argumentNobuyoshi Nakada
Include the failed clock argument in the error message from `Process.clock_gettime` and `Process.clock_getres`. Notes: Merged: https://github.com/ruby/ruby/pull/7687
2023-04-12[Bug #19587] Fix `reset_match_cache` argumentsNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7694
2023-04-12[rubygems/rubygems] Close the server for testNobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/bf5e82fd14
2023-04-12Ensure api_key is sent if basic auth not provided on webauthn_verification_urlAshley Ellis Pierce
Co-authored-by: Jenny Shen <[email protected]>
2023-04-12Add message for otp bypassEric Herscovich
Update tests Fix wording of message
2023-04-12Terminate interaction when rescuing WebauthnVerificationError during ↵Jenny Shen
wait_for_otp Co-authored-by: Betty Li <[email protected]>
2023-04-12Use Webauthn Listener in wait_for_otpJenny Shen
2023-04-12Add wait for webauthn otp when fetching otpJenny Shen
Co-authored-by: Jacques Chester <[email protected]>
2023-04-12[rubygems/rubygems] Refactor Webauthn listener response - Makes the response ↵Jenny Shen
class a wrapper around Net::HTTPResponse - Builds a Net::HTTPResponse upon initialization - to_s returns a string representation of the response to send - Adds a Socket Responder class to send responses given a socket https://github.com/rubygems/rubygems/commit/7513c220b6 Co-authored-by: Jacques Chester <[email protected]>
2023-04-12[rubygems/rubygems] Add access control headers for all requests to allow ↵Jenny Shen
RubyGems.org to render the response https://github.com/rubygems/rubygems/commit/22b329eb60
2023-04-12[rubygems/rubygems] Add otp command testsJenny Shen
https://github.com/rubygems/rubygems/commit/c494112063
2023-04-12[rubygems/rubygems] Add WebauthnListener classJenny Shen
https://github.com/rubygems/rubygems/commit/d42ddbb73c Co-authored-by: Ashley Ellis Pierce <[email protected]> Co-authored-by: Jacques Chester <[email protected]>
2023-04-12[rubygems/rubygems] Add MockBrowser helper classJenny Shen
https://github.com/rubygems/rubygems/commit/2d763cfd47 Co-authored-by: Jacques Chester <[email protected]>
2023-04-12[rubygems/rubygems] Add WebauthnListener response classesJenny Shen
https://github.com/rubygems/rubygems/commit/0e9a26acb1
2023-04-12[rubygems/rubygems] Clarify messageAshley Ellis Pierce
https://github.com/rubygems/rubygems/commit/d94173be49
2023-04-12[rubygems/rubygems] Ask user to otp at webauthn verification urlAshley Ellis Pierce
https://github.com/rubygems/rubygems/commit/004eadb0c5
2023-04-11hash.c: Fix hash_iter_lev_dec corrupting shapeJean Boussier
[Bug #19589] When decrementing `iter_lev` from `65` to `64` the flags would be corrupted, causing the shape_id to be invalid. Notes: Merged: https://github.com/ruby/ruby/pull/7686
2023-04-11util/rubocop -A --only Style/NumericLiteralPrefixHiroshi SHIBATA
2023-04-11[rubygems/rubygems] Bump rb-sysdependabot[bot]
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.70 to 0.9.71. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.70...v0.9.71) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2023-04-10[Bug #19570] Propagate message encoding to decorated messageNobuyoshi Nakada
2023-04-08[ruby/resolv] Do not compress domain name in SRV RDATAKasumi Hanazuki
[RFC2782] prohibits use of name compression for the target host name in the RDATA of a SRV record. [RFC2782]: https://datatracker.ietf.org/doc/rfc2782/ Closes: https://github.com/ruby/resolv/issues/29 https://github.com/ruby/resolv/commit/ac85724e17
2023-04-07[Bug #19563] Yield words separators per linesNobuyoshi Nakada
So that newlines across a here-doc terminator will be separated tokens. Cf. https://github.com/ruby/irb/pull/558 Notes: Merged: https://github.com/ruby/ruby/pull/7675 Merged-By: nobu <[email protected]>
2023-04-07[ruby/irb] Fix RubyLex's heredoc_with_hembexpr test to avoid rippertomoya ishida
tokenizing issue (https://github.com/ruby/irb/pull/558) https://github.com/ruby/irb/commit/f68e891ed1
2023-04-07[rubygems/rubygems] util/rubocop -A --only Style/FormatStringHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/132a56569d
2023-04-06[rubygems/rubygems] util/rubocop -A --only Style/LineEndConcatenationHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/67ece7b8b6
2023-04-06Add guard to compaction test in WeakMapPeter Zhu
Some platforms don't support compaction, so we should skip this test.
2023-04-06Add missing test for Data.initializeMarc-Andre Lafortune
Notes: Merged: https://github.com/ruby/ruby/pull/7666
2023-04-06[rubygems/rubygems] Use TestCase#util_spec instead of custom code.Vít Ondruch
https://github.com/rubygems/rubygems/commit/74d485ff1e
2023-04-05[ruby/irb] Drop Ruby 2.6 supportStan Lo
(https://github.com/ruby/irb/pull/555) * Remove all Ruby 2.6 support * Drop Ruby 2.6 specific testing conditions * Only run Ruby 2.7+ on CI * Bump Ruby requirement to 2.7+ https://github.com/ruby/irb/commit/3f714b616c
2023-04-05[rubygems/rubygems] util/rubocop -A --only Style/RegexpLiteralHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/9264d83421
2023-04-05[rubygems/rubygems] Removed unused Gem::Deprecate from Gem::TestCaseHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d8a75a5f84
2023-04-05[rubygems/rubygems] Extract class method used by self.methodHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d900453ca2
2023-04-05[rubygems/rubygems] We don't use process_based_port and self.process_based_portHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/f1a20c4c69
2023-04-05[rubygems/rubygems] We don't use self.make_commandHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/241f376c32