Sha256: b9dd9840bfd04892121fe99c7032ad215cfcb0720c0f19ddc6a9ac3802d305e2
Contents?: true
Size: 551 Bytes
Versions: 3
Compression:
Stored size: 551 Bytes
Contents
# This fix ensures sorted yaml maps. class Hash def to_yaml( opts = {} ) YAML::quick_emit( object_id, opts ) do |out| out.map( taguri, to_yaml_style ) do |map| sort_by { |k, v| k.to_s }.each do |k, v| map.add( k, v ) end end end end end class GitStore class DefaultHandler def read(data) data end def write(data) data.to_s end end class YAMLHandler def read(data) YAML.load(data) end def write(data) data.to_yaml end end end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
georgi-git_store-0.3 | lib/git_store/handlers.rb |
jugyo-gitki-0.1.0 | vendor/git_store/lib/git_store/handlers.rb |
gitki-0.1.0 | vendor/git_store/lib/git_store/handlers.rb |