kana / vim-flavor

Taste the difference.
https://www.relishapp.com/kana/vim-flavor
MIT License
112 stars 11 forks source link

Use a dedicated format to save lock status #11

Closed kana closed 11 years ago

kana commented 12 years ago

Lock status is currently written in YAML. But the YAML module included in the standard library might write different text between different Ruby versions. See below for an example. Use a dedicated format to avoid such unnecessary changes.

diff --git a/vim/VimFlavor.lock b/vim/VimFlavor.lock
index de00c5b..df9ff93 100644
--- a/vim/VimFlavor.lock
+++ b/vim/VimFlavor.lock
@@ -1,242 +1,282 @@
----
-:flavors:
-  git://github.com/kana/vim-altercmd.git:
-    :groups:
+---
+:flavors:
+  git://github.com/kana/vim-altercmd.git:
+    :groups:
     - :default
     :locked_version: 0.0.0
-    :repo_name: kana/vim-altercmd
-    :version_contraint: ">= 0"
-  git://github.com/kana/vim-altr.git:
-    :groups:
+    :repo_name: !binary |-
+      a2FuYS92aW0tYWx0ZXJjbWQ=
+    :version_contraint: ! '>= 0'
+  git://github.com/kana/vim-altr.git:
+    :groups:
     - :default
     :locked_version: 0.0.1
kana commented 12 years ago
$repo_name ($locked_version)
  $required_repo_name ($version_constraint)
  ...
...