I wrote a gem called "Active Loader" to load YAML / JSON either from local path / remote url / the content directly.
In some app I need fetch remote yaml and remote json, sometimes also need to read some json / yaml from local system. Why not combine them? This is the motivation.
What I learned:
- How to alias a class method
- How to check if string is url
- How to check if string is path
- YAML.safe_load method
- A possible bug of YAML (psych)
- and lots of fun!
Do you make something useful (to you / to the public)?
Write a gem and Open Source it, it is fun!
And it is featured on Ruby Weekly #302