| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| |
| |
| |
| |
| |
| | |
dumping objects with custom coders. [ruby-core:66215] [Bug #10496]
* test/psych/test_coder.rb: test for fix
|
| |
| |
| |
| |
| |
| |
| |
| | |
expressions with newlines. tenderlove/psych#222
* test/psych/test_yaml.rb: test for change.
fixes #222
|
| |
| |
| |
| |
| |
| |
| | |
instance variables when it is referenced multiple times.
* ext/psych/lib/psych.rb: bump version
* ext/psych/psych.gemspec: bump version
* test/psych/test_hash.rb: test for fix
|
| | |
|
| |\
| | |
| | | |
Fix anchor
|
| | |
| | |
| | |
| | |
| | | |
Anchors like `\Z` are not valid inside character class.
Use negative-lookahead instead.
|
| |/
| |
| |
| | |
`|' is a meta character, so needs to be escaped.
|
| | |
|
| |\
| | |
| | | |
Fix issue #217 and #216 - Only dump ivars for subclasses of Hash and String.
|
| | |
| | |
| | |
| | | |
With cf0dd2b93f1552a3c452a0bfa0e996f441d5e27e, fixes #217.
|
| |/
| |
| |
| |
| | |
Fixes #216.
Fixes part of #217.
|
| |\
| | |
| | | |
Use appropriate style for serialized strings (replaces #195)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When no [chomping indicator][1] is specified for a folded or literal
block, then YAML parser should preserve the final line break (i.e. the
string should end with \n). This implies that when dumping a string
*without* the trailing newline to YAML, we should specify the stripping
indicator (-).
[1]: http://yaml.org/spec/1.2/2009-07-21/spec.html#id2593651
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When psych parses YAML with string in the folded style as:
a: >
some
inline
content
and serializes it back to YAML,
then it renders the string in the literal style instead:
a: |
some inline content
This patch fixes this behaviour. When a string doesn't contain newlines
(blank line at the end is ignored) and it's not necessary to be quoted,
then it will use plain style or folded style according to its length and
the `line_width` option.
# line_width = 100
a: some inline content
# line_width = 11
a: >
some inline
content
This change was originally proposed by @Iazel.
|
| |/ |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
| |
| |
| | |
Conflicts:
.gitignore
|
| | |
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* master: (21 commits)
* ext/psych/lib/psych/visitors/to_ruby.rb: call `allocate` on hash subclasses. Fixes github.com/tenderlove/psych/issues/196
* ext/psych/lib/psych/visitors/to_ruby.rb: revive hashes with ivars
removed isolate task
removed isolate plugin
added minitest dependency into gemspec
added install task into travis
added ruby-head env
bumping version to 2.0.8
fixed build error caused by trunk changes
bumping version to 2.0.7
merging from ruby trunk
backport r48512 from ruby/ruby trunk.
Add changelog for 2a4d9568f7d5d19c00231cf48eb855cc45ec3394
backport r48214 from ruby/ruby trunk.
Allow dumping any BasicObject that defines #marshal_dump or #marshal_load
bumping version
* ext/psych/lib/psych/visitors/yaml_tree.rb: fix NameError dumping and loading. Fixes GH #85. Thanks @brentdax for the patch! * test/psych/test_exception.rb: test for fix
* ext/psych/lib/psych/scalar_scanner.rb: fix loading strings that look like integers but have a newline. Fixes GH #189 * test/psych/test_string.rb: test for fix
* ext/psych/lib/psych/visitors/to_ruby.rb: merge keys with a hash should merge the hash in to the parent. * test/psych/test_merge_keys.rb: test for change. Fixes GH #202
* ext/psych/lib/psych/visitors/to_ruby.rb: quoted "<<" strings should not be treated as merge keys. * ext/psych/lib/psych/visitors/yaml_tree.rb: hashes with keys containing "<<" should roundtrip. * test/psych/test_merge_keys.rb: test for change. Fixes GH #203
...
Conflicts:
lib/psych/visitors/yaml_tree.rb
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
subclasses. Fixes github.com/tenderlove/psych/issues/196
* test/psych/test_hash.rb: test for change
fixes #196
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* ext/psych/lib/psych/visitors/yaml_tree.rb: dump hashes with ivars.
Fixes github.com/psych/issues/43
* test/psych/test_hash.rb: test for change
fixes #43
|
| | |\
| | | |
| | | | |
Added ruby-head env into travis
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | |/ |
|
| | | |
|
| | |\
| | | |
| | | | |
fixed build error caused by trunk changes
|
| | |/ |
|
| | | |
|
| | | |
|
| | |\
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* 'master' of github.com:tenderlove/psych:
backport r48512 from ruby/ruby trunk.
Add changelog for 2a4d9568f7d5d19c00231cf48eb855cc45ec3394
backport r48214 from ruby/ruby trunk.
Allow dumping any BasicObject that defines #marshal_dump or #marshal_load
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |\
| | | | |
| | | | | |
Allow dumping of Delegator subclasses
|
| | | |/
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Additionally, it is assumed that these objects will have implemented
`respond_to?` and `class`, (e.g. SimpleDelegator). These assumptions are
reasonably inline with the assumptions of `Marshal` in regards to
`BasicObject`s.
|
| | |/ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
loading. Fixes GH #85. Thanks @brentdax for the patch!
* test/psych/test_exception.rb: test for fix
fixes #85
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
look like integers but have a newline. Fixes GH #189
* test/psych/test_string.rb: test for fix
Fixes #189
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
should merge the hash in to the parent.
* test/psych/test_merge_keys.rb: test for change. Fixes GH #202
Fixes #202
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
should not be treated as merge keys.
* ext/psych/lib/psych/visitors/yaml_tree.rb: hashes with keys
containing "<<" should roundtrip.
* test/psych/test_merge_keys.rb: test for change. Fixes GH #203
fixes #203
|
| | |\
| | | |
| | | | |
Remove test_engine_manager.rb from Manifest.txt
|
| | |/
| | |
| | |
| | | |
This was removed by fa6aac2a but was still referenced by Manifest.txt and makes `rake gem` fail
|
| |/ |
|
| |\
| | |
| | | |
GC can break an ongoing serialization
|
| |/
| |
| |
| | |
serialization.
|