1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/bundler
Jean Boussier 557fa38915 [rubygems/rubygems] Fix Bundler::Digest#sha1 on big-endian systems
As noticed by @nobu https://github.com/rubygems/rubygems/pull/4989#discussion_r735674633

From wikipedia: https://en.wikipedia.org/wiki/SHA-1#SHA-1_pseudocode

> append ml, the original message length in bits, as a 64-bit big-endian integer.

`Q` is native endian, so little-endian on most modern hardware.
The original code from RubyDigest reverses the bytes:
d15f906caf/lib/ruby_digest.rb (L521)

But that makes the code non-portable, the correct way is to directly ask
for a big-endian representation.

https://github.com/rubygems/rubygems/commit/ba2be01ea4
2021-10-26 01:51:05 +09:00
..
cli Unify issue template and ISSUES.md document 2021-10-25 20:48:51 +09:00
compact_index_client Sync bundler & rubygems 2021-05-11 11:29:41 +09:00
fetcher Sync latest bundler & rubygems development version 2021-07-07 13:30:20 +09:00
installer [rubygems/rubygems] Simplify and remove some unused code 2021-10-25 19:02:50 +09:00
man [rubygems/rubygems] Bring --jobs documentation up to date 2021-08-31 19:06:14 +09:00
plugin [rubygems/rubygems] Fix bundle plugin install misdetection of installed versions 2021-08-31 19:06:14 +09:00
resolver Sync bundler & rubygems 2021-05-11 11:29:41 +09:00
settings
source [rubygems/rubygems] Improve readability by splitting updating the cache and searching it 2021-10-25 20:48:51 +09:00
templates [rubygems/rubygems] Re-enable default_ignores option for standard 2021-10-22 03:33:44 +09:00
ui
vendor Merge RubyGems/Bundler master from 8459ebd6ad65ce3397233416dc64083ae7572bb9 2021-07-14 10:48:07 +09:00
build_metadata.rb
bundler.gemspec Sync bundler & rubygems 2021-05-11 11:29:41 +09:00
capistrano.rb
cli.rb [rubygems/rubygems] Trigger install command by default on remove 2021-09-17 20:46:18 +09:00
compact_index_client.rb Sync RubyGems and Bundler with upstream 2021-07-07 15:31:52 +09:00
constants.rb
current_ruby.rb Sync RubyGems and Bundler with upstream 2021-07-07 15:31:52 +09:00
definition.rb [rubygems/rubygems] Fix bundle install crash due to an incorrectly incomplete resolve 2021-10-13 21:16:40 +09:00
dep_proxy.rb Sync latest development version of bundler & rubygems 2021-03-08 13:47:35 +09:00
dependency.rb Sync bundler & rubygems 2021-05-11 11:29:41 +09:00
deployment.rb
deprecate.rb
digest.rb [rubygems/rubygems] Fix Bundler::Digest#sha1 on big-endian systems 2021-10-26 01:51:05 +09:00
dsl.rb [rubygems/rubygems] typos in UI messages: fix a couple missing spaces between sentence breaks 2021-08-31 19:06:14 +09:00
endpoint_specification.rb [rubygems/rubygems] Remove syck traces from bundler 2021-08-31 19:06:14 +09:00
env.rb
environment_preserver.rb
errors.rb [rubygems/rubygems] Show proper error when previous installation of gem can't be deleted 2021-10-25 20:48:51 +09:00
feature_flag.rb Sync latest bundler & rubygems development version 2021-07-07 13:30:20 +09:00
fetcher.rb [rubygems/rubygems] Update broken link in Bundler::Fetcher::CertificateFailureError 2021-10-15 04:55:23 +09:00
friendly_errors.rb Unify issue template and ISSUES.md document 2021-10-25 20:48:51 +09:00
gem_helper.rb [rubygems/rubygems] Vendor a pure ruby implementation of SHA1 2021-10-25 20:24:32 +09:00
gem_helpers.rb Merge RubyGems 3.2.3 and Bundler 2.2.3 2020-12-23 10:17:41 +09:00
gem_tasks.rb
gem_version_promoter.rb Sync latest development version of bundler & rubygems 2021-03-08 13:47:35 +09:00
graph.rb
index.rb Merge RubyGems/Bundler master from 8459ebd6ad65ce3397233416dc64083ae7572bb9 2021-07-14 10:48:07 +09:00
injector.rb Merge the master branch of Bundler 2021-04-15 15:36:15 +09:00
inline.rb Merge the master branch of Bundler 2021-04-15 15:36:15 +09:00
installer.rb [rubygems/rubygems] Remove unused require 2021-08-31 19:06:14 +09:00
lazy_specification.rb Merge the master branch of Bundler 2021-04-15 15:36:15 +09:00
lockfile_generator.rb
lockfile_parser.rb [rubygems/rubygems] Fix standalone install of default gems 2021-08-31 19:06:14 +09:00
match_platform.rb
mirror.rb
plugin.rb [rubygems/rubygems] Make plugin installation idempotent 2021-08-31 19:06:14 +09:00
process_lock.rb Track Bundler master(2.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20 2021-01-04 13:14:43 +09:00
psyched_yaml.rb [rubygems/rubygems] Remove syck traces from bundler 2021-08-31 19:06:14 +09:00
remote_specification.rb
resolver.rb [rubygems/rubygems] Improve "gem not found in source" errors 2021-08-31 19:06:14 +09:00
retry.rb Sync bundler & rubygems 2021-05-11 11:29:41 +09:00
ruby_dsl.rb
ruby_version.rb
rubygems_ext.rb [rubygems/rubygems] Fix bundle install to force reinstallation of deleted gems 2021-10-13 16:21:42 +09:00
rubygems_gem_installer.rb [rubygems/rubygems] Show proper error when previous installation of gem can't be deleted 2021-10-25 20:48:51 +09:00
rubygems_integration.rb [rubygems/rubygems] Simplify gem downloading inside bundler 2021-10-25 20:48:51 +09:00
runtime.rb [rubygems/rubygems] Remove unnecessary code 2021-10-13 16:21:41 +09:00
settings.rb [rubygems/rubygems] Pass second argument to Array#split to ensure only two values returned 2021-08-31 19:06:14 +09:00
setup.rb [rubygems/rubygems] Remove unnecessary escape sequences 2021-08-31 19:06:14 +09:00
shared_helpers.rb [rubygems/rubygems] Fix interrupt handling in Bundler workers 2021-07-27 09:25:55 +09:00
similarity_detector.rb
source.rb [rubygems/rubygems] Restore working bundle check behaviour 2021-08-31 19:06:14 +09:00
source_list.rb [rubygems/rubygems] Restore working bundle check behaviour 2021-08-31 19:06:14 +09:00
source_map.rb Sync latest bundler & rubygems development version 2021-07-07 13:30:20 +09:00
spec_set.rb [rubygems/rubygems] Fix bundle check showing duplicated gems 2021-08-31 19:06:14 +09:00
stub_specification.rb Sync latest development version of bundler & rubygems 2021-03-08 13:47:35 +09:00
ui.rb
uri_credentials_filter.rb
vendored_fileutils.rb
vendored_molinillo.rb
vendored_persistent.rb
vendored_thor.rb
vendored_tmpdir.rb
vendored_uri.rb
version.rb Track Bundler master(2.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20 2021-01-04 13:14:43 +09:00
version_ranges.rb
vlad.rb
worker.rb [rubygems/rubygems] Fix interrupt handling in Bundler workers 2021-07-27 09:25:55 +09:00
yaml_serializer.rb