| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |\
| | |
| | | |
Move JRuby extension to SnakeYAML Engine
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
If we could embed indy call sites here they would cache as
constants; this is the best we can do at the moment.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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 ***
|
| |/
|/|
| |
| |
| |
| |
| | |
These values are often set to mitigate DOS attacks, so we want to
expose them for JRuby users.
See #579
|
| | |
|
| |
| |
| |
| |
| |
| | |
This eliminates the %YAML 1.2 directive at the start of each emit,
which improves tests passing but also breaks a few tests that
*expect* the YAML directive to be present.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
| |
This used to house a method for getting private instance vars but
that was removed in #458. Now this does nothing.
|
| |
|
| |
|
|
|
|
|
|
| |
* Skip "read" respondTo check for natural RubyIO
* Remove duplicate malformed input reporting set
* Flip some logic to simplify
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The changes in #580 renamed the native parse method and changed
its signature to be fixed-arity with three arguments. This patch
makes the same change to the JRuby extension to unbreak it.
|
|\
| |
| | |
Convert some of Parser#parse to Ruby
|
| |
| |
| |
| | |
This commit just converts some of the parse method to Ruby
|
|\ \
| |/
|/| |
Fix infinite loop bug after YAML_MEMORY_ERROR (psych issue #440)
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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]: https://github.com/ruby/ruby/tree/fb5aa31e2d20ea8e1425432672f4de4c8ca2c26b#how-to-compile-and-install
[errors]: https://github.com/ruby/psych/issues/552
|
|
|
|
|
|
| |
It is needed for cross-compiling to set properly. Just
`--target`/`--host`/`--build` seems insufficient on some
platforms.
|
| |
|
|
|
|
|
| |
On some platforms, PIC and non-PIC code are incompatible and the
latter cannot be used for shared objects.
|
| |
|
| |
|
| |
|
|
|
|
| |
These already have been reported to the upstream repeatedly.
|
| |
|
| |
|
|
|
|
| |
Co-authored-by: David RodrÃguez <deivid.rodriguez@riseup.net>
|
| |
|
|\
| |
| | |
JRuby updates and fixes
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
parse should reject input encoded incorrectly. The default
behavior for InputStreamReader is to replace malformed characters,
which causes one exception-expecting test to fail. This patch
changes the behavior to report malformed input, which can then be
reraised as a syntax error.
|