• 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 336-remove-hardcoded-smc-code
branch: 336-remove-hardcoded-smc-code
CHANGE BRANCH
x
Reset
  • 336-remove-hardcoded-smc-code
  • 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
  • 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-feature-update
  • 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
1367

push

travis-ci

monfresh
Improve code, fix bugs, and updates specs in PR #444

- Combine all customizable settings in one file. That way, there is only one place the user needs to remember to visit to make changes. This also saves us from having to write instructions like "to change setting A, go to file X, to change setting B, go to file Y." Keep it simple.

- Load the settings file once at runtime and assign the contents of the YAML to a constant.

- Document all customizable options thoroughly in settings.yml

- Take advantage of YAML keys that correspond to Rails environments to be able to use different settings in the test environment without having to create a new file and use multiple conditionals in helpers.

- Move hardcoded content to the settings file. For example, the SMC logo was replaced by the Ohana Web Search logo, but that should have been made a customizable option. Same with the default recipients of the feedback form and the site title.

- Make feedback mailer more customizable by using values from settings file to define the recipients and email subject.

- Fix CSRF Token bug in the feedback form. Rails 4 introduced protection against CSRF attacks, but when we upgraded, we failed to test the Feedback form, which uses AJAX to submit the form. The fix was to add the token to the headers.

- Move homepage links and info box helpers out of application_helper and into their own helper modules to keep functions separate and easier to read. Refactor methods and method names to make them smaller and more readable.

- Replace partials that use uninformative variables with more readable methods that render the HTML via content_tag.

- Rename partials to match helper names.

- Simplify info box lookup by only comparing keyword with synonyms field.

- Simply info box lookup by using "custom" key for info box that uses custom template.

- Use the Rails "try" method instead of multiple conditionals (http://apidock.com/rails/Object/try)

- Document all new methods.

- S... (continued)

48 of 48 new or added lines in 4 files covered. (100.0%)

241 of 267 relevant lines covered (90.26%)

56.7 hits per line

Relevant lines Covered
Build:
Build:
267 RELEVANT LINES 241 COVERED LINES
56.7 HITS PER LINE
Source Files on 336-remove-hardcoded-smc-code
  • 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
1367 336-remove-hardcoded-smc-code Improve code, fix bugs, and updates specs in PR #444 - Combine all customizable settings in one file. That way, there is only one place the user needs to remember to visit to make changes. This also saves us from having to write instructions like... push 05 Jun 2014 03:18AM UTC monfresh travis-ci pending completion  
1365 336-remove-hardcoded-smc-code Improve code, fix bugs, and updates specs in PR #444 - Combine all customizable settings in one file. That way, there is only one place the user needs to remember to visit to make changes. This also saves us from having to write instructions like... push 04 Jun 2014 06:47PM UTC monfresh travis-ci pending completion  
1363 336-remove-hardcoded-smc-code Fixes #336 - removes hardcoded SMC code Removes code specific to San Mateo County, CA. push 31 May 2014 09:17PM 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