module
Bundler::YAMLSerializer
ruby latest stable
A stub yaml serializer that can handle only hashes and strings (as of now).
Constants
ARRAY_REGEX = /\n^\n(?:[ ]*-[ ]) # '- ' before array items\n(['"]?) # optional opening quote\n(.*) # value\n\\1 # matching closing quote\n$\n/xo
HASH_REGEX = /\n^\n([ ]*) # indentations\n(.+) # key\n(?::(?=(?:\\s|$))) # : (without the lookahead the #key includes this when : is present in value)\n[ ]?\n(?: !\\s)? # optional exclamation mark found with ruby 1.9.3\n(['"]?) # optional opening quote\n(.*) # value\n\\3 # matching closing quote\n$\n/xo
Files
- lib/bundler/yaml_serializer.rb