summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2018-10-20bump version to 3.1.0.pre2SHIBATA Hiroshi
2018-10-13Use secure connection for pyyaml.orgEspartaco Palma
2018-10-12Fix typoMarcus Stollsteimer
2018-09-28Re-try to add workaround for warningskazu
``` .../ext/psych/lib/psych/versions.rb:4: warning: already initialized constant Psych::VERSION .../.ext/common/psych/versions.rb:4: warning: previous definition of VERSION was here ``` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-28Revert "Try to add workaround for warnings"kazu
This reverts commit a5e5cfa3f650d4e78fb50e2df15c102ab56fca3c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-28Try to add workaround for warningskazu
``` .../ext/psych/lib/psych/versions.rb:4: warning: already initialized constant Psych::VERSION .../.ext/common/psych/versions.rb:4: warning: previous definition of VERSION was here ``` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-19use newer style of JRuby ext loading when availablekares
to be available since JRuby 9.2.1, avoids Java self-reflecting Signed-off-by: Charles Oliver Nutter <headius@headius.com>
2018-09-19Update to SnakeYAML 1.23.Charles Oliver Nutter
2018-08-27Merge pull request #360 from sorryeh/add_deprecation_warnings_to_psych_interfaceSHIBATA Hiroshi
Add Deprecation Warnings to the unified interface of Psych
2018-08-24bump version to 3.1.0.pre1SHIBATA Hiroshi
2018-07-15Adding deprecation warnings to Psych unified interfaceGreg Houle
2018-07-13unifying interface of PsychGreg Houle
2018-05-21Merge pull request #346 from stomar/fix-fallback-argAaron Patterson
Fix fallback keyword argument of Psych.load
2018-04-27Correct doc typo "achor" should be "anchor"utilum
2018-04-24Add docs for fallback keyword argument of Psych.loadMarcus Stollsteimer
2018-04-24Fix fallback argument for Psych.loadMarcus Stollsteimer
This allows calling Psych.load with a fallback argument, similar to Psych.load_file. Before, for Psych.load this caused a "NoMethodError: undefined method `to_ruby'".
2018-04-16Bump version to 3.0.3.pre1 for testing for jruby/jruby#5142.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-03-02Document #dump optionszverok
2017-12-20Add a predicate method to each nodeAaron Patterson
This allows the AST to be searched via a predicate method rather than hardcoding the class name and doing is_a? checks. For example, rather than: ``` ast.grep(Psych::Nodes::Scalar).each do |node| # .. do something end ``` Now you can do: ``` ast.find_all(&:scalar?).each do |node| # .. do something end ``` Your code no longer needs to know the exact class used in the AST.
2017-12-19Add more test cases for fallback of Psych.load_fileMarcus Stollsteimer
Add more test cases for the fallback keyword argument of Psych.load_file; additionally, fix an error in the docs.
2017-12-19Bump version to 3.0.2SHIBATA Hiroshi
2017-12-19Merge pull request #342 from stomar/fallback-keywordSHIBATA Hiroshi
Convert fallback option to a keyword argument
2017-12-04Merge pull request #338 from stomar/doc_safe_loadSHIBATA Hiroshi
Improve docs for Psych.safe_load
2017-12-04bump version to 3.0.1SHIBATA Hiroshi
2017-12-02Convert fallback option to a keyword argumentMarcus Stollsteimer
Converting the optional fallback argument to a keyword argument fixes a problem that is caused by mixing optional arguments and optional keyword arguments. Without this change, a hash as fallback value is not handled correctly: in Psych.load("", nil, {}) the hash is not interpreted as the fallback value, and the default value for the fallback argument is used instead.
2017-12-01Improve docs for Psych.safe_loadMarcus Stollsteimer
Mention filename argument and symbolize_names keyword argument.
2017-12-01Bump version to 3.0.0SHIBATA Hiroshi
2017-11-30Add :symbolize_names option to .safe_load tooTakashi Kokubun
related to #333
2017-11-29Revert "Double quote stings that contain single quotes only"SHIBATA Hiroshi
2017-11-28Document symbolize_names keyword argument of Psych.loadMarcus Stollsteimer
2017-11-27Bump version to 3.0.0.beta4SHIBATA Hiroshi
2017-11-25Add :symbolize_names option to Psych.loadTakashi Kokubun
like JSON.parse.
2017-09-21Fixup Recorder example documentationPete Kinnecom
2017-09-11Merge pull request #325 from knugie/fix_324SHIBATA Hiroshi
Double quote stings that contain single quotes only
2017-08-02Add location information to Psych::Nodes::NodeAry Borenszweig
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-07-21Double quote stings that contain single quotes onlyWolfgang Teuber
Fixes #324
2017-07-14bump version to 3.0.0.beta3SHIBATA Hiroshi
2017-07-12Fixed path for mingw binarySHIBATA Hiroshi
2017-07-12Added cross compilation task for mingw platformSHIBATA Hiroshi
2017-06-30Merge branch 'master' into frozenSHIBATA Hiroshi
2017-06-29Support enumerator objectsAaron Patterson
Fixes #277
2017-06-29Rely on encoding tags to determine if string should be dumped as binaryAaron Patterson
If a string is tagged as binary, then we should dump it as binary. Fixes #278
2017-06-19make frozen_string_literal: trueSHIBATA Hiroshi
2017-06-16bump version to 3.0.0.beta2SHIBATA Hiroshi
2017-06-16Merge pull request #158 from laserlemon/delegatorsSHIBATA Hiroshi
Enable YAML serialization of Ruby delegators
2017-05-22Preserve time zone offset when deserializing timesMarcus Stollsteimer
Fix support of time zone offsets. Now the time zone offset will be preserved when times are deserialized from YAML with a specified offset. Previously, times other than UTC ("Z") where converted to local time. The test cases use two different offsets to account for the possibility of an erratic success when the tests are run in the corresponding time zone.
2017-03-27Fixed gabage linesSHIBATA Hiroshi
2017-03-27Removed to_yaml support on YAMLTreeSHIBATA Hiroshi