• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

codeforamerica / ohana-web-search
90%
master: 98%

Build:
Build:
LAST BUILD BRANCH: mb-circle-ci
DEFAULT BRANCH: master
Repo Added 12 Mar 2014 12:22AM UTC
Files 26
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH map-feature-update
branch: map-feature-update
CHANGE BRANCH
x
Reset
  • map-feature-update
  • 220-email-link
  • 239-apple-icons
  • 289-lang-links-footer
  • 300-add-get-link
  • 304-return-false-ie
  • 306-rails4-upgrade
  • 323_remove_phone_hours
  • 335-geolocate-btn-style
  • 336-remove-hardcoded-smc-code
  • 338-map-icon-sizes
  • 365-map-infobox
  • 377-ga-fix
  • 378-fallback-css
  • 379-open-sauce-integration
  • 384-code-cleanup
  • 387-summary-bug
  • 389-update-tests
  • 394-search-txt-alignment
  • 396-input-line-height
  • 399-travis-pr-failures
  • 402-coordinates
  • 409-polyfill-refactor
  • 410-contributing-md
  • 411-ask-for-field
  • 414-rubocop-integration
  • 415-vanity-phone-number
  • 417-change-type-to-number_type
  • 421-use-test-key-in-application-yml
  • 423-fix-search-input-fields
  • 424-css-alignment
  • 436-fax-text
  • 439-optimize-js-placement
  • 440-rails-41-upgrade
  • 442-cucumber-cleanup
  • 446-upgrade-google-analytics
  • 447-cfa-flag
  • 459-google-translate-customization
  • 463-cuddle-js
  • 464-refactor-color-variables-take-two
  • 468-top-align-superscript
  • 476-adds-missing-details
  • 484-adds-applicationjs
  • 486-links-for-no-results
  • 495-clear-button
  • 496-floating-header
  • 498-adds-graphic-templates
  • 499-pagination-links
  • 507-character-limiter
  • 517-search-address
  • 519-upgrade-rspec
  • 526-add-tab-index
  • 526-tab-index
  • 526-tab-index-helper
  • 546-remove-title-attr
  • 547-geolocation-btn-disable
  • 551-remove-gsub
  • 552-requirejs-gem-update
  • 554-default-location-text
  • 565-remove-server-cookie
  • 569-cuddle-css
  • 571-last-modified
  • 573-browser-upgrade-alert
  • 582-maps-api-key
  • 589-ie-input
  • 590-popup-types
  • 612-map-size-setting
  • 622-rename-token
  • 623-json-type
  • 632-terminology-link
  • 635-terminology-box-position
  • 644-update-fields
  • 645-utility-link-module
  • 649-org-details
  • 651-poi-details-map
  • 663-phone-types-results
  • 667-new-service-fields
  • 671-schedules
  • 686-desc-whitespace
  • 705-rename-js
  • 713-right-margin
  • 716-jshint-offenses
  • 724-extra-space
  • 726-interpretation-services
  • 729-test-echo
  • 730-over-quota
  • 731-translation-customization
  • 738-sms
  • 743-fix-long-cache-key
  • 782-custom-translations
  • 811-downgrade-requirejs-rails
  • add-bootstrap-script
  • add-bummr
  • add-codeclimate
  • add-docker-support
  • add-hackrequest-link
  • add-jshint-to-script-test
  • add-please-wait-to-geolocate-button-481
  • add-profiling-gems
  • add-reek-engine
  • addeventlistener-module
  • alert-css-cleanup
  • alert-manager-update
  • allow-travis-to-run-from-external-prs
  • api-updates
  • applicationjs-all-routes
  • box-shadow
  • clean-up-vcr
  • clear-all-button
  • code-cleanup
  • code-comments
  • convert-application-layout-to-haml
  • css-assets-partial
  • css-filenames
  • css-linting
  • css-refactor
  • css-updates
  • default-hide-geolcation
  • depfu/update/capybara-3.4.1
  • depfu/update/google-api-client-0.23.4
  • depfu/update/puma-3.12.0
  • depfu/update/reek-5.0.2
  • depfu/update/rubocop-0.58.1
  • depfu/update/rubocop-0.58.2
  • depfu/update/uglifier-4.1.15
  • depfu/update/uglifier-4.1.16
  • depfu/update/webpacker-3.5.5
  • depfu/update/yard-0.9.15
  • detail-map-complexity
  • detail-map-refactor
  • do-not-use-token-for-tests
  • eliminate-main-css
  • enable-https-setting
  • environment-vars
  • exclude-wad-from-coveralls
  • fax-appearance
  • filter-cleanup
  • fix-asset-pipeline
  • fix-bootstrap
  • fix-caching
  • fix-etag
  • fix-heroku-middleware-issue
  • fix-translation-spec
  • fixes-issues
  • font-awesome-sass
  • geolocate-refactor
  • google-translate-dropdown
  • graphics-file-layer-names
  • heroku-deploy-script
  • hotfix-async-plugin
  • hound-config
  • http-caching
  • ie-style-separation
  • ie-upgrades
  • ignore-ssl-errors-for-phantomjs
  • jquery_ujs
  • js-code-comment
  • js-utility-updates
  • jshint
  • jshint-adjustments
  • jshint-cleanup
  • lang-link-tweak
  • link-to-admin-site-351
  • logo-source
  • map-loading-updates
  • map-manager-refactor
  • map-markers-assets
  • map-rendering-update
  • master
  • mb-better-webpacker-diff
  • mb-circle-ci
  • mb-fix-rubocop
  • mb-gmaps-api-key
  • mb-keyword-translator
  • mb-remove-jquery-dependency
  • mb-remove-rails-12-factor
  • mb-update-app-json
  • mb-update-codeclimate
  • mb-update-gems
  • mb-update-ruby
  • mb-use-webpacker
  • minor-readme-update
  • poltergeist
  • postgres
  • print-styles
  • refactor-and-customize-pagination
  • refactor-error-handling
  • refactor-search-results-presentation
  • refactor-translation
  • remove-alert-link-underline
  • remove-contrib
  • remove-kind
  • remove-readme-ruby-section
  • remove-unused-js
  • remove-unused-module-ref
  • remove-unused-util
  • removes-json-gem
  • removes-nearby-map-logic
  • removes-teaspoon
  • replace-mandrill-with-sendgrid
  • rubocop-style-updates
  • sass-docs
  • sass-refactor
  • set-tz-env-var
  • setup-instructions
  • simplify-filters
  • site-links
  • snyk-fix-6mlrps
  • snyk-fix-ypyrcz
  • spec-code-comments
  • style-guide
  • test-cleanup
  • test-refactor
  • test-script
  • trailing-space
  • transpec
  • update-better_errors
  • update-bummr
  • update-caching
  • update-close-btn-name
  • update-coveralls
  • update-faraday-http-cache
  • update-field-names
  • update-figaro
  • update-figaro-gem
  • update-font-awesome
  • update-font-awesome-rails
  • update-gems
  • update-google-api
  • update-google-api-client
  • update-google-client
  • update-haml-lint
  • update-haml-rails
  • update-jshint
  • update-jshint-gem
  • update-kgio
  • update-nokogiri
  • update-ohanakapa
  • update-rack-rewrite
  • update-rails
  • update-rails_12factor
  • update-readme
  • update-readme-stack
  • update-rubocop
  • update-ruby
  • update-sass-rails
  • update-spring
  • update-uglifier
  • update-vcr
  • updates-cassettes
  • updates-coveralls
  • updates-haml-rails
  • updates-kaminari
  • updates-modernizr
  • updates-poltergeist
  • updates-puma
  • updates-rspec-rails
  • updates-rubocop
  • updates-spring
  • updates-uglifier
  • upgrade-better_errors
  • upgrade-capybara
  • upgrade-chunky_png
  • upgrade-coveralls
  • upgrade-gems
  • upgrade-haml-lint
  • upgrade-rspec-rails
  • upgrade-rubocop
  • upgrade-ruby-211
  • upgrade-spring
  • upgrade-vcr
  • upgrade-webmock
  • upgrade-yard
  • use-different-label-for-location-hours
  • use-https-for-fonts
  • use-railties
  • use-test-app-for-specs
  • use-travis-caching
  • xit-filter-specs

