<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/base64.rb, branch v3_2_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/base64] Avoid unnecessary string duplication</title>
<updated>2021-09-27T06:23:25+00:00</updated>
<author>
<name>Joao Fernandes</name>
<email>joao@hopin.to</email>
</author>
<published>2021-09-24T15:13:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f8000e293141a9af9f51effc76007aab21b0dede'/>
<id>f8000e293141a9af9f51effc76007aab21b0dede</id>
<content type='text'>
String#ljust returns a new string, so whenever we need to add
padding, we can replace "-/" in place with String#tr! and avoid creating
yet another copy of the string.

https://github.com/ruby/base64/commit/6401ef5824
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
String#ljust returns a new string, so whenever we need to add
padding, we can replace "-/" in place with String#tr! and avoid creating
yet another copy of the string.

https://github.com/ruby/base64/commit/6401ef5824
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/base64] Simplify</title>
<updated>2021-09-27T06:23:12+00:00</updated>
<author>
<name>Joao Fernandes</name>
<email>joao@hopin.to</email>
</author>
<published>2021-09-02T15:57:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1b004ba0db2b8e4e0a6b3362dd7681e0c642cab0'/>
<id>1b004ba0db2b8e4e0a6b3362dd7681e0c642cab0</id>
<content type='text'>
Thanks @nobu!

https://github.com/ruby/base64/commit/39e22efa2b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Thanks @nobu!

https://github.com/ruby/base64/commit/39e22efa2b
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/base64] Improve Base64.urlsafe_encode64 performance</title>
<updated>2021-09-27T06:23:04+00:00</updated>
<author>
<name>Joao Fernandes</name>
<email>joao@hopin.to</email>
</author>
<published>2021-09-02T14:53:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=05a28ce5b11d0e0ca48bae799ef65e9657dc4f6a'/>
<id>05a28ce5b11d0e0ca48bae799ef65e9657dc4f6a</id>
<content type='text'>
Improves the method's performance when asked to remove padding.

str.delete!("=") iterates over the entire string looking for the equals
character, but we know that we will, at most, find two at the end of the
string.

https://github.com/ruby/base64/commit/544e0c2cf7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Improves the method's performance when asked to remove padding.

str.delete!("=") iterates over the entire string looking for the equals
character, but we know that we will, at most, find two at the end of the
string.

https://github.com/ruby/base64/commit/544e0c2cf7
</pre>
</div>
</content>
</entry>
<entry>
<title>base64.rb: improve performance of Base64.urlsafe_encode64</title>
<updated>2019-12-10T05:32:35+00:00</updated>
<author>
<name>Konstantin Papkovskiy</name>
<email>konstantin@papkovskiy.com</email>
</author>
<published>2017-08-15T14:35:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1bdabaa6b13344c195698ca5b0ced323cb93e2e1'/>
<id>1bdabaa6b13344c195698ca5b0ced323cb93e2e1</id>
<content type='text'>
* lib/base64.rb: avoid unnecessary memory allocations
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lib/base64.rb: avoid unnecessary memory allocations
</pre>
</div>
</content>
</entry>
<entry>
<title>Use `unpack1` instead of `unpack` and `first`</title>
<updated>2017-02-10T00:58:47+00:00</updated>
<author>
<name>kazu</name>
<email>kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2017-02-10T00:58:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=97795849e410b30d146d32b576e63c7795521cf2'/>
<id>97795849e410b30d146d32b576e63c7795521cf2</id>
<content type='text'>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/base64.rb: Specify frozen_string_literal: true.</title>
<updated>2017-02-10T00:58:45+00:00</updated>
<author>
<name>kazu</name>
<email>kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2017-02-10T00:58:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=07b88b2616ec09621168b39b03ca28570b838084'/>
<id>07b88b2616ec09621168b39b03ca28570b838084</id>
<content type='text'>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>Add frozen_string_literal: false for all files</title>
<updated>2015-12-16T05:07:31+00:00</updated>
<author>
<name>naruse</name>
<email>naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2015-12-16T05:07:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3e92b635fb5422207b7bbdc924e292e51e21f040'/>
<id>3e92b635fb5422207b7bbdc924e292e51e21f040</id>
<content type='text'>
When you change this to true, you may need to add more tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When you change this to true, you may need to add more tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>* lib/base64.rb: Fix rdoc-formatting for padding argument.</title>
<updated>2015-05-20T14:24:58+00:00</updated>
<author>
<name>mame</name>
<email>mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2015-05-20T14:24:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7fc7651fc68e52401dee530defaf2dbcb434a7f1'/>
<id>7fc7651fc68e52401dee530defaf2dbcb434a7f1</id>
<content type='text'>
  [fix GH-905][ci skip] Patch by @davydovanton

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  [fix GH-905][ci skip] Patch by @davydovanton

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>* lib/base64.rb: make urlsafe mode user-friendly.</title>
<updated>2015-02-13T12:31:30+00:00</updated>
<author>
<name>mame</name>
<email>mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2015-02-13T12:31:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6b6680945ed3274cddbc34fdfd410d74081a3e94'/>
<id>6b6680945ed3274cddbc34fdfd410d74081a3e94</id>
<content type='text'>
* lib/base64.rb (Base64.urlsafe_encode64): a new option "padding" to
  suppress the padding character ("=").

* lib/base64.rb (Base64.urlsafe_decode64): now it accepts not only
  correctly-padded input but also unpadded input.
  [Feature #10740][ruby-core:67570]

* test/base64/test_base64.rb: Test for above

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lib/base64.rb (Base64.urlsafe_encode64): a new option "padding" to
  suppress the padding character ("=").

* lib/base64.rb (Base64.urlsafe_decode64): now it accepts not only
  correctly-padded input but also unpadded input.
  [Feature #10740][ruby-core:67570]

* test/base64/test_base64.rb: Test for above

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>fix typos. Patch by k_takata.</title>
<updated>2013-05-19T03:10:21+00:00</updated>
<author>
<name>ktsj</name>
<email>ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2013-05-19T03:10:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=edb98f8b910b00be16868b21116924cffad785b9'/>
<id>edb98f8b910b00be16868b21116924cffad785b9</id>
<content type='text'>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
</feed>
