| Age | Commit message (Collapse) | Author |
|
|
|
like pry
|
|
I noticed that some files in rubygems were executable, and I could think
of no reason why they should be.
In general, I think ruby files should never have the executable bit set
unless they include a shebang, so I run the following command over the
whole repo:
```bash
find . -name '*.rb' -type f -executable -exec bash -c 'grep -L "^#!" $1 || chmod -x $1' _ {} \;
```
Notes:
Merged: https://github.com/ruby/ruby/pull/2662
|
|
This reverts commit c5b4d2a2592942766dc2789f46105b91eba7026a.
This commit affects with activation feature of RubyGems.
[Bug #16337][ruby-core:95768]
|
|
|
|
|
|
|
|
|
|
|
|
readline extension
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
% ruby -r date -e 't=Time.utc(2001,2,3,4,5,6,7);p t; p [t, t.to_date, t.to_datetime].map{|d|d.strftime("%Q")}'
2001-02-03 04:05:06.000007 UTC
["%Q", "981158400000", "981173106000"]
```
|
|
Ruby 2.7 deprecates taint and it no longer has an effect.
|
|
Untaint is deprecated and has no effect on Ruby 2.7+.
|
|
We track recursion in order to not infinite loop in ==, inspect, and
similar methods by keeping a thread-local 1 or 2 level hash. This allows
us to track when we have seen the same object (ex. using inspect) or
same pair of objects (ex. using ==) in this stack before and to treat
that differently.
Previously both levels of this Hash used the object's memory_id as a key
(using object_id would be slow and wasteful). Unfortunately, prettyprint
(pp.rb) uses this thread local variable to "pretend" to be inspect and
inherit its same recursion behaviour.
This commit changes the top-level hash to be an identity hash and to use
objects as keys instead of their object_ids.
I'd like to have also converted the 2nd level hash to an ident hash, but
it would have prevented an optimization which avoids allocating a 2nd
level hash for only a single element, which we want to keep because it's
by far the most common case.
So the new format of this hash is:
{ object => true } (not paired)
{ lhs_object => rhs_object_memory_id } (paired, single object)
{ lhs_object => { rhs_object_memory_id => true, ... } } (paired, many objects)
We must also update pp.rb to match this (using identity hashes).
Notes:
Merged: https://github.com/ruby/ruby/pull/2644
|
|
|
|
https://github.com/ruby/racc/commit/a887ebe529
|
|
|
|
Fixes Ruby Bug 16281.
|
|
https://github.com/ruby/fileutils/commit/5ac9a8a1f7
|
|
|
|
https://github.com/ruby/rdoc/commit/946d2592e2
|
|
|
|
* Make links from Net::GenericHTTPRequest work;
* Document +dest+ param of HTTPResponse#read_body;
* Slightly improve reference to particular response
classes from HTTPResponse class docs.
Notes:
Merged: https://github.com/ruby/ruby/pull/2615
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/2615
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/2615
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/2615
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/2615
|
|
* Actualize Notes about other templating engines;
* Document #location= method.
Notes:
Merged: https://github.com/ruby/ruby/pull/2615
|
|
|
|
|
|
Gem::Specification#add_development_dependency.
https://github.com/ruby/forwardable/commit/1e7123a81b
|
|
https://github.com/ruby/forwardable/commit/1a994c90e1
|
|
:__id__
Previously, __send__ and __id__ were skipped if provided as strings,
but not skipped if provided as symbols.
Fixes Ruby Bug 8855.
https://github.com/ruby/forwardable/commit/2e61c8c66c
|
|
https://github.com/ruby/forwardable/commit/1b6991e589
|
|
https://github.com/ruby/forwardable/commit/387758d45a
|
|
|
|
Gem::Specification#add_development_dependency.
https://github.com/ruby/tracer/commit/9df7d7937b
|
|
Fixes Ruby Bug 9876.
|