pending completion
1461

push

travis-ci

anselmbradford
Moves Google Maps plugins to be inline and Code Cleanup

The plugins work fine locally using nested require() calls. However, when
using the requirejs optimizer, the plugins were concatenated in the main
application script, whereas Google Maps API is loaded asynchronously. This
led to errors in production because the local concatenated plugins were
executing before their dependencies loaded. Having the plugins inline isn't
ideal, but based on research it appears to be the approach with the least
overhead and disruption of the existing site structure.

It allows:
- Guaranteed execution of the plugins after the Google Maps APIs have loaded.
- Exposure of the module initialization method to the outside. With a nested
require() call inside the module, the init method was not accessible outside
the module scope. As inline plugins the init method is accessible again and
can be used to specify where and when the module is initialized.
- Removal of vendor scripts and the associated path settings in the
requirejs.yml config file.

Alternatives to this setup that could be investigated in the future:
(a) The Promises based approach shown here
http://stackoverflow.com/questions/12648598/amd-version-of-google-maps-v3-for-use-with-require-js/
The consequences of this approach are the introduction of a jQuery dependency
for the loading and possible non-support for Promises in IE being an issue.

(b) Include directive. See
http://stackoverflow.com/questions/19337293/requirejs-optimiser-include-nested-dependencies-for-certain-files-and-folders
The plugins could still be nested like how they were set up and worked locally
and then explicitly included in the build. However, this may still cause them
to load before the maps, so that would need to be investigated on a staging
server.

