Mau Magnaguagno
67ee91a305
[ruby/psych] Prefer each_char in Psych::Visitors::Visitor::ToRuby#deserialize
...
Use safe navigation operator with each_char to remove empty strings and improve readability.
https://github.com/ruby/psych/commit/5fe714b216
2023-11-27 01:35:08 +00:00
Hiroshi SHIBATA
d1f781b0d4
[ruby/psych] Bump up v5.1.1.1
...
https://github.com/ruby/psych/commit/51cc86ff3f
2023-10-16 11:55:01 +00:00
Hiroshi SHIBATA
8f6a96e6ad
[ruby/psych] Bump up v5.1.1
...
https://github.com/ruby/psych/commit/f306512d60
2023-10-11 06:13:53 +00:00
Charles Oliver Nutter
35e0e440a2
[ruby/psych] Update SnakeYAML Engine to 2.7
...
https://github.com/ruby/psych/commit/094c811588
2023-10-02 11:47:36 +09:00
Hiroshi SHIBATA
1e7ddfa7ea
[ruby/psych] Extract accessor methods without forwardable
...
We should leave additional dependency if we leave from them.
https://github.com/ruby/psych/commit/3d0325a774
2023-07-05 10:11:36 +00:00
Nobuyoshi Nakada
765a19ab59
[ruby/psych] Remove private methods unused since #487
...
https://github.com/ruby/psych/commit/902c292f26
2023-07-01 15:30:21 +00:00
Nobuyoshi Nakada
31e24a42f3
[ruby/psych] Comment out the code used to expand the file list [ci skip]
...
https://github.com/ruby/psych/commit/715f3bfad0
2023-06-12 12:31:52 +00:00
Nobuyoshi Nakada
bcded49d1a
[ruby/psych] Update spec files
...
https://github.com/ruby/psych/commit/ba6fc48591
2023-06-12 07:02:02 +00:00
Hiroshi SHIBATA
b90683be44
[ruby/psych] Drop to support Ruby 2.4 because the latest version of core_assertions only support Ruby 2.5+
...
https://github.com/ruby/psych/commit/6ec316b7fa
2023-06-08 07:51:44 +00:00
Matt Valentine-House
5e4b80177e
Update the depend files
2023-02-28 09:09:00 -08:00
Matt Valentine-House
f38c6552f9
Remove intern/gc.h from Make deps
2023-02-27 10:11:56 -08:00
Nobuyoshi Nakada
899ea35035
Extract include/ruby/internal/attr/packed_struct.h
...
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`
2023-02-08 12:34:13 +09:00
Charles Oliver Nutter
a66bc448a4
[ruby/psych] Bump version to 5.1 for release
...
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
2023-02-07 12:25:44 +00:00
Charles Oliver Nutter
0ee819b71d
Initial move to SnakeYAML Engine
...
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).
2023-01-31 13:14:05 +09:00
Jean Boussier
8fded5f5d1
[ruby/psych] Fix RestrictedYAMLTree allowing the Symbol class should allow 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
2023-01-23 02:07:23 +00:00
Hiroshi SHIBATA
8a771efec2
[ruby/psych] Bump up 5.0.2
...
https://github.com/ruby/psych/commit/a170b8eb46
2023-01-18 04:53:12 +00:00
Hiroshi SHIBATA
492d37fbbd
[ruby/psych] Bump up 5.0.2.pre1 for testing
...
https://github.com/ruby/psych/commit/67ec299c68
2023-01-17 08:46:27 +00:00
Hiroshi SHIBATA
dd510da89a
[ruby/psych] configure of libyaml couldn't detect "arm64-apple-darwin22" for 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
2023-01-17 08:26:22 +00:00
Charles Oliver Nutter
2082ba7c69
[ruby/psych] Remove deleted file from gemspec
...
https://github.com/ruby/psych/commit/77861ff281
2023-01-14 01:24:39 +00:00
Jean Boussier
3161fd4372
[ruby/psych] Get rid of anonymous eval calls
...
Things declared in anonymous eval are always annoying to locate.
https://github.com/ruby/psych/commit/38871ad4e5
2023-01-11 10:08:13 +00:00
Lars Kanis
f6952a94eb
[ruby/psych] Fix wrong package name of MSYS2/MINGW dependency
...
There is no package called "libyaml-devel". "libyaml" is enough.
2023-01-09 09:39:08 +00:00
Nobuyoshi Nakada
dcf63b58cf
[ruby/psych] Strip trailing spaces [ci skip]
...
https://github.com/ruby/psych/commit/e07b16ad8b
2023-01-06 06:37:01 +00:00
dsisnero
f877805a0c
[ruby/psych] Add msys2 dependencies for windows
...
https://github.com/ruby/psych/commit/9a3816d903
2023-01-06 06:33:08 +00:00
Hiroshi SHIBATA
9fce6014b5
[ruby/psych] Bump version to 5.0.1
...
https://github.com/ruby/psych/commit/bdf20e6042
2022-12-08 02:08:25 +00:00
Hiroshi SHIBATA
40ee1eea76
[ruby/psych] Bump version to 5.0.0
...
https://github.com/ruby/psych/commit/4fed0941b9
2022-12-05 07:44:39 +00:00
Nobuyoshi Nakada
66a650ec41
[ruby/psych] Fix missing `abort` call
...
https://github.com/ruby/psych/commit/de2b98c7b7
Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
2022-10-12 20:24:38 +09:00
Nobuyoshi Nakada
ed01bacf27
[ruby/psych] Abandon when libyaml is not found
...
https://github.com/ruby/psych/commit/0b89eda398
2022-10-12 20:24:37 +09:00
Hiroshi SHIBATA
fc218e5977
[ruby/psych] Removed the related condition of --enable-bundled-libyaml
...
https://github.com/ruby/psych/commit/7c211a43c1
2022-10-07 12:55:31 +09:00
Hiroshi SHIBATA
94d4bea7c9
[ruby/psych] --enable-bundled-libyaml config has been removed
...
https://github.com/ruby/psych/commit/447d372dcd
2022-10-07 12:55:30 +09:00
Hiroshi SHIBATA
0b4352b91d
Removed the related files for downloading with extlibs
2022-10-05 18:22:06 +09:00
Chad Wilson
1a06bc94d9
[ruby/psych] Bump snakeyaml from 1.31 to 1.33
...
https://github.com/ruby/psych/commit/8a761cdfb7
2022-09-28 00:11:05 +09:00
Aaron Patterson
26135312f6
[ruby/psych] Convert some of Parser#parse to Ruby
...
This commit just converts some of the parse method to Ruby
https://github.com/ruby/psych/commit/bca7d2c549
2022-09-20 00:44:30 +09:00
Nobuyoshi Nakada
e4f5296f06
No longer bundle external library sources
2022-09-09 01:33:53 +09:00
Chad Wilson
1b034d66f5
[ruby/psych] Bump snakeyaml from 1.28 to 1.31
...
Resolves CVE-2022-25857, among other fixes.
https://github.com/ruby/psych/commit/918cd25d37
2022-09-07 09:51:57 +09:00
Nobuyoshi Nakada
cbdde8e0c5
[ruby/psych] Dump Date/DateTime as proleptic Gregorian date as well as Time
...
Fix ruby/psych#572
https://github.com/ruby/psych/commit/92304269bc
2022-09-07 09:44:14 +09:00
Alexander Momchilov
9c13a6ce5f
[ruby/psych] Raise specific error when an anchor isn't defined
...
https://github.com/ruby/psych/commit/98fbd5247a
2022-08-09 01:33:34 +09:00
Alexander Momchilov
54219ae8c4
[ruby/psych] Raise specific error when aliases are not enabled
...
https://github.com/ruby/psych/commit/0c11ddcf46
2022-08-09 01:32:47 +09:00
Karl Anderson
509d0a9299
[ruby/psych] Fix infinite loop bug after YAML_MEMORY_ERROR (psych issue #440 )
...
https://github.com/ruby/psych/commit/6c56700fb2
2022-07-15 01:39:42 +09:00
Alan Wu
9357e310fb
[ruby/psych] Fix libyaml download failure rescue under miniruby
...
I tried to build Ruby on a system without libyaml today and realized
that my attempt from <https://github.com/ruby/psych/pull/557 > doesn't
fix the error in <https://github.com/ruby/psych/issues/552 >. I still got
the same `LoadError` from `digest` which stopped the build.
Since `LoadError` is not a `StandardError`, a plain `rescue` doesn't catch
it. Catch `LoadError` explicitly instead and reduce the scope of the
`begin` block.
I tested this change in a Ruby build on macOS without libyaml installed
and confirmed that `make` continues with a warning instead of aborting:
*** Following extensions are not compiled:
psych:
Could not be configured. It will not be installed.
...
This should address <https://bugs.ruby-lang.org/issues/18790 >.
https://github.com/ruby/psych/commit/251289ba83
2022-06-15 01:05:51 +09:00
Hiroshi SHIBATA
6b6d7df39d
[ruby/psych] Prepare to develop 5.0.0
...
https://github.com/ruby/psych/commit/c3b5183f42
2022-05-18 10:03:48 +09:00
MSP-Greg
3ec066334c
[ruby/psych] [CI] Add/update 'rake install', update Psych version for Ruby 3.1 gem install
...
https://github.com/ruby/psych/commit/2fa5e190b5
2022-05-18 10:03:47 +09:00
MSP-Greg
40be4d4263
[ruby/psych] tr is typically 4 to 5 times faster than gsub
...
https://github.com/ruby/psych/commit/8533be8fe7
2022-05-10 03:20:34 +09:00
Nobuyoshi Nakada
697eed63e8
[ruby/psych] Update autoconf files bundled with yaml-2.5
...
https://github.com/ruby/psych/commit/e28f17ac18
2022-04-07 22:38:39 +09:00
Hiroshi SHIBATA
5e7ebc7e6e
Ignore yaml source
2022-04-05 14:31:54 +09:00
Alan Wu
18044f4fbb
[ruby/psych] Improve libyaml source downloading error messages
...
People trying to build CRuby by following the instructions in its
[README] have been running into [errors] due to missing `libyaml`
on their system. Let's try to present a better error message when
it happens.
[README]: fb5aa31e2d (how-to-compile-and-install)
[errors]: https://github.com/ruby/psych/issues/552
https://github.com/ruby/psych/commit/20a633028e
2022-04-05 08:56:21 +09:00
Nobuyoshi Nakada
57377e5d53
[ruby/psych] Propagate `CC` to libyaml
...
It is needed for cross-compiling to set properly. Just
`--target`/`--host`/`--build` seems insufficient on some
platforms.
https://github.com/ruby/psych/commit/2d00c0c203
2022-04-04 16:06:16 +09:00
Nobuyoshi Nakada
e680e63e7e
[ruby/psych] Output libyaml configure log
...
https://github.com/ruby/psych/commit/c2e3c8579c
2022-04-01 11:48:50 +09:00
Nobuyoshi Nakada
af2ab0dd1c
[ruby/psych] Make a static library from PIC object files
...
On some platforms, PIC and non-PIC code are incompatible and the
latter cannot be used for shared objects.
https://github.com/ruby/psych/commit/5652e32733
2022-03-31 21:34:48 +09:00
Nobuyoshi Nakada
217cea7812
[ruby/psych] Remove `unknown` vendor for cross-compiling tool prefix
...
https://github.com/ruby/psych/commit/a4ffa06646
2022-03-31 12:18:28 +09:00
Nobuyoshi Nakada
75efbb98af
[ruby/psych] Propagate the host configuration to libyaml
...
https://github.com/ruby/psych/commit/0e37e19707
2022-03-30 23:08:13 +09:00