summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* [rubygems/rubygems] Revert "Bundler::YAMLSerializer.load couldn't raise ↵Hiroshi SHIBATA2023-04-201-0/+15
| | | | | | | | error when invalid yaml was provided" This reverts commit https://github.com/rubygems/rubygems/commit/cfcfde04c783. https://github.com/rubygems/rubygems/commit/ac21ae7083
* Hide Gem::MockGemUi. It's only used by testsHiroshi SHIBATA2023-04-192-1/+87
|
* [rubygems/rubygems] Added tests for load_with_rubygems_config_hash and ↵Hiroshi SHIBATA2023-04-191-0/+28
| | | | | | dump_with_rubygems_yaml https://github.com/rubygems/rubygems/commit/0393f24119
* [rubygems/rubygems] Bundler::YAMLSerializer.load couldn't raise error when ↵Hiroshi SHIBATA2023-04-191-15/+0
| | | | | | invalid yaml was provided https://github.com/rubygems/rubygems/commit/cfcfde04c7
* [rubygems/rubygems] Replaced Gem::ConfigFile.dump_with_rubygems_yaml for ↵Hiroshi SHIBATA2023-04-192-10/+14
| | | | | | saveing configuration https://github.com/rubygems/rubygems/commit/46438e61cd
* [rubygems/rubygems] Introduce self.load_with_rubygems_config_hashHiroshi SHIBATA2023-04-191-3/+1
| | | | https://github.com/rubygems/rubygems/commit/9175b8cf2a
* [rubygems/rubygems] Wrap self.convert_rubygems_config_hash from ↵Hiroshi SHIBATA2023-04-191-1/+3
| | | | | | Bundler::YAMLSerializer.load https://github.com/rubygems/rubygems/commit/080880ac23
* [rubygems/rubygems] Move all changes only in RubyGemsHiroshi SHIBATA2023-04-191-1/+1
| | | | https://github.com/rubygems/rubygems/commit/d842e2092f
* [rubygems/rubygems] Added guard condition for replacing __ variable in YAML keysHiroshi SHIBATA2023-04-191-1/+1
| | | | https://github.com/rubygems/rubygems/commit/e7d31405ea
* [rubygems/rubygems] Replaced load_yaml_file with Bundler::YAMLSerializerHiroshi SHIBATA2023-04-191-5/+2
| | | | https://github.com/rubygems/rubygems/commit/1ed5fc018e
* [rubygems/rubygems] api_key is always contained stringHiroshi SHIBATA2023-04-191-5/+5
| | | | https://github.com/rubygems/rubygems/commit/925f7f6717
* fix `NameError` messageKoichi Sasada2023-04-191-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* * remove trailing spaces. [ci skip]git2023-04-191-1/+1
|
* Refactor `Regexp#match` cache implementation (#7724)TSUYUSATO Kitsune2023-04-191-3/+11
| | | | | | | | | | * 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
* MatchData#named_captures: add optional symbolize_names keyword (#6952)Vladimir Dementyev2023-04-191-0/+3
|
* [rubygems/rubygems] Bump rb-sysdependabot[bot]2023-04-172-5/+5
| | | | | | | | | | | | | | | 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] <support@github.com>
* skip if `DidYouMean.formatter=` is not definedKoichi Sasada2023-04-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Implement ObjectSpace::WeakMap#delete and ObjectSpace::WeakKeyMap#deleteJean Boussier2023-04-152-4/+33
| | | | | | [Feature #19561] It's useful to be able to remove references from weak maps.
* [ruby/reline] Change Reline.add_dialog_proc(name, nil) to properlytomoya ishida2023-04-151-0/+3
| | | | | | | remove dialog_proc (https://github.com/ruby/reline/pull/532) https://github.com/ruby/reline/commit/43283b2f37
* [Bug #19533] Fix infinite range inclusion with numeric valueNobuyoshi Nakada2023-04-141-0/+2
|
* Emit a performance warning when a class reached max variationsJean Boussier2023-04-132-5/+22
| | | | | | | [Feature #19538] This new `peformance` warning category is disabled by default. It needs to be specifically enabled via `-W:performance` or `Warning[:performance] = true`
* [rubygems/rubygems] Extract alias variables for long name classHiroshi SHIBATA2023-04-1312-181/+138
| | | | https://github.com/rubygems/rubygems/commit/33caea928e
* [rubygems/rubygems] Downcase camel like cases of instance variableHiroshi SHIBATA2023-04-1311-80/+80
| | | | https://github.com/rubygems/rubygems/commit/4eaac27107
* [Feature #19590] Show the invalid clock argumentNobuyoshi Nakada2023-04-131-2/+6
| | | | | Include the failed clock argument in the error message from `Process.clock_gettime` and `Process.clock_getres`.
* [Bug #19587] Fix `reset_match_cache` argumentsNobuyoshi Nakada2023-04-121-0/+8
|
* [rubygems/rubygems] Close the server for testNobuyoshi Nakada2023-04-121-0/+6
| | | | https://github.com/rubygems/rubygems/commit/bf5e82fd14
* Ensure api_key is sent if basic auth not provided on webauthn_verification_urlAshley Ellis Pierce2023-04-123-0/+5
| | | | Co-authored-by: Jenny Shen <jenny.shen@shopify.com>
* Add message for otp bypassEric Herscovich2023-04-124-8/+8
| | | | | | Update tests Fix wording of message
* Terminate interaction when rescuing WebauthnVerificationError during ↵Jenny Shen2023-04-124-16/+16
| | | | | | wait_for_otp Co-authored-by: Betty Li <makewithbetty@gmail.com>
* Use Webauthn Listener in wait_for_otpJenny Shen2023-04-121-9/+50
|
* Add wait for webauthn otp when fetching otpJenny Shen2023-04-121-4/+7
| | | | Co-authored-by: Jacques Chester <jacques.chester@shopify.com>
* [rubygems/rubygems] Refactor Webauthn listener response - Makes the response ↵Jenny Shen2023-04-121-82/+59
| | | | | | | | 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 <jacques.chester@shopify.com>
* [rubygems/rubygems] Add access control headers for all requests to allow ↵Jenny Shen2023-04-121-0/+9
| | | | | | RubyGems.org to render the response https://github.com/rubygems/rubygems/commit/22b329eb60
* [rubygems/rubygems] Add otp command testsJenny Shen2023-04-123-26/+156
| | | | https://github.com/rubygems/rubygems/commit/c494112063
* [rubygems/rubygems] Add WebauthnListener classJenny Shen2023-04-121-0/+120
| | | | | | | https://github.com/rubygems/rubygems/commit/d42ddbb73c Co-authored-by: Ashley Ellis Pierce <anellis12@gmail.com> Co-authored-by: Jacques Chester <jacques.chester@shopify.com>
* [rubygems/rubygems] Add MockBrowser helper classJenny Shen2023-04-121-0/+35
| | | | | | https://github.com/rubygems/rubygems/commit/2d763cfd47 Co-authored-by: Jacques Chester <jacques.chester@shopify.com>
* [rubygems/rubygems] Add WebauthnListener response classesJenny Shen2023-04-121-0/+107
| | | | https://github.com/rubygems/rubygems/commit/0e9a26acb1
* [rubygems/rubygems] Clarify messageAshley Ellis Pierce2023-04-121-1/+1
| | | | https://github.com/rubygems/rubygems/commit/d94173be49
* [rubygems/rubygems] Ask user to otp at webauthn verification urlAshley Ellis Pierce2023-04-124-4/+117
| | | | https://github.com/rubygems/rubygems/commit/004eadb0c5
* hash.c: Fix hash_iter_lev_dec corrupting shapeJean Boussier2023-04-111-0/+11
| | | | | | | [Bug #19589] When decrementing `iter_lev` from `65` to `64` the flags would be corrupted, causing the shape_id to be invalid.
* util/rubocop -A --only Style/NumericLiteralPrefixHiroshi SHIBATA2023-04-1124-163/+163
|
* [rubygems/rubygems] Bump rb-sysdependabot[bot]2023-04-112-7/+7
| | | | | | | | | | | | | | | 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] <support@github.com>
* [Bug #19570] Propagate message encoding to decorated messageNobuyoshi Nakada2023-04-101-0/+13
|
* [ruby/resolv] Do not compress domain name in SRV RDATAKasumi Hanazuki2023-04-081-0/+8
| | | | | | | | | | | [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
* [Bug #19563] Yield words separators per linesNobuyoshi Nakada2023-04-071-1/+1
| | | | | | So that newlines across a here-doc terminator will be separated tokens. Cf. https://github.com/ruby/irb/pull/558
* [ruby/irb] Fix RubyLex's heredoc_with_hembexpr test to avoid rippertomoya ishida2023-04-071-3/+3
| | | | | | | tokenizing issue (https://github.com/ruby/irb/pull/558) https://github.com/ruby/irb/commit/f68e891ed1
* [rubygems/rubygems] util/rubocop -A --only Style/FormatStringHiroshi SHIBATA2023-04-075-12/+6
| | | | https://github.com/rubygems/rubygems/commit/132a56569d
* [rubygems/rubygems] util/rubocop -A --only Style/LineEndConcatenationHiroshi SHIBATA2023-04-0611-29/+29
| | | | https://github.com/rubygems/rubygems/commit/67ece7b8b6
* Add guard to compaction test in WeakMapPeter Zhu2023-04-061-0/+2
| | | | Some platforms don't support compaction, so we should skip this test.
* Add missing test for Data.initializeMarc-Andre Lafortune2023-04-061-0/+1
|