Skip to content
Snippets Groups Projects
  1. Jan 10, 2018
  2. Nov 17, 2017
    • Carlos Villela's avatar
      [db-ip] Handle Geocoder::OverQueryLimitError gracefully (#1230) · ce7d0571
      Carlos Villela authored
      * Handle Geocoder::OverQueryLimitError gracefully.
      
      Geocoder::OverQueryLimitError errors were not being generated correctly, and the response was coming back empty but with no indication.
      
      This changes the behavior slightly so that unknown errors are also returned.
      
      * Add error handling tests
      
      * Remove unnecessary config in tests
      ce7d0571
  3. Sep 25, 2017
  4. Aug 18, 2017
    • Leonel Galán's avatar
      Allows radius to be a symbol representing a column in DB (#1107) · 5353fea4
      Leonel Galán authored
      * Allows radius to be a symbol representing a column in DB
      
      * Proposed changes by @alexreisner:
      
      - Keeping branching condition consistent
      - Not overwrite the method argument: ‘radius’
      - Not assigning two variables in a single line, and
      - Add code comments where needed
      
      By “proposed” I meant, I copy/paste them from his comment. But we are
      in agreement.
      
      * Fixes broken test in PR
      5353fea4
  5. Jun 28, 2017
  6. Apr 25, 2017
    • Leon Guan's avatar
      Added Amap(AutoNavi) integration: http://lbs.amap.com (#1164) · 2921ed13
      Leon Guan authored
      * Added support for AMap, aka AutoNavi Map, 高德地图
      
      * Try to include amap error info if failed
      
      * Get correct result from amap response
      
      * Fix result error in amap return
      
      * Refactor codes for AMap handling
      
      * Refactor codes for amap result handling
      
      * Refactor amap handling codes
      
      * Fixed coordinates handling error
      
      * Added tests
      
      * Fixded amap result handling and tests
      
      * Lock webmock on 2.3.2 for ruby 1.9.3 support
      2921ed13
  7. Jan 31, 2017
    • Alex Reisner's avatar
      Fix deprecation warning. · b0ddefe9
      Alex Reisner authored
      DEPRECATION WARNING: Passing a string to
      ActiveRecord::Base.establish_connection for a configuration lookup is
      deprecated, please pass a symbol (:sqlite) instead.
      b0ddefe9
  8. Nov 30, 2016
    • Julian Nacci's avatar
      Add new lookup: ban_data_gouv_fr · 4e9f1139
      Julian Nacci authored
      add new lookup to lookup.rb
      
      add new lookup file ban_data_gouv_fr.rb
      
      add new results file ban_data_gouv_fr.rb
      
      update README with new lookup
      
      create fixtures to test  new lookup
      
      create unit test file for new lookup
      
      update test helper default fixture for new lookup
      
      remove invalid multibyte char (US-ASCII) 'ç' from lookup name
      
      Revert "remove invalid multibyte char (US-ASCII) 'ç' from lookup name"
      
      This reverts commit 7dbfcab4dc4bcb9473edc43651e7d53884f0e24d.
      
      Add '# encoding: utf-8' to files containing special chars
      
      Add '# encoding: utf-8' to files containing special chars
      
      Add '# encoding: utf-8' to files containing special chars
      
      remove useless Geocoder.config from test methods
      
      refacto of ban lookup results method
      
      change city serach param to fit naming conventions in ban lookup test
      
      renamed no results ban lookup fixture to fit tests
      
      removed no search results unnecessary test
      
      remove useless commented code
      
      add alias method to handle state and state_code + move from department to region name as state
      
      refacto results method
      4e9f1139
  9. Sep 09, 2016
  10. Aug 31, 2016
  11. Jun 27, 2016
  12. Jun 07, 2016
  13. May 15, 2016
  14. May 02, 2016
  15. Apr 04, 2016
    • Piotr Górecki's avatar
      Add ip api com lookup · c466a0c3
      Piotr Górecki authored
      * Add ip-api.com (ip lookup) support
      
      This service returns better coordinates for Europe than other free ip lookup services available in geocoder.
      
      * Clean the results class
      
      Remove default responses for fields.
      
      * Remove checking fields in url query
      
      API already handles unknown fields, so this check is unnecessary.
      
      * Add a test for using parameters directly in search method
      c466a0c3
  16. Mar 15, 2016
  17. Mar 12, 2016
  18. Mar 07, 2016
  19. Feb 21, 2016
  20. Jan 31, 2016
  21. Jan 21, 2016
  22. Dec 06, 2015
  23. Mar 11, 2015
  24. Mar 06, 2015
  25. Mar 05, 2015
  26. Mar 04, 2015
  27. Feb 02, 2015
  28. Jan 27, 2015
  29. Jan 06, 2015
    • Will Fleming's avatar
      force load railtie in test env · 18a30f20
      Will Fleming authored
      Test suite failed because railtie wasn't loaded (because
      Rails/ActiveRecord are stubbed out in test env). This initializes
      it explicitly in test_helper before any models get defined
      18a30f20
  30. Dec 17, 2014
  31. Nov 08, 2014
  32. Oct 16, 2014
  33. Oct 11, 2014
  34. Sep 30, 2014
  35. Sep 20, 2014
Loading