summaryrefslogtreecommitdiff
path: root/ext/java
AgeCommit message (Collapse)Author
2020-07-16Remove private_iv_getCharles Oliver Nutter
The only remaining use of this function was to get the internal message object from an exception's hidden `mesg` instance variable to allow it to be dumped wiithout converting to a string. As discussed in #103, this exposes internal implementation details of CRuby, and ultimately does not provide any real utility to the user since they can't directly inspect this hidden variable. The test change here is to reflect CRuby behavior that denies equality if the internal message objects do not match, as is the case after the exception has been loaded and now has a simple String value. The impact to users is that exceptions with special hidden message objects will convert those objects to String during marshaling through YAML. I believe this only affects NameError and its descendants, since users can't set this field directly on their own exception types. Fixes #103.
2020-01-08Check for SnakeYAML version to confirm it's 1.21+Charles Oliver Nutter
Fixes #428
2018-10-19Move Java sources under proper package structure.Charles Oliver Nutter
2018-10-19Properly map Psych flow styles to SnakeYAML flow styles.Charles Oliver Nutter
2018-10-11Fix NPE in initialization of PsychEmitter.Charles Oliver Nutter
2018-09-19Update to SnakeYAML 1.23.Charles Oliver Nutter
2018-04-16Update to SnakeYAML 1.21 to fix jruby/jruby#5098.Charles Oliver Nutter
This will be released in Psych 3.0.3. See #352.
2018-04-16Support SNAPSHOT builds of snakeyaml.Charles Oliver Nutter
2017-09-10Merge pull request #326 from asterite/feature/scalar_locationAaron Patterson
Add Psych::Handler#event_location
2017-09-05Parse.load with an IO/File which has a non-YAML allowed encoding will justThomas E. Enebo
set the encoding to UTF-8 and hope for the best. This appears to be how libyaml works. This issue was noticed in yaml/store because it extends pstore which will create an IO in read_only mode as: ```ruby RD_ACCESS = {mode: IO::RDONLY | IO::BINARY, encoding: Encoding::ASCII_8BIT} ``` The data in the test case I was debugging was in fact UTF-8 data and MRI was happy to take this 8bit IO and pretend it is UTF-8. Form-fitting ftw.
2017-08-02Add Psych::Handler#event_locationAry Borenszweig
This adds a new reported event to Psych::Handler, event_location, with precise start/end line/column information. The line/column information provided by Psych::Parser#mark is not very useful because it points to the location past the event.
2017-05-31Fall back on UTF-8 when an IO-like object's Charset isn't found.Charles Oliver Nutter
Fixes #319.
2017-02-24Treat negative or zero-width as max possible width.Charles Oliver Nutter
Not sure why snakeyaml doesn't follow libyaml here. I'll follow up with them.
2016-12-13Revert "Partly reverted build error introduced ↵Charles Oliver Nutter
146a637e2205b2b36a6fa83fc0c6f7ce0c74e123." This reverts commit f5455216532f33e2b32bb035d14d820d1d37906b.
2016-11-29Partly reverted build error introduced 146a637e2205b2b36a6fa83fc0c6f7ce0c74e123.SHIBATA Hiroshi
2016-11-17Update to snakeyaml 1.17.Charles Oliver Nutter
I had to hard-code two places that referenced a constant under Psych because neither the Rakefile nor a "gem build" loads that file. It was picking up the older version in my current JRuby process.
2016-09-30Stop using deprecated JRuby APIs. Fixes #292.Charles Oliver Nutter
2015-08-21If incoming string is not unicode, transcode to UTF-8.Charles Oliver Nutter
2015-05-05Default to UTF-8 when encoding does not appear to be unicode.Charles Oliver Nutter
Fixes jruby/jruby#2901.
2015-02-26setup java platform gemChristian Meier
use maven to resolve jar dependencies for compilation. setup jar-dependencies to install the snakeyaml jar when installing the gem via rubygems or bundler. added java code to reflect the snakeyaml vesion which got finally loaded into the jruby-classloader.
2015-01-09Update to latest code from JRuby master.Charles Oliver Nutter
2012-04-28version list should be a listAaron Patterson
2012-04-28change `parse` arityAaron Patterson
2012-04-28put psych in the psych packageAaron Patterson
2012-04-28import the java implementation from JRubyAaron Patterson