https://github.com/cldwalker/psycho
Going psycho with syck to psych conversions? Let psycho handle this syck-psych-o-ness!
https://github.com/cldwalker/psycho
Last synced: 14 days ago
JSON representation
Going psycho with syck to psych conversions? Let psycho handle this syck-psych-o-ness!
- Host: GitHub
- URL: https://github.com/cldwalker/psycho
- Owner: cldwalker
- License: mit
- Created: 2011-11-29T04:42:28.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-04-07T06:35:46.000Z (about 14 years ago)
- Last Synced: 2025-03-20T10:44:16.401Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Description
===========
Going psycho with syck to psych conversions? Let psycho handle this syck-psych-o-ness!
Usage
=====
# I know, I'm the only one who still uses rip
$ rip install git://github.com/cldwalker/psycho.git
# If somebody actually wants this as a gem, let me know
# $ gem install psycho
# Before
$ ruby-1.9.3-p0 -ryaml -e 'p YAML.load_file "some_file.yaml"'
$*#J$*##*#!!
$ pyscho some_file.yaml
# After
$ ruby-1.9.3-p0 -ryaml -e 'p YAML.load_file "some_file.yaml"'
:)
Limitations
============
* Assumes you're converting from 1.9.2 to 1.9.3
* Assumes you use rvm for ruby versioning
* Assumes you want the last alphabetically sorted ruby version
* Don't like these assumptions? Pull request!
TODO
====
* Fix symbol keys getting converted to strings