summaryrefslogtreecommitdiff
path: root/ext
AgeCommit message (Collapse)Author
2023-05-25[ruby/nkf] Bump up nkf-0.1.3Hiroshi SHIBATA
https://github.com/ruby/nkf/commit/bc90e2ed39
2023-05-25[ruby/nkf] Added mission extension configurationHiroshi SHIBATA
https://github.com/ruby/nkf/commit/e627a39dff
2023-05-24[flori/json] Call `super` in `included` hookUfuk Kayserilioglu
The C extension defines an `included` hook for the `JSON::Ext::Generator::GeneratorMethods::String` module but neglects to call `super` in the hook. This can break the functionality of various other code that rely on the fact that `included` on `Module` will always be called. https://github.com/flori/json/commit/cd8bbe56a3
2023-05-20`rb_bug` prints a newline after the messageNobuyoshi Nakada
2023-05-19[ruby/openssl] Fix warnings about the OPENSSL_FIPS macro in OpenSSL 1.1.Jun Aruga
The commit <https://github.com/ruby/openssl/commit/c5b2bc1268bc> made the warnings below in the case of OpenSSL 1.1 where the `OPENSSL_FIPS` macro is not defined. ``` $ bundle install --standalone $ bundle exec rake compile -- \ --with-openssl-dir=$HOME/.local/openssl-1.1.1t-debug \ --with-cflags="-Wundef" mkdir -p tmp/x86_64-linux/openssl/3.2.1 cd tmp/x86_64-linux/openssl/3.2.1 /usr/local/ruby-3.2.1/bin/ruby -I. -r.rake-compiler-siteconf.rb ../../../../ext/openssl/extconf.rb -- --with-openssl-dir=/home/jaruga/.local/openssl-1.1.1t-debug --with-cflags=-Wundef ... gcc -I. -I/usr/local/ruby-3.2.1/include/ruby-3.2.0/x86_64-linux -I/usr/local/ruby-3.2.1/include/ruby-3.2.0/ruby/backward -I/usr/local/ruby-3.2.1/include/ruby-3.2.0 -I../../../../ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -I/home/jaruga/.local/openssl-1.1.1t-debug/include -fPIC -Wundef -o ossl.o -c ../../../../ext/openssl/ossl.c ../../../../ext/openssl/ossl.c: In function ‘ossl_fips_mode_get’: ../../../../ext/openssl/ossl.c:425:7: warning: "OPENSSL_FIPS" is not defined, evaluates to 0 [-Wundef] 425 | #elif OPENSSL_FIPS | ^~~~~~~~~~~~ ../../../../ext/openssl/ossl.c: In function ‘ossl_fips_mode_set’: ../../../../ext/openssl/ossl.c:460:7: warning: "OPENSSL_FIPS" is not defined, evaluates to 0 [-Wundef] 460 | #elif OPENSSL_FIPS | ^~~~~~~~~~~~ ../../../../ext/openssl/ossl.c: In function ‘Init_openssl’: ../../../../ext/openssl/ossl.c:1218:7: warning: "OPENSSL_FIPS" is not defined, evaluates to 0 [-Wundef] 1218 | #elif OPENSSL_FIPS | ^~~~~~~~~~~~ ... cp tmp/x86_64-linux/openssl/3.2.1/openssl.so tmp/x86_64-linux/stage/lib/openssl.so ``` https://github.com/ruby/openssl/commit/b4228cbcd6
2023-05-19[ruby/openssl] Implement FIPS functions on OpenSSL 3.Jun Aruga
This commit is to implement the `OpenSSL::OPENSSL_FIPS`, `ossl_fips_mode_get` and `ossl_fips_mode_set` to pass the test `test/openssl/test_fips.rb`. It seems that the `OPENSSL_FIPS` macro is not used on the FIPS mode case any more, and some FIPS related APIs also were removed in OpenSSL 3. See the document <https://github.com/openssl/openssl/blob/master/doc/man7/migration_guide.pod#removed-fips_mode-and-fips_mode_set> the section OPENSSL 3.0 > Main Changes from OpenSSL 1.1.1 > Other notable deprecations and changes - Removed FIPS_mode() and FIPS_mode_set() . The `OpenSSL::OPENSSL_FIPS` returns always true in OpenSSL 3 because the used functions `EVP_default_properties_enable_fips` and `EVP_default_properties_is_fips_enabled` works with the OpenSSL installed without FIPS option. The `TEST_RUBY_OPENSSL_FIPS_ENABLED` is set on the FIPS mode case on the CI. Because I want to test that the `OpenSSL.fips_mode` returns the `true` or 'false' surely in the CI. You can test the FIPS mode case by setting `TEST_RUBY_OPENSSL_FIPS_ENABLED` on local too. Right now I don't find a better way to get the status of the FIPS mode enabled or disabled for this purpose. I am afraid of the possibility that the FIPS test case is unintentionally skipped. I also replaced the ambiguous "returns" with "should return" in the tests. https://github.com/ruby/openssl/commit/c5b2bc1268
2023-05-15Process parse.y without temporary filesNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7817
2023-05-14Add user argument to some macros used by bisonNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7807
2023-05-14Preprocess input parse.y from stdinNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7807
2023-05-12Use Lrama LALR parser generator instead of Bisonv3_3_0_preview1Yuichiro Kaneko
https://bugs.ruby-lang.org/issues/19637 Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> Notes: Merged: https://github.com/ruby/ruby/pull/7798 Merged-By: yui-knk <spiketeika@gmail.com>
2023-05-09Extract ext/readlineHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7781
2023-05-08[ruby/stringio] Drop support for ruby 2.6 or earlierNobuyoshi Nakada
(https://github.com/ruby/stringio/pull/47) `rb_io_extract_modeenc` has been exported since ruby 2.7.
2023-05-05Redirect to `IO::NULL` for the portabilityNobuyoshi Nakada
2023-05-03[ruby/stringio] Update write-barrier at copyingNobuyoshi Nakada
http://ci.rvm.jp/results/trunk-asserts@ruby-sp2-docker/4552803 ``` verify_internal_consistency_reachable_i: WB miss (O->Y) 0x00007f752ddd5550 [3LM ] strio (StringIO)strio -> 0x00007f752d19b7d0 [0 ] T_STRING (String) len: 8, capa: 15 "to_strio" <internal:/tmp/ruby/src/trunk-asserts/lib/rubygems/core_ext/kernel_require.rb>:53: [BUG] gc_verify_internal_consistency: found internal inconsistency. ``` https://github.com/ruby/stringio/commit/2e8ab43cba
2023-04-25[ruby/syslog] Improve the version extractionAkinori MUSHA
https://github.com/ruby/syslog/commit/34da65a002
2023-04-25[ruby/syslog] Raise required_ruby_versionAkinori MUSHA
https://github.com/ruby/syslog/commit/5289373016
2023-04-25[ruby/syslog] Expose Syslog::VERSIONHiroshi SHIBATA
https://github.com/ruby/syslog/commit/ff5d72fcb9
2023-04-21[ruby/win32ole] Reuse WIN32OLE_VERSION for gem versionHiroshi SHIBATA
https://github.com/ruby/win32ole/commit/bff3ea8b0b
2023-04-21[ruby/fcntl] Expose Fcntl::VERSIONHiroshi SHIBATA
https://github.com/ruby/fcntl/commit/cb8e414e9f
2023-04-14[ruby/stringio] Development of 3.0.7 started.Sutou Kouhei
https://github.com/ruby/stringio/commit/5d39880f70
2023-04-14[ruby/readline-ext] Expose Readline::GEM_VERSIONHiroshi SHIBATA
https://github.com/ruby/readline-ext/commit/70aa84b80e
2023-04-14[ruby/nkf] Expose NKF::GEM_VERSIONHiroshi SHIBATA
https://github.com/ruby/nkf/commit/0d0fb3a162
2023-04-14[ruby/pathname] Expose Pathname::VERSIONHiroshi SHIBATA
https://github.com/ruby/pathname/commit/2b0b1a82ee
2023-04-08[ruby/bigdecimal] fix: typo in document comments of `f_BigDecimal` functionHoNooD
https://github.com/ruby/bigdecimal/commit/13abe1fd78
2023-04-08[ruby/bigdecimal] Remove set but unused variableNobuyoshi Nakada
This `prec` has not been used since https://github.com/ruby/bigdecimal/commit/1f5c46dbdd1c. https://github.com/ruby/bigdecimal/commit/08a0ad563d
2023-04-07[Bug#19161] Detect thread local storage specifierNobuyoshi Nakada
Checking by `__STDC_VERSION__` is unreliable because old gcc 4.8 supports `-std=gnu11` option but does not implement `_Thread_local`. Check the implementation directly instead. Notes: Merged: https://github.com/ruby/ruby/pull/7669
2023-04-07[ruby/openssl] Register global variables before assignmentNobuyoshi Nakada
https://github.com/ruby/openssl/commit/98099d3796
2023-04-06Update VPATH for socket, & dependenciesMatt Valentine-House
The socket extensions rubysocket.h pulls in the "private" include/gc.h, which now depends on vm_core.h. vm_core.h pulls in id.h when tool/update-deps generates the dependencies for the makefiles, it generates the line for id.h to be based on VPATH, which is configured in the extconf.rb for each of the extensions. By default VPATH does not include the actual source directory of the current Ruby so the dependency fails to resolve and linking fails. We need to append the topdir and top_srcdir to VPATH to have the dependancy picked up correctly (and I believe we need both of these to cope with in-tree and out-of-tree builds). I copied this from the approach taken in https://github.com/ruby/ruby/blob/master/ext/objspace/extconf.rb#L3 Notes: Merged: https://github.com/ruby/ruby/pull/7393
2023-04-04[Feature #19579] Remove !USE_RVARGC code (#7655)Peter Zhu
Remove !USE_RVARGC code [Feature #19579] The Variable Width Allocation feature was turned on by default in Ruby 3.2. Since then, we haven't received bug reports or backports to the non-Variable Width Allocation code paths, so we assume that nobody is using it. We also don't plan on maintaining the non-Variable Width Allocation code, so we are going to remove it. Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
2023-03-27[ruby/pathname] Remove taint/untaint methods because they should be removed ↵Hiroshi SHIBATA
since Ruby 3.2 released. Fixes https://github.com/ruby/pathname/pull/28 https://github.com/ruby/pathname/commit/c52fd3a835
2023-03-02MSWin: Use MESSAGE_BEGIN/MESSAGE_END instead of bare `echo`Nobuyoshi Nakada
To strip enclosing double quotes.
2023-02-28Update the depend filesMatt Valentine-House
Notes: Merged: https://github.com/ruby/ruby/pull/7310
2023-02-28[ruby/stringio] Implement write barrier on StringIOJean Boussier
It only has a single reference set in 3 places which makes it fairly easy to implement. https://github.com/ruby/stringio/commit/009896b973
2023-02-27Remove intern/gc.h from Make depsMatt Valentine-House
Notes: Merged: https://github.com/ruby/ruby/pull/7330
2023-02-27Prefer to use File.foreach instead of IO.foreachHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7387
2023-02-27Prefer to use File.binwrite instead of IO.binwriteHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7387
2023-02-27Prefer to use File.binread instead of IO.binreadHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/7387
2023-02-25[ruby/stringio] Remove (newly unneeded) remarks about aliasesBurdetteLamar
https://github.com/ruby/stringio/commit/60bb320477
2023-02-21[ruby/bigdecimal] Bump up to 3.1.4Nobuyoshi Nakada
ruby/bigdecimal#187 has changed a behavior and ruby/spec also needed a follow up at https://github.com/ruby/ruby/commit/0d8ef62fc293. However, because bigdecimal is a separate gem and can be updated in older versions of ruby, `RUBY_VERSION` is not appropriate for this guard. That means it needs bumped up `BigDecimal::VERSION`. https://github.com/ruby/bigdecimal/commit/3a2a7a9353
2023-02-21[ruby/bigdecimal] Move RB_GC_GUARD() at the end, like in BigMath_s_exp()Benoit Daloze
https://github.com/ruby/bigdecimal/commit/b66ef9fbb5
2023-02-21[ruby/bigdecimal] Avoid RB_GC_GUARD(a) = b in bigdecimalBenoit Daloze
* This is not supported on TruffleRuby, which requires the value to be set before RB_GC_GUARD() is called. * See https://github.com/oracle/truffleruby/pull/2879 https://github.com/ruby/bigdecimal/commit/7b2957922f
2023-02-21[ruby/openssl] Stub gemspec for JRubyCharles Oliver Nutter
JRuby has its own implementation of the `openssl` library in jruby-openssl. The simplest way for us to allow users to set openssl as a gem dependency is to ship a stub gem that just depends on jruby-openssl. This patch adds that to the gemspec. Additional work may be required to fit this stub gem into the test and release process. See #20 for more details. https://github.com/ruby/openssl/commit/74ccaa5e18
2023-02-21[ruby/strscan] Bump versionSutou Kouhei
https://github.com/ruby/strscan/commit/681cde0f27
2023-02-21[ruby/strscan] Mention return value of `rest?` in the docOKURA Masafumi
(https://github.com/ruby/strscan/pull/49) The doc of `rest?` was unclear about return value. This commit adds the return value to the doc.
2023-02-21[ruby/bigdecimal] Read version from bigdecimal.cNobuyoshi Nakada
The dependency of extconf.h on bigdecimal.gemspec does not make sense as far as no rule is defined for it. Also, the relationship between extension library and gemspec file is various in default gems, and does not work well. https://github.com/ruby/bigdecimal/commit/7f99b28552
2023-02-19[ruby/date] Removed (newly unneeded) alias remarksBurdette Lamar
(https://github.com/ruby/date/pull/88) https://github.com/ruby/date/commit/cfa7e9868b
2023-02-19[DOC] Improve ObjectSpace#dump_XXX method docszverok
* remove false call-seq (output from Ruby parsing is cleaner) * explain output: argument in plain words * change parameter name in docs of #dump_shapes (typo) Notes: Merged: https://github.com/ruby/ruby/pull/7316
2023-02-19[ruby/bigdecimal] Fix the license name [ci skip]Nobuyoshi Nakada
``` $ gem build bigdecimal.gemspec WARNING: license value 'BSD-2-clause' is invalid. Use a license identifier from http://spdx.org/licenses or 'Nonstandard' for a nonstandard license. Did you mean 'BSD-2-Clause'? WARNING: See https://guides.rubygems.org/specification-reference/ for help ``` https://github.com/ruby/bigdecimal/commit/36b77a2d2f
2023-02-17[ruby/bigdecimal] Stub out extension build on JRubyCharles Oliver Nutter
JRuby currently ships its own internal bigdecimal extension as part of the core libraries. In order for users to be able to add bigdecimal to their Gemfile or gem dependencies, we need to stub out the C extension and just load the extension shipped with JRuby. In the future we will try to move our BigDecimal implementation into the gem, but for now this is the simplest way to make it installable on JRuby. See #169 https://github.com/ruby/bigdecimal/commit/829956c643
2023-02-17[ruby/bigdecimal] Handle correctly #remainder with infinity. FixesMaciej Rzasa
https://github.com/ruby/bigdecimal/pull/187 https://github.com/ruby/bigdecimal/commit/4b8572d452