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
Nobuyoshi Nakada
71aa43c725
[ruby/psych] Configure libyaml from the original source
...
https://github.com/ruby/psych/commit/54a9ba9d10
2022-03-30 11:31:04 +09:00
Nobuyoshi Nakada
c67088dbae
[ruby/psych] Try bundled libyaml source if pre-installed is unavailable
...
https://github.com/ruby/psych/commit/f78e1dba89
2022-03-29 20:57:58 +09:00
Hiroshi SHIBATA
8e2a2ba0f9
Merge psych master
...
c386ecb0c2
2022-03-29 19:07:12 +09:00
Yusuke Endoh
ca85f16a7d
ext/psych/extconf.rb: Fail when libyaml is unavailable
...
WHen libyaml is not installed, make fails with the following cryptic
message:
```
gmake[2]: Entering directory '/home/chkbuild/chkbuild-crossruby/tmp/build/20220325T045825Z/ruby/ext/psych'
gmake[2]: *** No rule to make target 'yaml/yaml.h', needed by 'psych.o'. Stop.
gmake[2]: Leaving directory '/home/chkbuild/chkbuild-crossruby/tmp/build/20220325T045825Z/ruby/ext/psych'
```
I think it should give up building psych with a clear message.
2022-03-27 19:34:07 +09:00
Hiroshi SHIBATA
4acc757d04
[ruby/psych] Added condition for macOS homebrew
...
https://github.com/ruby/psych/commit/a876de5a82
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
2022-03-26 07:49:52 +09:00
Hiroshi SHIBATA
0292a34c9c
Removed libyaml object files from depends
2022-03-25 09:53:07 +09:00
Hiroshi SHIBATA
bfdceab313
Try to remove yaml sources from depend
2022-03-25 09:53:07 +09:00
Hiroshi SHIBATA
8e3fbf9432
Merge psych master: Removed the bundled libyaml
2022-03-25 09:53:07 +09:00
Peter Zhu
2d5ecd60a5
[Feature #18249 ] Update dependencies
2022-02-22 09:55:21 -05:00
Seth Boyles
c1a6ff046d
[ruby/psych] Add strict_integer option to parse numbers with commas as strings
...
Authored-by: Seth Boyles <sethboyles@gmail.com>
https://github.com/ruby/psych/commit/75bebb37b8
2022-01-22 10:00:51 +09:00
Michael Nikitochkin
ef2cf9245c
[ruby/psych] Remove alias of load to unsafe_load
...
https://github.com/ruby/psych/commit/39e23cc86f
2022-01-20 10:39:05 +09:00
David Rodríguez
40d9be51e8
[ruby/psych] Don't require `strscan` unnecessarily
...
It does not seem needed, and it's causing issues on Windows when
uninstalling `strscan`, because strscan's shared library being used when
RubyGems tries to remove it (because its loaded through Psych, which
RubyGems uses for loading configuration).
https://github.com/ruby/psych/commit/3911356ec1
2022-01-14 07:44:14 +09:00
Hiroshi SHIBATA
87b968c903
[ruby/psych] psych depends stringio only CRuby
...
https://github.com/ruby/psych/commit/e7bbf26cb2
2021-12-20 18:26:58 +09:00
Hiroshi SHIBATA
706c7a27fa
[ruby/psych] Bump version to 4.0.3
...
https://github.com/ruby/psych/commit/75ab76e788
2021-12-20 18:25:50 +09:00
Nobuyoshi Nakada
ac152b3cac
Update dependencies
2021-11-21 16:21:18 +09:00
David Rodríguez
d04d6bbc6c
[ruby/psych] Prefer `require_relative` for internal requires
...
https://github.com/ruby/psych/commit/a0f55ee85a
2021-10-24 08:49:14 +09:00
Josef Šimánek
48cd633094
[ruby/psych] Add stringio as a dependency.
...
https://github.com/ruby/psych/commit/86e3049579
2021-10-24 08:48:40 +09:00
Hiroshi SHIBATA
5823168706
[ruby/psych] Bump up psych version to 4.0.2
...
https://github.com/ruby/psych/commit/69a713f860
2021-10-21 13:49:20 +09:00
卜部昌平
5c167a9778
ruby tool/update-deps --fix
2021-10-05 14:18:23 +09:00
jory-graham
db154b20cc
[ruby/psych] Replace A-Za-z with [:alpha:]
...
https://github.com/ruby/psych/commit/8ec36494fb
2021-08-31 19:34:54 +09:00
Aaron Patterson
9ed2cb26de
[ruby/psych] Add quotes to the strings "y" and "n"
...
'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
https://github.com/ruby/psych/commit/6a1c30634e
2021-08-31 19:34:46 +09:00
opak
0925fddc80
[ruby/psych] Update lib/psych/scalar_scanner.rb
...
https://github.com/ruby/psych/commit/64cc239557
Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
2021-08-31 19:34:36 +09:00
Alexandr Opak
44353d0dee
[ruby/psych] add more tests
...
https://github.com/ruby/psych/commit/8f71222bf3
2021-08-31 19:34:28 +09:00
Alexandr Opak
48b50cb4fe
[ruby/psych] fix parsing integer values with '_' at the end
...
https://github.com/ruby/psych/commit/e0bb853014
2021-08-31 19:34:13 +09:00
Tomer Brisker
31ba0921f8
[ruby/psych] Improve float scalar scanner
...
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.
https://github.com/ruby/psych/commit/6e0e7a1e9f
2021-08-31 19:34:06 +09:00