summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* MSWin: Use MESSAGE_BEGIN/MESSAGE_END instead of bare `echo`Nobuyoshi Nakada2023-03-021-4/+13
| | | | To strip enclosing double quotes.
* Update the depend filesMatt Valentine-House2023-02-2893-209/+0
|
* [ruby/stringio] Implement write barrier on StringIOJean Boussier2023-02-281-4/+5
| | | | | | | It only has a single reference set in 3 places which makes it fairly easy to implement. https://github.com/ruby/stringio/commit/009896b973
* Remove intern/gc.h from Make depsMatt Valentine-House2023-02-2793-209/+0
|
* Prefer to use File.foreach instead of IO.foreachHiroshi SHIBATA2023-02-271-1/+1
|
* Prefer to use File.binwrite instead of IO.binwriteHiroshi SHIBATA2023-02-271-2/+2
|
* Prefer to use File.binread instead of IO.binreadHiroshi SHIBATA2023-02-271-2/+2
|
* [ruby/stringio] Remove (newly unneeded) remarks about aliasesBurdetteLamar2023-02-251-6/+0
| | | | https://github.com/ruby/stringio/commit/60bb320477
* [ruby/bigdecimal] Bump up to 3.1.4Nobuyoshi Nakada2023-02-211-1/+1
| | | | | | | | | | 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
* [ruby/bigdecimal] Move RB_GC_GUARD() at the end, like in BigMath_s_exp()Benoit Daloze2023-02-211-6/+7
| | | | https://github.com/ruby/bigdecimal/commit/b66ef9fbb5
* [ruby/bigdecimal] Avoid RB_GC_GUARD(a) = b in bigdecimalBenoit Daloze2023-02-211-6/+12
| | | | | | | | * 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
* [ruby/openssl] Stub gemspec for JRubyCharles Oliver Nutter2023-02-211-3/+9
| | | | | | | | | | | | | 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
* [ruby/strscan] Bump versionSutou Kouhei2023-02-211-1/+1
| | | | https://github.com/ruby/strscan/commit/681cde0f27
* [ruby/strscan] Mention return value of `rest?` in the docOKURA Masafumi2023-02-211-2/+3
| | | | | | | (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.
* [ruby/bigdecimal] Read version from bigdecimal.cNobuyoshi Nakada2023-02-214-32/+15
| | | | | | | | | 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
* [ruby/date] Removed (newly unneeded) alias remarksBurdette Lamar2023-02-191-19/+0
| | | | | | (https://github.com/ruby/date/pull/88) https://github.com/ruby/date/commit/cfa7e9868b
* [DOC] Improve ObjectSpace#dump_XXX method docszverok2023-02-191-21/+14
| | | | | | * 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)
* [ruby/bigdecimal] Fix the license name [ci skip]Nobuyoshi Nakada2023-02-191-1/+1
| | | | | | | | | | | | ``` $ 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
* [ruby/bigdecimal] Stub out extension build on JRubyCharles Oliver Nutter2023-02-172-10/+20
| | | | | | | | | | | | | | | | 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
* [ruby/bigdecimal] Handle correctly #remainder with infinity. FixesMaciej Rzasa2023-02-171-0/+7
| | | | | | https://github.com/ruby/bigdecimal/pull/187 https://github.com/ruby/bigdecimal/commit/4b8572d452
* Encapsulate RCLASS_ATTACHED_OBJECTJean Boussier2023-02-151-0/+2
| | | | | | | | | Right now the attached object is stored as an instance variable and all the call sites that either get or set it have to know how it's stored. It's preferable to hide this implementation detail behind accessors so that it is easier to change how it's stored.
* Merge gc.h and internal/gc.hMatt Valentine-House2023-02-096-8/+8
| | | | [Feature #19425]
* Extract include/ruby/internal/attr/packed_struct.hNobuyoshi Nakada2023-02-0893-0/+209
| | | | | | | | | Split `PACKED_STRUCT` and `PACKED_STRUCT_UNALIGNED` macros into the macros bellow: * `RBIMPL_ATTR_PACKED_STRUCT_BEGIN` * `RBIMPL_ATTR_PACKED_STRUCT_END` * `RBIMPL_ATTR_PACKED_STRUCT_UNALIGNED_BEGIN` * `RBIMPL_ATTR_PACKED_STRUCT_UNALIGNED_END`
* [ruby/psych] Bump version to 5.1 for releaseCharles Oliver Nutter2023-02-071-1/+1
| | | | | | | | | This version primarily updates the JRuby extension to use SnakeYAML Engine, a newer version of the SnakeYAML library, which also updates YAML support to 1.2. The JRuby extension now also exposes settings for the parser. https://github.com/ruby/psych/commit/6f2b16b343
* [ruby/stringio] Development of 3.0.6 started.Nobuyoshi Nakada2023-02-031-1/+1
| | | | https://github.com/ruby/stringio/commit/a7561f447b
* [ruby/stringio] Revert "bump up to 3.0.6" [ci skip]Nobuyoshi Nakada2023-02-021-1/+1
| | | | | | | This reverts commit https://github.com/ruby/stringio/commit/325933500b35. It is bumped to 3.0.5 in advance but not released yet. https://github.com/ruby/stringio/commit/af67c36693
* [ruby/stringio] bump up to 3.0.6Nobuyoshi Nakada2023-02-021-1/+1
| | | | https://github.com/ruby/stringio/commit/325933500b
* [Bug #19399] Parsing invalid heredoc inside block parameterNobuyoshi Nakada2023-02-021-1/+1
| | | | | Although this is of course invalid as Ruby code, allow to just parse and tokenize.
* [ruby/bigdecimal] Make BigDecimal WB protectedPeter Zhu2023-02-011-1/+1
| | | | | | BigDecimal has no references, so it is WB protected. https://github.com/ruby/bigdecimal/commit/29c61c90e8
* [ruby/openssl] [DOC] Remove repeated example from DigestMau Magnaguagno2023-01-311-5/+1
| | | | https://github.com/ruby/openssl/commit/5a36cc3cb2
* Initial move to SnakeYAML EngineCharles Oliver Nutter2023-01-312-2/+2
| | | | | | | | | | | | | | | See jruby/jruby#7570 for some of the justification for this move. We only require the parser from SnakeYAML, but in the original form it is encumbered with Java object serialization code that keeps getting flagged as a CVE risk. We disagree with the assessment, at least as it pertains to JRuby (we do not use the code in question) but our inclusion of the library continues to get flagged by auditing tools. This commit starts the process of moving to the successor library, SnakeYAML Engine. The parser API is largely unchanged, except as seen in this commit. No Java exceptions are thrown, but a number of Psych tests fail (possibly due to Engine being YAML 1.2 only).
* Extract check for RSTRING_SOCKLENNobuyoshi Nakada2023-01-301-3/+15
|
* [ruby/stringio] [Bug #19389] Fix chomping with longer separatorNobuyoshi Nakada2023-01-281-2/+3
| | | | https://github.com/ruby/stringio/commit/eb322a9716
* [ruby/fiddle] fiddle: Use C11 _Alignof to define ALIGN_OF whenKhem Raj2023-01-271-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | possible (https://github.com/ruby/fiddle/pull/120) WG14 N2350 made very clear that it is an UB having type definitions within "offsetof" [1]. This patch enhances the implementation of macro ALIGN_OF to use builtin "_Alignof" to avoid undefined behavior when using std=c11 or newer clang 16+ has started to flag this [2] Fixes build when using -std >= gnu11 and using clang16+ Older compilers gcc < 4.9 or clang < 8 has buggy _Alignof even though it may support C11, exclude those compiler versions [1] https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2350.htm [2] https://reviews.llvm.org/D133574 Signed-off-by: Khem Raj <raj.khem@gmail.com> https://github.com/ruby/fiddle/commit/ad6c9aa826
* [ruby/fiddle] Fix comment formattingAaron Patterson2023-01-271-12/+12
| | | | https://github.com/ruby/fiddle/commit/36b2432575
* [ruby/fiddle] Update documentationAaron Patterson2023-01-271-14/+19
| | | | | | | | (https://github.com/ruby/fiddle/pull/119) The documentation for `Fiddle.dlwrap` and `Fiddle.dlunwrap` were not very accurate and pretty confusing. This commit updates the documentation so it's easier to understand what the methods do.
* Fix homepage url in gemspecYusuke Nakamura2023-01-231-3/+3
| | | | GitHub Pages now hosted on *.github.io
* [ruby/psych] Fix RestrictedYAMLTree allowing the Symbol class should allow ↵Jean Boussier2023-01-231-2/+2
| | | | | | | | | | | | | | | | all symbols Ref: https://github.com/ruby/psych/pull/495 That's how it works for `safe_load`: ```ruby >> YAML.safe_load(':foo', permitted_classes: [Symbol]) => :foo ``` So `safe_dump` should mirror that. https://github.com/ruby/psych/commit/592a75a656
* [ruby/psych] Bump up 5.0.2Hiroshi SHIBATA2023-01-181-1/+1
| | | | https://github.com/ruby/psych/commit/a170b8eb46
* Clean up removed directories in ext/Setup* [ci skip]Kazuhiro NISHIYAMA2023-01-183-12/+1
|
* Remove removed files from ext/.document [ci skip]Kazuhiro NISHIYAMA2023-01-181-3/+0
| | | | | | - dbm/dbm.c removed at 55cd3e4ebff8fa75854ecadcd77abbf7cf4b5823 - fiber/fiber.c removed at 521ad9a13aef1e1dae4eaff70d3e6b2e358aa095 - gdbm/gdbm.c removed at edcc29dcff1b269b7748ab83adf21b2f3f97ebff
* [ruby/psych] Bump up 5.0.2.pre1 for testingHiroshi SHIBATA2023-01-171-1/+1
| | | | https://github.com/ruby/psych/commit/67ec299c68
* [ruby/psych] configure of libyaml couldn't detect "arm64-apple-darwin22" for ↵Hiroshi SHIBATA2023-01-171-1/+1
| | | | | | | | | | | | build host. checking whether make sets $(MAKE)... (cached) yes checking build system type... arm-apple-darwin21.6.0 checking host system type... Invalid configuration `arm64-apple-darwin21': machine `arm64-apple' not recognized configure: error: /bin/sh /Users/hsbt/Downloads/yaml-0.2.5/config/config.sub arm64-apple-darwin21 failed *** extconf.rb failed *** https://github.com/ruby/psych/commit/ad1502202c
* fix typo in comments / autodocRick Hull2023-01-161-1/+1
| | | replace _socktype_ with _type_ in the comments
* [ruby/psych] Remove deleted file from gemspecCharles Oliver Nutter2023-01-141-1/+0
| | | | https://github.com/ruby/psych/commit/77861ff281
* Remove Encoding#replicateBenoit Daloze2023-01-112-0/+187
|
* [ruby/psych] Get rid of anonymous eval callsJean Boussier2023-01-112-3/+3
| | | | | | Things declared in anonymous eval are always annoying to locate. https://github.com/ruby/psych/commit/38871ad4e5
* [ruby/zlib] Check for functions with arguments and the headerNobuyoshi Nakada2023-01-091-4/+3
| | | | | | With arguments, mkmf skips compilation check for the function as RHS. https://github.com/ruby/zlib/commit/9ed9d6d36e
* [ruby/psych] Fix wrong package name of MSYS2/MINGW dependencyLars Kanis2023-01-091-1/+1
| | | | There is no package called "libyaml-devel". "libyaml" is enough.
* [ruby/bigdecimal] Fix format specifiers for `size_t`Nobuyoshi Nakada2023-01-071-1/+1
| | | | https://github.com/ruby/bigdecimal/commit/99db3c9754