Other cleanup and adjustments:

- Adds findNestedDependencies flag to requirejs config. Nested require
calls were not being included in the optimizer.

- Removes erroneous reference to term-... (continued)

1 of 1 new or added line in 1 file covered. (100.0%)

222 of 246 relevant lines covered (90.24%)

57.63 hits per line

Relevant lines Covered
Build:
Build:
246 RELEVANT LINES 222 COVERED LINES
57.63 HITS PER LINE
Source Files on map-feature-update
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
1461 map-feature-update Moves Google Maps plugins to be inline and Code Cleanup The plugins work fine locally using nested require() calls. However, when using the requirejs optimizer, the plugins were concatenated in the main application script, whereas Google Maps API... push 16 Jul 2014 09:11PM UTC anselmbradford travis-ci pending completion  
1459 map-feature-update Cleanup push 16 Jul 2014 08:45PM UTC anselmbradford travis-ci pending completion  
1458 map-feature-update Fixes push 16 Jul 2014 08:05PM UTC anselmbradford travis-ci pending completion  
1457 map-feature-update Fixes push 16 Jul 2014 07:44PM UTC anselmbradford travis-ci pending completion  
1455 map-feature-update Fixes push 16 Jul 2014 06:53PM UTC anselmbradford travis-ci pending completion  
1454 map-feature-update Fixes push 16 Jul 2014 06:37PM UTC anselmbradford travis-ci pending completion  
1453 map-feature-update Fixes push 16 Jul 2014 05:48PM UTC anselmbradford travis-ci pending completion  
1452 map-feature-update Code cleanup Fixes bug where missing address caused error The code was looking for coordinates key being present, but didn’t care if it was nil, which led to an error if it was. Adds additional code documentation and removes unused code. push 16 Jul 2014 04:27PM UTC anselmbradford travis-ci pending completion  
1450 map-feature-update Fixes push 16 Jul 2014 04:06PM UTC anselmbradford travis-ci pending completion  
1449 map-feature-update Fixes push 16 Jul 2014 04:01PM UTC anselmbradford travis-ci pending completion  
See All Builds (1890)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc