summaryrefslogtreecommitdiff
path: root/lib/rubygems/gemcutter_utilities.rb
AgeCommit message (Collapse)Author
2 days[rubygems/rubygems] Smoother authentication experienceMike Perham
Copying the URL is painful here because the URL is embedded within a paragraph of text. I presume we don't want to automatically open the browser. Instead, move the URL to its own line so that "triple click" will automatically select the whole thing. https://github.com/rubygems/rubygems/commit/21532a69ae
2024-11-04[rubygems/rubygems] Fix commands with 2 MFA requests when webauthn is enabledDavid Rodríguez
If a command requires two MFA authenticated requests, and webauthn is enabled, then first one will succeed but the second one will fail because it tries to reuse the OTP code from the first request and that does not work. This happens when you have not yet logged in to rubygems.org, or when you have an API key with invalid scopes for the current operation. In that case, we need: * An API request to get a token or change scopes for the one that you have. * Another API request to perform the actual operation. Instead of trying to reuse the token, make sure it's cleared so we are asked to authenticate again. We only do this when webauthn is enabled because reusing TOPT tokens otherwise is allowed and I don't want to break that. https://github.com/rubygems/rubygems/commit/669e343935
2024-11-04[rubygems/rubygems] OTP is already added by `rubygems_api_request`David Rodríguez
https://github.com/rubygems/rubygems/commit/15930fe126
2024-02-26[rubygems/rubygems] Rename wrapper files for vendored libraries with ↵Hiroshi SHIBATA
'vendored_' prefix https://github.com/rubygems/rubygems/commit/cfc908c8c1
2024-02-02[rubygems/rubygems] Fix var name and also update other placesVitaliy Serov
https://github.com/rubygems/rubygems/commit/f72a7989cd
2024-02-02[rubygems/rubygems] Change gem login message to clear up that username can ↵Vitaliy Serov
be also used https://github.com/rubygems/rubygems/commit/2bf6163eaf
2024-01-29[rubygems/rubygems] Improve gem login scope selectionWillian Tenfen W
https://github.com/rubygems/rubygems/commit/26c7abe5f6
2024-01-29Vendor uri gem in RubyGemsDavid Rodríguez
2023-12-13[rubygems/rubygems] Vendor net-http and net-protocol in RubyGemsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/99d91c9ed2
2023-12-07[rubygems/rubygems] Use modern hashes consistentlyDavid Rodríguez
https://github.com/rubygems/rubygems/commit/bb66253f2c
2023-07-28[rubygems/rubygems] Move WebauthnListener into the Gem::GemcutterUtilities ↵Jenny Shen
namespace https://github.com/rubygems/rubygems/commit/3080394f81
2023-07-28[rubygems/rubygems] Extract polling logic into its own classJenny Shen
https://github.com/rubygems/rubygems/commit/218b83abed
2023-07-28[rubygems/rubygems] Add Webauthn verification poller to fetch OTPJenny Shen
https://github.com/rubygems/rubygems/commit/39c5e86a67
2023-04-19[rubygems/rubygems] Introduce self.load_with_rubygems_config_hashHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/9175b8cf2a
2023-04-19[rubygems/rubygems] Wrap self.convert_rubygems_config_hash from ↵Hiroshi SHIBATA
Bundler::YAMLSerializer.load https://github.com/rubygems/rubygems/commit/080880ac23
2023-04-19[rubygems/rubygems] Don't use PsychHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d6555aaa28
2023-04-19[rubygems/rubygems] Added explicitly loading for Gem::SafeYAMLHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/3d9d587dd7
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 after wait for otp thread completes to support jrubyJenny Shen
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-12Merge linesAshley Ellis Pierce
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-06[rubygems/rubygems] util/rubocop -A --only Style/LineEndConcatenationHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/67ece7b8b6
2023-03-23util/rubocop -A --only Layout/EmptyLineAfterMagicCommentHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7582
2023-03-23[rubygems/rubygems] util/rubocop -A --only Lint/ShadowingOuterLocalVariableHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/82ed77178d Notes: Merged: https://github.com/ruby/ruby/pull/7582
2023-03-17util/rubocop -A --only Style/MultipleComparisonHiroshi SHIBATA
2023-03-17util/rubocop -A --only Style/SymbolArrayHiroshi SHIBATA
2023-03-17util/rubocop -A --only Style/RedundantSelfHiroshi SHIBATA
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/RedundantInterpolationHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/add44e56eb
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/ClassCheckHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/1c3356a872
2023-03-17[rubygems/rubygems] util/rubocop -A --only Style/StringLiteralsInInterpolationHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/cb554f6eb7
2023-03-17[rubygems/rubygems] util/rubocop -A --only Layout/EmptyLinesAroundModuleBodyHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/48c88466b7
2023-03-17[rubygems/rubygems] util/rubocop -A --only Lint/UnusedBlockArgumentHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d8efd919db
2022-12-26Merge RubyGems/Bundler masterHiroshi SHIBATA
from https://github.com/rubygems/rubygems/commit/72fd3dd2096af16d797ad0cd8e0d2a8869e240b3 Notes: Merged: https://github.com/ruby/ruby/pull/7025
2022-09-29[rubygems/rubygems] Refine error message to check the push URL instead of ↵Jenny Shen
just the host https://github.com/rubygems/rubygems/commit/46990f3292
2022-09-29[rubygems/rubygems] Surface entire redirect uri in permanent redirectionsJenny Shen
https://github.com/rubygems/rubygems/commit/da7837630b
2022-09-29[rubygems/rubygems] Add error message when api response is a permanent redirectJenny Shen
https://github.com/rubygems/rubygems/commit/ccca30c77a Co-authored-by: Nick Schwaderer <[email protected]>
2022-08-09Merge rubygems/bundler HEAD.Hiroshi SHIBATA
Pick from https://github.com/rubygems/rubygems/commit/dfbb5a38114640e0d8d616861607f3de73ee0199 Notes: Merged: https://github.com/ruby/ruby/pull/6224
2022-07-23[rubygems/rubygems] Display mfa warnings on gem signinAshley Ellis Pierce
https://github.com/rubygems/rubygems/commit/4dc77b7099 Co-authored-by: Jenny Shen <[email protected]>
2022-07-22RubyGems: Enable Style/StringLiterals copTakuya Noguchi
Signed-off-by: Takuya Noguchi <[email protected]>
2022-05-20Merge RubyGems and Bundler HEADHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/125415593ead9ab69a9f0bb5392c9d7ec61b1f51
2022-04-06[rubygems/rubygems] Use `ask_yes_no`Ashley Ellis Pierce
https://github.com/rubygems/rubygems/commit/1d38e167fa
2022-04-06[rubygems/rubygems] Extract default_host methodAshley Ellis Pierce
https://github.com/rubygems/rubygems/commit/6e10e75574
2022-04-06[rubygems/rubygems] Use YAMLAshley Ellis Pierce
https://github.com/rubygems/rubygems/commit/6122e8cac5
2022-04-06[rubygems/rubygems] Accomodate gem hosts without profile/me endpointAshley Ellis Pierce
https://github.com/rubygems/rubygems/commit/31b6dcf5d3
2022-04-06[rubygems/rubygems] Update endpointAshley Ellis Pierce
https://github.com/rubygems/rubygems/commit/a5a7b3ec96