path: root/ext
AgeCommit message (Collapse)Author
13 days[ruby/fcntl] Bump up fcntl version to 1.0.1Hiroshi SHIBATA
13 days[flori/json] Bump up json version to 2.6.0Hiroshi SHIBATA
13 days[ruby/zlib] Bump up zlib version to 2.1.0Hiroshi SHIBATA
13 days[ruby/zlib] Bump version to v2.0.0Hiroshi SHIBATA
13 daysRemoved redundant digest namespaceHiroshi SHIBATA
13 daysseparate pure ruby location under the digest/* extensionsHiroshi SHIBATA
13 daysMove pure ruby files under the ext/gemname/lib directory.Hiroshi SHIBATA
2021-10-12Fix libraries under digestNobuyoshi Nakada
2021-10-12[ruby/digest] Bump version to 3.1.0.pre2Akinori MUSHA
2021-10-12[ruby/digest] Bump version to 3.1.0.pre1Akinori MUSHA
2021-10-12[ruby/digest] include jarsPavel Rosický
2021-10-12[ruby/digest] Bump version to 3.1.0.pre0Akinori MUSHA
2021-10-12[ruby/digest] Place common parts in lib and engine specific parts under ↵Akinori MUSHA
2021-10-12[ruby/digest] relicence under the Ruby license and the BSD 2-clausePavel Rosický
2021-10-12[ruby/digest] jruby supportPavel Rosický
2021-10-12[ruby/digest] Move digest.rb back under ext as the extension bundled libraryNobuyoshi Nakada
2021-10-12Add more socket constantsKazuhiro NISHIYAMA
from Notes: Merged:
2021-10-05ruby tool/update-deps --fix卜部昌平
Notes: Merged:
2021-10-02Avoid using the altzone variable in AIXRei Odaira
In AIX, altzone exists in the standard library but is not declared in time.h. By 524513be399e81bb170ec88aa0d501f33cbde8c3, have_var and try_var in mkmf recognizes a variable that exists in a library even when it is not declared. As a result, in AIX, HAVE_ALTZONE is defined, but compile fails due to the lack of the declaration.
2021-09-28[ruby/date] Make %v strftime flag use uppercase monthJeremy Evans
%v is supposed to be the VMS date, and VMS date format uses an uppercase month. Ruby 1.8 used an uppercase month for %v, but the behavior was changed without explanation in r31672. Time#strftime still uses an uppercase month for %v, so this change makes Date#strftime consistent with Time#strftime. Fixes [Bug #13810]
2021-09-23[DOC] Use `unpack1` instead of `unpack(template)[0]` [ci skip]Kazuhiro NISHIYAMA
2021-09-12[ruby/openssl] Add fallthrough commentsNobuyoshi Nakada
2021-09-12[ruby/openssl] Suppress cast-function-type warningsNobuyoshi Nakada
2021-09-12[ruby/openssl] Separate formatting from ossl_make_errorNobuyoshi Nakada
Just append OpenSSL error reason to the given message string object, which would be alreadly formatted. Suppress -Wformat-security warning in `ossl_tsfac_create_ts`.
2021-09-12[ruby/openssl] Suppress printf format warningsNobuyoshi Nakada
* Add `printf` format attribute to `ossl_raise`. * Fix a format specifier in `config_load_bio`. * Use `ASSUME` for the unreachable condition.
2021-09-09[ruby/date] Ignore warned variablesNobuyoshi Nakada
To suppress warnings at the compilation time.
2021-09-05[ruby/fiddle] Use test-unit gem ( SHIBATA Co-authored-by: Sutou Kouhei <> Notes: Merged:
2021-09-05[ruby/fiddle] Create extconf header for MSVCNobuyoshi Nakada
Not to include parenthesized argument. Notes: Merged:
2021-09-02Refined test [Bug #18140]Nobuyoshi Nakada
2021-09-01Guard array when appendingAaron Patterson
This prevents early collection of the array. The GC doesn't see the array on the stack when Ruby is compiled with optimizations enabled Thanks @jhaberman for the test case [ruby-core:105099] [Bug #18140]
2021-08-31[ruby/zlib] Don't print out warnings when finalizingNobuyoshi Nakada
2021-08-31[ruby/zlib] Revert "Don't print out warnings when freeing."Nobuyoshi Nakada
2021-08-31[ruby/psych] Replace A-Za-z with [:alpha:]jory-graham
2021-08-31[ruby/psych] Add quotes to the strings "y" and "n"Aaron Patterson
'y' and 'n' are kind of ambiguous. Syck treated y and n literals in YAML documents as strings. But this is not what the YAML 1.1 spec says. YAML 1.1 says they should be treated as booleans. When we're dumping documents, we know it's a string, so adding quotes will eliminate the "ambiguity" in the emitted document Fixes #443
2021-08-31[ruby/psych] Update lib/psych/scalar_scanner.rbopak Co-authored-by: Olle Jonsson <>
2021-08-31[ruby/psych] add more testsAlexandr Opak
2021-08-31[ruby/psych] fix parsing integer values with '_' at the endAlexandr Opak
2021-08-31[ruby/psych] Improve float scalar scannerTomer Brisker
Previously, `+.inf` was not handled correctly. Additionally, the regexp was checking for inf and NaN, even though these cases are handled earlier in the condition. Added a few tests to ensure handling some missing cases.
2021-08-31[ruby/zlib] Don't print out warnings when freeing.Samuel Williams
2021-08-31[Feature #16972] Add mode: option to Pathname#mkpathNobuyoshi Nakada
2021-08-30Faster Pathname FileUtils methodsschneems
Currently when calling any of the "FileUtils" methods on pathname `require` is called every time even though that library might already be loaded. This is slow: We can speed it up by either checking first if the constant is already defined, or by using autoload. Using defined speeds up the action by about 300x and using autoload is about twice as fast as that (600x faster than current require method). I'm proposing we use autoload: ```ruby require 'benchmark/ips' Benchmark.ips do |x| autoload(:FileUtils, "fileutils")"require") { require 'fileutils' }"defined") { require 'fileutils' unless defined?(FileUtils) }"autoload") { FileUtils }! end # Warming up -------------------------------------- # require 3.624k i/100ms # defined 1.465M i/100ms # autoload 2.320M i/100ms # Calculating ------------------------------------- # require 36.282k (± 2.4%) i/s - 184.824k in 5.097153s # defined 14.539M (± 2.0%) i/s - 73.260M in 5.041161s # autoload 23.100M (± 1.9%) i/s - 115.993M in 5.023271s # Comparison: # autoload: 23099779.2 i/s # defined: 14538544.9 i/s - 1.59x (± 0.00) slower # require: 36282.3 i/s - 636.67x (± 0.00) slower ``` Because this autoload is scoped to Pathname it will not change the behavior of existing programs that are not expecting FileUtils to be loaded yet: ``` ruby -rpathname -e "class Pathname; autoload(:FileUtils, 'fileutils'); end; puts FileUtils.exist?" Traceback (most recent call last): -e:1:in `<main>': uninitialized constant FileUtils (NameError) ``` Notes: Merged:
2021-08-25[Feature #18045] Remove T_PAYLOADPeter Zhu
This commit removes T_PAYLOAD since the new VWA implementation no longer requires T_PAYLOAD types. Co-authored-by: Aaron Patterson <> Notes: Merged:
2021-08-24[ruby/fiddle] Improve "offsetof" calculations ↵Aaron Patterson
( I need to get the offset of members inside sub structures. This patch adds sub-structure offset support for structs.
2021-08-23Revert "[Feature #18045] Implement size classes for GC"Peter Zhu
This reverts commits 48ff7a9f3e47bffb3e4d067a12ba9b936261caa0 and b2e2cf2dedd104acad8610721db5e4d341f135ef because it is causing crashes in SPARC solaris and i386 debian. Notes: Merged:
2021-08-23[Feature #18045] Remove T_PAYLOADPeter Zhu
This commit removes T_PAYLOAD since the new VWA implementation no longer requires T_PAYLOAD types. Co-authored-by: Aaron Patterson <> Notes: Merged:
2021-08-22[ruby/date] Add zontab.list dependencyNobuyoshi Nakada
2021-08-20undefine alloc functions for C extensionsMike Dalessio
per guidance in doc/extension.rdoc, these classes now undefine their alloc functions: - ObjectSpace::InternalObjectWrapper - Socket::Ifaddr Notes: Merged:
2021-08-17[ruby/date] Update zonetab.h at 2021-08-11Nobuyoshi Nakada
2021-08-09Include ruby.h before internal headers to suppress -Wundef warningsNobuyoshi Nakada
2021-08-05Show WorkingSetSize as RSS on WindowsNobuyoshi Nakada
Notes: Merged: