balvig / utensils

Rspec stuff we use over and over again
MIT License
11 stars 9 forks source link

Fix JSON helpers #18

Closed lewispb closed 4 years ago

lewispb commented 4 years ago

Dropping utensils into a vanilla project, then calling save_and_open_json results in a couple of exceptions:

     NameError:
       uninitialized constant JsonHelpers::Launchy
     # /Users/lewis/projects/utensils/lib/utensils/json.rb:22:in `save_and_open_json'

and

     NameError:
       uninitialized constant JsonHelpers::MultiJson
       Did you mean?  MultiXml
     # /Users/lewis/projects/utensils/lib/utensils/json.rb:35:in `parse_json'

This PR fixes these errors and closes https://github.com/balvig/utensils/issues/11

I also took the opportunity to advertise the JSON helpers in the readme!

PS. I hope you're keeping well @balvig ! 😄

balvig commented 4 years ago

Oh nice! Thanks a lot @lewispb, hope things are good on your end as well 🙏