tzwhere
tzwhere copied to clipboard
Update references to dependencies, add ability to create regional shape files and add grunt for code coverage and continuous testing
- Update reference to 'timezone' library to match most recent major version, to fix the hanging initialization problem
- Update reference to 'geolib' to match most recent major version
- Add ability to create regional GEO JSON shape file from included world GEO JSON shape file, this allows us to take better advantage of initializing the library with an optimized GEO JSON shape file.
- Cache shortcuts: optimize initialization by caching shortcuts (in 'lib/current_world.json') after they are created from the GEO JSON shape file, when loading the same shape file we skip over the construction of the shortcuts and load the cached shortcuts. One caveat is if the GEO JSON shape file is updated this caching mechanism will not see that, therefore the GEO JSON shape file will need to be deleted when the GEO JSON shape file has been updated.
- Added grunt, grunt-test and grunt-watch dev dependencies to automate testing while coding.
- Added blanket dev dependency to provide coverage reports while coding.
Node v0.10 and v0.11 tests pass, however it seems tricky to find supporting grunt versions for node v0.8 and v0.6
@HarryAtMove seems like a good changeset. I think we could probably drop support and tests for 0.6 and 0.8 at this point; would that make this cleaner?
Also, what is the expected behavior if you request a point outside the loaded region? Can we test that behavior as well?