<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/bundler/digest.rb, branch v3_3_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[rubygems/rubygems] Use String#unpack1 available since ruby 3.0</title>
<updated>2023-12-06T02:45:37+00:00</updated>
<author>
<name>Martin Emde</name>
<email>martin.emde@gmail.com</email>
</author>
<published>2023-12-05T21:29:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d9a1bb4b097899c21c9a11b042072224c4ff252b'/>
<id>d9a1bb4b097899c21c9a11b042072224c4ff252b</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/46258d6cb4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/46258d6cb4
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Applied Layout/SpaceAroundOperators cop</title>
<updated>2023-03-16T01:59:12+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2023-03-15T09:07:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f3b129241c2f12c2db8382be67fa304d4034c9ba'/>
<id>f3b129241c2f12c2db8382be67fa304d4034c9ba</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/3139587be9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/3139587be9
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Remove redundant bitwise AND</title>
<updated>2022-06-02T13:23:42+00:00</updated>
<author>
<name>David Rodríguez</name>
<email>deivid.rodriguez@riseup.net</email>
</author>
<published>2022-06-02T10:12:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4eb140b0e4ca53aac704394cfdf3e0da27c2b3c7'/>
<id>4eb140b0e4ca53aac704394cfdf3e0da27c2b3c7</id>
<content type='text'>
https://github.com/rubygems/rubygems/commit/a20bac7924
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/rubygems/rubygems/commit/a20bac7924
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Fix Bundler::Digest#sha1 on big-endian systems</title>
<updated>2021-10-25T16:51:05+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2021-10-25T15:02:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=557fa389155810f38f111c00a649c313a639dbb5'/>
<id>557fa389155810f38f111c00a649c313a639dbb5</id>
<content type='text'>
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

&gt; 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:
https://github.com/Solistra/ruby-digest/blob/d15f906caf09171f897efc74645c9e31373d7fd1/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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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

&gt; 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:
https://github.com/Solistra/ruby-digest/blob/d15f906caf09171f897efc74645c9e31373d7fd1/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
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Vendor a pure ruby implementation of SHA1</title>
<updated>2021-10-25T11:24:32+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2021-10-18T08:12:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5af3f7f3574c16ec76fb44b21beec17a74f4417a'/>
<id>5af3f7f3574c16ec76fb44b21beec17a74f4417a</id>
<content type='text'>
This allows `Source::Git` to no longer load the `digest` gem as it is causing
issues on Ruby 3.1.

https://github.com/rubygems/rubygems/pull/4989/commits/c19a9f2ff7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows `Source::Git` to no longer load the `digest` gem as it is causing
issues on Ruby 3.1.

https://github.com/rubygems/rubygems/pull/4989/commits/c19a9f2ff7
</pre>
</div>
</content>
</entry>
</feed>
