Skip to content
Snippets Groups Projects
  1. Dec 25, 2016
  2. Dec 09, 2016
  3. Dec 02, 2016
  4. Nov 30, 2016
    • Alex Reisner's avatar
      Avoid calling fetch_data within method. · 9d48fb85
      Alex Reisner authored
      9d48fb85
    • 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
  5. Nov 28, 2016
  6. Nov 15, 2016
  7. Nov 09, 2016
    • tunamonster's avatar
      Refactor calculations (#1116) · 1c306367
      tunamonster authored
      * Refactor calculations
      
      Refactored calculations::extract_coordinates and calculations::coordinates_present?
      
      coordinates_present?
      Checks whether an argument matches validating criteria (numeric, not NaN), rather than returning false when matching invalidating criteria.
      
      Also replaced .to_s == NaN with .to_f..nan? 
      
      extract_coordinates 
      Now calls coordinates_present? to validate the array, instead of comparing four booleans and initialising extra vars.
      
      * Removed .map and ternary from coordinates_present?
      
      Updated pull request according to Lime's suggestions.
      1c306367
  8. Sep 27, 2016
  9. Sep 16, 2016
  10. Sep 09, 2016
  11. Sep 08, 2016
  12. Sep 06, 2016
  13. Sep 05, 2016
  14. Aug 31, 2016
  15. Aug 25, 2016
  16. Aug 19, 2016
  17. Jul 27, 2016
    • Paul Cantrell's avatar
      Prevent rake task crash when BATCH not specified · 76bc7c63
      Paul Cantrell authored
      In Rails 5, `rake geocode:all` crashes:
      
      ```
      $ rake geocode:all CLASS=Whatzit
      rake aborted!
      ArgumentError: comparison of Fixnum with nil failed
      /Users/paul/.rvm/gems/ruby-2.2.2/gems/activerecord-5.0.0/lib/active_record/relation/batches.rb:217:in `<'
      /Users/paul/.rvm/gems/ruby-2.2.2/gems/activerecord-5.0.0/lib/active_record/relation/batches.rb:217:in `block in in_batches'
      /Users/paul/.rvm/gems/ruby-2.2.2/gems/activerecord-5.0.0/lib/active_record/relation/batches.rb:198:in `loop'
      /Users/paul/.rvm/gems/ruby-2.2.2/gems/activerecord-5.0.0/lib/active_record/relation/batches.rb:198:in `in_batches'
      /Users/paul/.rvm/gems/ruby-2.2.2/gems/activerecord-5.0.0/lib/active_record/relation/batches.rb:120:in `find_in_batches'
      /Users/paul/.rvm/gems/ruby-2.2.2/gems/activerecord-5.0.0/lib/active_record/relation/batches.rb:58:in `find_each'
      /Users/paul/.rvm/gems/ruby-2.2.2/gems/geocoder-1.2.2/lib/tasks/geocoder.rake:11:in `block (2 levels) in <top (required)>'
      /Users/paul/.rvm/gems/ruby-2.2.2/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
      /Users/paul/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `eval'
      /Users/paul/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `<main>'
      Tasks: TOP => geocode:all
      (See full trace by running task with --trace)
      ```
      
      The problem seems to be that `find_each` used to default the `batch:` param when it was explicitly set to nil, but now passes an explicit nil on through.
      
      This patch fixes the issue by defaulting the batch size in the rake task.
      76bc7c63
  18. Jun 27, 2016
  19. Jun 26, 2016
  20. Jun 09, 2016
  21. Jun 07, 2016
  22. Jun 02, 2016
    • Jeffects's avatar
      Change SmartyStreets Zipcode API · 722c2278
      Jeffects authored
      SmartyStreets is permanently changing their ZIP Code API endpoint by
      June 22 at 9am Mountain Time.  The legacy API endpoint is available
      until the 22nd.
      
      This change basically changes the API endpoint and updated the tests to
      reflect the change.
      722c2278
  23. May 31, 2016
  24. May 27, 2016
  25. May 26, 2016
  26. May 25, 2016
Loading