summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
...
| * Skip deprecated require formCharles Oliver Nutter2021-02-251-2/+1
| |
| * Flush writer after each emitCharles Oliver Nutter2021-02-251-1/+6
| | | | | | | | | | | | | | OutputStreamWriter from JDK buffers outgoing bytes with a 8k buffer, which causes some small document emits to never make it into the outgoing stream unless that stream gets flushed or closed.
| * Negotiate to utf-8 in scalarCharles Oliver Nutter2021-02-251-8/+32
| |
* | Text files should end with a newlineNobuyoshi Nakada2021-05-101-1/+1
| |
* | Fix -Wundef warnings for patterns `#if HAVE`Benoit Daloze2021-05-101-1/+1
| | | | | | | | | | | | * See [Feature #17752] * Using this to detect them: git grep -P 'if\s+HAVE' | grep -Pv 'HAVE_LONG_LONG|/ChangeLog|HAVE_TYPEOF'
* | Fix some typos [ci skip]Ryuta Kamizono2021-04-262-5/+5
|/
* Merge pull request #470 from timgates42/bugfix_typo_expressedHiroshi SHIBATA2021-02-061-1/+1
|\ | | | | docs: fix simple typo, expessed -> expressed
| * docs: fix simple typo, expessed -> expressedTim Gates2020-12-181-1/+1
| | | | | | | | | | | | There is a small typo in ext/psych/yaml/yaml.h. Should read `expressed` rather than `expessed`.
* | [ruby/psych] Make Ractor-ready.Marc-Andre Lafortune2020-12-231-0/+3
| | | | | | | | | | | | | | Config is Ractor-local. Benchmarking reveals that using `Ractor.local_storage` for storing cache is similar to accessing a constant (~15% slower).
* | Strip trailing spaces [ci skip]Nobuyoshi Nakada2020-12-211-3/+3
|/
* Remove private_iv_getCharles Oliver Nutter2020-07-162-20/+0
| | | | | | | | | | | | | | | | | | | | | 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.
* Bump version strings for header fileHiroshi SHIBATA2020-06-231-5/+5
|
* Bump libyaml version to 0.2.5Hiroshi SHIBATA2020-06-239-192/+433
|
* Suppress -Wshorten-64-to-32 warningsNobuyoshi Nakada2020-06-052-20/+20
| | | | ruby/ruby@d8720eb7de9cd9d874b621f214c27022e17cc941
* ext/psych/extconf.rb: braced VPATH is for nmake onlyNobuyoshi Nakada2020-06-051-1/+1
| | | | ruby/ruby@75b644350a80bc31449b7cee741d309643dc27e1
* Nmake needs `VPATH`Nobuyoshi Nakada2020-06-051-2/+3
| | | | ruby/ruby@a593186a02714cb92ae2748c2b7c46a6c50b0977
* Add dependency on bundled yaml.h when usingNobuyoshi Nakada2020-06-052-1/+6
| | | | ruby/ruby@98006cea4fd517671dae508fade13203bc18301a
* Check for SnakeYAML version to confirm it's 1.21+Charles Oliver Nutter2020-01-081-1/+25
| | | | Fixes #428
* ext/psych/yaml/api.c: Suppress a "variable set but not used" warningYusuke Endoh2019-11-121-1/+3
| | | | | | | | | | | ``` compiling ../.././ext/psych/yaml/api.c ../.././ext/psych/yaml/api.c: In function 'yaml_document_delete': ../.././ext/psych/yaml/api.c:1122:7: warning: variable 'context' set but not used [-Wunused-but-set-variable] } context; ^~~~~~~ ``` https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu1604/ruby-master/log/20190824T093004Z.log.html.gz
* Remove taint supportJeremy Evans2019-10-211-14/+0
| | | | | | | | | | Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions. I'm not sure if the untaint calls in deduplicate are still needed after the removal of tainting in the parser. If they are not needed, they should be removed.
* ext/psych/yaml/loader.c: Cast the difference of pointers to intYusuke Endoh2019-08-051-3/+3
| | | | | instead of casting a pointer to int. Follow up of 39622232c7542d062f79277a11f6b8b6b6cfd994.
* Suppress warnings of bundled libyaml.Hiroshi SHIBATA2019-08-052-4/+4
|
* yaml few build warning fixesDavid Carlier2019-08-051-5/+5
| | | | Closes: https://github.com/ruby/ruby/pull/2283
* Get rid of C90 featureNobuyoshi Nakada2019-07-251-1/+2
| | | | | | | | | | | | | For ruby 2.6 and earlier. https://travis-ci.org/ruby/psych/jobs/562435717#L245-L248 ``` ../../../../ext/psych/psych_parser.c: In function ‘make_exception’: ../../../../ext/psych/psych_parser.c:87:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] VALUE ePsychSyntaxError = rb_const_get(mPsych, rb_intern("SyntaxError")); ^ ```
* Make psych.so deterministicJeremy Evans2019-06-011-1/+1
| | | | Fixes Ruby Bug #15890
* syntax error can move, so do not cacheAaron Patterson2019-04-231-2/+2
|
* Move Java sources under proper package structure.Charles Oliver Nutter2018-10-195-0/+0
|
* Properly map Psych flow styles to SnakeYAML flow styles.Charles Oliver Nutter2018-10-191-3/+9
|
* Fix NPE in initialization of PsychEmitter.Charles Oliver Nutter2018-10-111-1/+1
|
* Update to SnakeYAML 1.23.Charles Oliver Nutter2018-09-191-1/+1
|
* bump version to 0.2.1libyaml-0.2.1SHIBATA Hiroshi2018-08-101-5/+5
|
* Re-apply patchsets from ruby-core repository.SHIBATA Hiroshi2018-08-103-9/+13
|
* Port from libyaml-0.2.1SHIBATA Hiroshi2018-08-108-83/+105
|
* Correct doc typo "achor" should be "anchor"utilum2018-04-271-1/+1
|
* Update to SnakeYAML 1.21 to fix jruby/jruby#5098.Charles Oliver Nutter2018-04-162-26/+29
| | | | This will be released in Psych 3.0.3. See #352.
* Support SNAPSHOT builds of snakeyaml.Charles Oliver Nutter2018-04-161-1/+7
|
* no ID cache in Init functionsnobu2018-02-222-0/+2
| | | | | | Init functions are called only once, cache is useless. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Removed stale .gitignore file [ci skip]Nobuyoshi Nakada2018-01-261-11/+0
| | | | | Its contents do not match existing files, and same name files in yaml directory are under the version control.
* Picked r60919SHIBATA Hiroshi2017-11-271-3/+3
| | | | https://github.com/ruby/ruby/commit/2d9f20e1cfdc7532a8acef4da9b8b7a788c4e99a
* Merge commits from ruby core repository.SHIBATA Hiroshi2017-11-275-28/+22
| | | | | | | | | | | * https://github.com/ruby/ruby/commit/1852b4a8660ee8e71997f81cee4903c6eb23f306 * https://github.com/ruby/ruby/commit/c70f12c288cec94d3a7079ee3ffac3ee606d29ff * https://github.com/ruby/ruby/commit/4911d45648d03a519a3c93ca04649705a10fe149 * https://github.com/ruby/ruby/commit/af14720f749ea0274cadd4fa0329b86567ae0057 * https://github.com/ruby/ruby/commit/e3b4cd38dfe6df2545bf7a3dee01f9b4a78e94d0 * https://github.com/ruby/ruby/commit/1493972e8234cd5d57881d2353d153aa7cd67e72 * https://github.com/ruby/ruby/commit/208d2a95f5cceeeec0f619e4700bb6971e41f677 * https://github.com/ruby/ruby/commit/865decb508e89960382fc41d239be3e42545b68a
* Merge pull request #326 from asterite/feature/scalar_locationAaron Patterson2017-09-102-13/+43
|\ | | | | Add Psych::Handler#event_location
| * Add Psych::Handler#event_locationAry Borenszweig2017-08-022-13/+43
| | | | | | | | | | | | 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.
* | Parse.load with an IO/File which has a non-YAML allowed encoding will justThomas E. Enebo2017-09-051-0/+7
|/ | | | | | | | | | | | | | | 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.
* make frozen_string_literal: truefrozenSHIBATA Hiroshi2017-06-191-1/+1
|
* Fall back on UTF-8 when an IO-like object's Charset isn't found.Charles Oliver Nutter2017-05-311-4/+9
| | | | Fixes #319.
* Typo fix in scanner.cbrchristian2017-03-211-2/+2
|
* Treat negative or zero-width as max possible width.Charles Oliver Nutter2017-02-241-2/+4
| | | | | Not sure why snakeyaml doesn't follow libyaml here. I'll follow up with them.
* Fix typosSHIBATA Hiroshi2017-02-081-4/+4
|
* Revert "Partly reverted build error introduced ↵Charles Oliver Nutter2016-12-131-3/+2
| | | | | | 146a637e2205b2b36a6fa83fc0c6f7ce0c74e123." This reverts commit f5455216532f33e2b32bb035d14d820d1d37906b.
* Partly reverted build error introduced 146a637e2205b2b36a6fa83fc0c6f7ce0c74e123.SHIBATA Hiroshi2016-11-291-2/+3
|