| Age | Commit message (Collapse) | Author |
|
|
|
Apply __attribute__((__returns_nonnull__)) when available.
|
|
malloc can fail. Should treat such situations.
|
|
Looking at gc.c, rb_aligned_malloc contains `return NULL;` so it
has to be taken care of. Note however that posix_memalign(3posix)
does _not_ set errno.
|
|
clang also supports __attribute__((__alloc_size__)) so why not use
it when the compiler says it does.
|
|
https://github.com/ruby/zlib/commit/3e98e4cac3
|
|
Before this change, it was not possible to write out zero for the
timestamp part of a Gzip file's header, as calling GzipWriter#mtime with
zero was ignored.
Judging from the docs for `GzipWriter#mtime=`, it should be possible to
indicate that no timestamp is available by calling the method with zero.
https://github.com/ruby/zlib/commit/310be39cac
|
|
Fixes Ruby Bug 16281.
|
|
Follow up of 473882e01f7e55753733e2607ace633b5041f11f
|
|
|
|
Ruby 2.7 deprecates taint and it no longer has an effect.
The lack of taint support should not cause a problem in
previous Ruby versions.
https://github.com/ruby/stringio/commit/60ee9ccd95
|
|
This reverts commit af01edd7d8575f544f647dbe8cde5b6ae535d459.
Revert requested by Yui Naruse.
https://github.com/ruby/date/commit/875d563557
|
|
"invalid <anything>" type of exception
https://github.com/ruby/date/commit/3e55c09ba4
|
|
https://github.com/ruby/fileutils/commit/5ac9a8a1f7
|
|
Gem::Specification#add_development_dependency.
https://github.com/ruby/gdbm/commit/bd2e7f6647
|
|
Ruby 2.7 deprecates taint and it no longer has an effect.
The lack of taint support should not cause a problem in
previous Ruby versions.
https://github.com/ruby/gdbm/commit/f9aaa1a08d
|
|
Ruby 2.7 deprecates taint and it no longer has an effect.
The lack of taint support should not cause a problem in
previous Ruby versions.
https://github.com/ruby/zlib/commit/21711ed0ce
|
|
Also fixed some grammatical errors. [ci skip]
|
|
* Ignode to change ext/json/depend
* Fixed to ignore json_pure files
|
|
This reverts commit e1bf29314feee6aaf535917da0178e868e7ff3fa.
I'm not sure why this broke stuff, I need to investigate later.
|
|
This commit is to attempt fixing this error:
http://ci.rvm.jp/results/trunk-gc-asserts@ruby-sky1/2353281
Each non-full heap_page struct contains a reference to the next page
that contains free slots. Compaction could fill any page, including
pages that happen to be linked to as "pages which contain free slots".
To fix this, we'll iterate each page, and rebuild the "free page list"
depending on the number of actual free slots on that page. If there are
no free slots on the page, we'll set the free_next pointer to NULL.
Finally we'll pop one page off the "free page list" and set it as the
"using page" for the next allocation.
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/2635
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/2635
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/2635
|
|
|
|
```
irb(main):001:0> RUBY_VERSION
=> "2.6.5"
irb(main):002:0> S = Struct.new(:foo, keyword_init: true)
=> S(keyword_init: true)
irb(main):003:0> S.new({foo: 23424}, 234) # I don't think this is intentional
=> #<struct S foo=23424>
irb(main):004:0>
```
Tightening this up should inform users when they are confused about
whether a struct is `keyword_init`.
Notes:
Merged: https://github.com/ruby/ruby/pull/2634
|
|
|
|
|
|
|
|
This update does not add any new codepoint assignments, it just
expands the range of emoji codepoint sequences recommended for
public interchange.
Depending on how emoji data files are cached, this commit may
require manual intervention in some build environments
(including some CI systems).
|
|
|
|
When we compact the heap, various st tables are updated, particularly
the table that contains the object id map. Updating an st table can
cause a GC to occur, and we need to prevent any GC from happening while
moving or updating references.
|
|
Since the current working directory is not involved in `Tempfile`
and `Dir.mktmpdir` (except for the last resort), it is incorrect
to derive the traversal path from it. Also, since the rubyspec
temporary directory is created under the build directory, this is
not involved in the target method. Fixed sporadic errors in
test-spec.
|
|
|
|
This reverts commit 54eb51d72bc43f90b595f0d7ffb5069ebf1a56d9.
Windows build failure. See also https://github.com/ruby/ruby/runs/278718805
|
|
Some test cases in rubygems assume that /tmp/Gemfile does not exist.
If it does, they fail with very difficult-to-understand message:
```
[ 149/2108] TestGemBundlerVersionFinder#test_bundler_version_with_bundle_update_bundler = 0.00
1) Failure:
TestGemBundlerVersionFinder#test_bundler_version_with_bundle_update_bundler [/home/mame/work/ruby/test/rubygems/test_gem_bundler_version_finder.rb:38]:
Expected Gem::Version.new("2.0.2") to be nil.
```
I spent one hour to debug this issue. To prevent the same accident,
this change makes the test suite stop when /tmp/Gemfile explicitly.
|
|
This reverts commit ca5812fe4516a10cc687281f9e47e1a08449f1ab.
Now tool/lib/minitest provides "omit", so it should work.
|
|
According to rdoc, test-unit provides omit instead of skip.
This is a compatibility layer to make it work with both test-unit and
tool/lib/minitest.
|
|
This reverts commit b4da6fc1c277190bbd10e795ebf3be45772038e8.
`make test-all` uses minitest, which led to "undefined method `omit'"
|
|
https://github.com/ruby/rdoc/commit/ba16e44572
|
|
https://github.com/ruby/rdoc/commit/946d2592e2
|
|
https://github.com/ruby/rdoc/commit/1c5bf2ae1d
|
|
|
|
Previously this was restricted to only gcc because of the
GCC_VERSION_SINCE check (which explicitly excludes clang).
GCC 3.3.0 is quite old so I feel relatively safe assuming that all
reasonable versions of clang support this.
Notes:
Merged: https://github.com/ruby/ruby/pull/2628
|
|
initialized to the methods count
Notes:
Merged: https://github.com/ruby/ruby/pull/2595
|
|
the size already given
Notes:
Merged: https://github.com/ruby/ruby/pull/2593
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/2592
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/2591
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/2590
|
|
Notes:
Merged: https://github.com/ruby/ruby/pull/2589
|