Age | Commit message (Collapse) | Author |
|
By Adam Stankiewicz [Github Fixes #133]
|
|
[Github Fixes #134]
|
|
|
|
|
|
when dumping Ruby strings. Thanks Ingy
* test/psych/test_psych.rb: appropriate tests.
* test/psych/test_yaml.rb: ditto
|
|
ids to be sequential numbers.
|
|
|
|
calculating Inf and NaN.
|
|
|
|
contain something besides a hash should be left in tact.
* test/psych/test_merge_keys.rb: test for change
fixes #114
|
|
floats so that Float() will not raise an exception.
* test/psych/test_numeric.rb: test to ensure "1." can be loaded
* test/psych/test_string.rb: make sure "1." can round trip
fixes #109
|
|
Improve string encoding
|
|
* A human-readable representation can be used for ascii_only 8bit-encoded strings.
* String subclasses are binary, even if they are character-encoded.
|
|
|
|
|
|
should be same as example. Patch by Ippei Obayashi [ruby-core:51193]
|
|
* master: (28 commits)
merge changes from ruby trunk
Strings that start with non-word characters should double quote without exclamation mark
fixing rsync
make some header file adjustments for ruby compile
updating the version to 2.0
add the license for libyaml
Update README.rdoc
fix c file name
only do have_header checks if we are embedding libyaml
mkmf has a global for this test
fix build on windows
only embed libyaml if the system does not have it
* ext/psych/lib/psych/scalar_scanner.rb: avoid raising exceptions when parsing Floats and Integers. Thanks riffraff [ruby-core:44426] * test/psych/test_numeric.rb: associated test
* ext/psych/lib/psych/core_ext.rb: move Kernel#y so that it can manually be required as 'psych/y'.
for compiling on mswin
embedding libyaml
* ruby.c (load_file_internal): set default source encoding as UTF-8 instead of US-ASCII. [ruby-core:46021] [Feature #6679]
* ext/psych/lib/psych/handlers/recorder.rb: added a class for recording YAML parse and emit events.
Use literal style when emitting multiline strings, fixes #64
* ext/psych/lib/psych/visitors/yaml_tree.rb: `tree` should return the same thing on every call.
...
|
|
|
|
* embed:
fixing rsync
make some header file adjustments for ruby compile
updating the version to 2.0
add the license for libyaml
fix c file name
only do have_header checks if we are embedding libyaml
mkmf has a global for this test
fix build on windows
only embed libyaml if the system does not have it
for compiling on mswin
embedding libyaml
|
|
Strings that start with non-word characters should double quote without exclamation mark
|
|
exclamation mark
Before this commit:
--- ! '@123''abc'
After this commit:
--- "@123'abc"
|
|
|
|
|
|
|
|
|
|
* master:
Update README.rdoc
* lib/psych/deprecated.rb (load_documents): document deprecation
|
|
Document deprecation of Psych.load_documents
|
|
Typo in README.rdoc
|
|
Tiny typo. Psych is the default YAML parser not the fault YAML parser.
|
|
* master:
* ext/psych/lib/psych/scalar_scanner.rb: avoid raising exceptions when parsing Floats and Integers. Thanks riffraff [ruby-core:44426] * test/psych/test_numeric.rb: associated test
* ext/psych/lib/psych/core_ext.rb: move Kernel#y so that it can manually be required as 'psych/y'.
Use literal style when emitting multiline strings, fixes #64
|
|
|
|
|
|
|
|
|
|
|
|
Use literal style when emitting multiline strings, fixes #64
|
|
parsing Floats and Integers. Thanks riffraff [ruby-core:44426]
* test/psych/test_numeric.rb: associated test
|
|
manually be required as 'psych/y'.
* ext/psych/lib/psych/y.rb: ditto
r37694
|
|
for compiling on mswin
|
|
I checked only mswin environment.
Maybe it is required for mingw?
|
|
|
|
UTF-8 instead of US-ASCII. [ruby-core:46021] [Feature #6679]
* parse.y (parser_initialize): set default parser encoding as
UTF-8 instead of US-ASCII.
r37485
|
|
Install documentation, fixes #91
|
|
recording YAML parse and emit events.
* ext/psych/lib/psych/handler.rb: adding a list of events so that
handler classes can more easily be meta-programmed.
* test/psych/handlers/test_recorder.rb: tests for the change.
|
|
|
|
same thing on every call.
* test/psych/visitors/test_yaml_tree.rb: related test.
|
|
be able to take an emitter object as it's output.
* test/psych/visitors/test_yaml_tree.rb: related test.
|
|
|
|
|
|
Previously Psych::SyntaxError inherited from SyntaxError. Since
SyntaxError does not inherit from StandardError a plain rescue could not
capture a YAML parse error. This made code that needed to handle psych
errors slightly more complex.
Psych::SyntaxError now inherits from Psych::Error (allowing room for
future expansion of psych errors that can be caught under the same
umbrella) and inherits from RuntimeError.
|