README.md in geocoder-1.6.4 vs README.md in geocoder-1.6.5

- old
+ new

@@ -211,11 +211,11 @@ timeout: 5, # set default units to kilometers: units: :km, - # caching (see [below](#caching) for details): + # caching (see Caching section below for details): cache: Redis.new, cache_prefix: "..." ) @@ -530,14 +530,18 @@ 'country_code' => 'US' } ] ) +You may also delete a single stub, or reset all stubs _including the default stub_: + + Geocoder::Lookup::Test.delete_stub('New York, NY') + Geocoder::Lookup::Test.reset + Notes: - Keys must be strings (not symbols) when calling `add_stub` or `set_default_stub`. For example `'country' =>` not `:country =>`. -- To clear stubs (e.g. prior to another spec), use `Geocoder::Lookup::Test.reset`. This will clear all stubs _including the default stub_. - The stubbed result objects returned by the Test lookup do not support all the methods real result objects do. If you need to test interaction with real results it may be better to use an external stubbing tool and something like WebMock or VCR to prevent network calls. Error Handling -------------- @@ -674,31 +678,6 @@ ### Using `near` with objects close to the 180th meridian The `near` method will not look across the 180th meridian to find objects close to a given point. In practice this is rarely an issue outside of New Zealand and certain surrounding islands. This problem does not exist with the zero-meridian. The problem is due to a shortcoming of the Haversine formula which Geocoder uses to calculate distances. -Reporting Issues ----------------- - -When reporting an issue, please list the version of Geocoder you are using and any relevant information about your application (Rails version, database type and version, etc). Please describe as specifically as you can what behavior you are seeing (eg: an error message? a nil return value?). - -Please DO NOT use GitHub issues to ask questions about how to use Geocoder. Sites like [StackOverflow](http://www.stackoverflow.com/) are a better forum for such discussions. - - -Contributing ------------- - -Contributions are welcome via Github pull requests. If you are new to the project and looking for a way to get involved, try picking up an issue with a "beginner-task" label. Hints about what needs to be done are usually provided. - -For all contributions, please respect the following guidelines: - -* Each pull request should implement ONE feature or bugfix. If you want to add or fix more than one thing, submit more than one pull request. -* Do not commit changes to files that are irrelevant to your feature or bugfix (eg: `.gitignore`). -* Do not add dependencies on other gems. -* Do not add unnecessary `require` statements which could cause LoadErrors on certain systems. -* Remember: Geocoder needs to run outside of Rails. Don't assume things like ActiveSupport are available. -* Be willing to accept criticism and work on improving your code; Geocoder is used by thousands of developers and care must be taken not to introduce bugs. -* Be aware that the pull request review process is not immediate, and is generally proportional to the size of the pull request. -* If your pull request is merged, please do not ask for an immediate release of the gem. There are many factors contributing to when releases occur (remember that they affect thousands of apps with Geocoder in their Gemfiles). If necessary, please install from the Github source until the next official release. - - -Copyright :copyright: 2009-2020 Alex Reisner, released under the MIT license. +Copyright :copyright: 2009-2021 Alex Reisner, released under the MIT license.