json_refs
json_refs copied to clipboard
Dereference JSON reference
Correcting my own [mistake](https://github.com/tzmfreedom/json_refs/pull/7). Closes https://github.com/tzmfreedom/json_refs/issues/8 And adds a `JsonRefs.load('myfile.json')`
Right now the gemspec includes the following files into the gem: ``` [".gitignore", ".rspec", ".travis.yml", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "json_refs.gemspec", "lib/json_refs.rb", "lib/json_refs/dereference_handler.rb", "lib/json_refs/loader.rb", "lib/json_refs/version.rb"] ``` Those are not...
I had to learn the hard way that using this library in a threaded environment might lead to problems, because [json_refs uses Dir.chdir](https://github.com/tzmfreedom/json_refs/blob/da9a1ab8b1511d50f62c7160423b0dc295c6d725/lib/json_refs.rb#L102), which is not threadsafe. I guess solving...