Skip to content

Commit

Permalink
Merge pull request #98 from smcgov/mb-update-gems
Browse files Browse the repository at this point in the history
Update gems
  • Loading branch information
monfresh committed Jan 26, 2018
2 parents 3f3c127 + 003ba6e commit 3ed61ac
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 45 deletions.
1 change: 0 additions & 1 deletion .rubocop.yml
Expand Up @@ -142,7 +142,6 @@ Style/IfUnlessModifier:
Description: Favor modifier if/unless usage when you have a single-line body.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
Enabled: true
MaxLineLength: 80

# Checks the indentation of the first element in an array literal.
Layout/IndentArray:
Expand Down
80 changes: 40 additions & 40 deletions Gemfile.lock
Expand Up @@ -11,36 +11,36 @@ GIT
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.9)
actionpack (= 4.2.9)
actionview (= 4.2.9)
activejob (= 4.2.9)
actionmailer (4.2.10)
actionpack (= 4.2.10)
actionview (= 4.2.10)
activejob (= 4.2.10)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.9)
actionview (= 4.2.9)
activesupport (= 4.2.9)
actionpack (4.2.10)
actionview (= 4.2.10)
activesupport (= 4.2.10)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.9)
activesupport (= 4.2.9)
actionview (4.2.10)
activesupport (= 4.2.10)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (4.2.9)
activesupport (= 4.2.9)
activejob (4.2.10)
activesupport (= 4.2.10)
globalid (>= 0.3.0)
activesupport (4.2.9)
activesupport (4.2.10)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
ast (2.3.0)
ast (2.4.0)
axiom-types (0.1.1)
descendants_tracker (~> 0.0.4)
ice_nine (~> 0.11.0)
Expand All @@ -54,13 +54,13 @@ GEM
bummr (0.2.1)
rainbow
thor
capybara (2.16.1)
capybara (2.17.0)
addressable
mini_mime (>= 0.1.3)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
xpath (>= 2.0, < 4.0)
chunky_png (1.3.8)
cliver (0.3.2)
codeclimate-engine-rb (0.4.1)
Expand Down Expand Up @@ -119,20 +119,20 @@ GEM
erubi (1.7.0)
erubis (2.7.0)
execjs (2.7.0)
faraday (0.13.1)
faraday (0.14.0)
multipart-post (>= 1.2, < 3)
faraday-http-cache (2.0.0)
faraday (~> 0.8)
ffi (1.9.18)
figaro (1.1.1)
thor (~> 0.14)
flamegraph (0.9.5)
font-awesome-rails (4.7.0.2)
font-awesome-rails (4.7.0.3)
railties (>= 3.2, < 5.2)
get_process_mem (0.2.1)
globalid (0.4.1)
activesupport (>= 4.2.0)
google-api-client (0.17.3)
google-api-client (0.19.4)
addressable (~> 2.5, >= 2.5.1)
googleauth (>= 0.5, < 0.7.0)
httpclient (>= 2.8.1, < 3.0)
Expand Down Expand Up @@ -173,7 +173,7 @@ GEM
ruby_parser (~> 3.5)
htmlentities (4.3.4)
httpclient (2.8.3)
i18n (0.9.1)
i18n (0.9.3)
concurrent-ruby (~> 1.0)
ice_nine (0.11.2)
json (2.1.0)
Expand All @@ -184,7 +184,7 @@ GEM
kaminari-core (1.1.1)
launchy (2.4.3)
addressable (~> 2.3)
letter_opener (1.4.1)
letter_opener (1.6.0)
launchy (~> 2.2)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
Expand All @@ -206,25 +206,25 @@ GEM
mime-types-data (3.2016.0521)
mini_mime (1.0.0)
mini_portile2 (2.3.0)
minitest (5.10.3)
multi_json (1.12.2)
minitest (5.11.2)
multi_json (1.13.1)
multipart-post (2.0.0)
newrelic_rpm (4.0.0.332)
newrelic_rpm (4.7.1.340)
nokogiri (1.8.1)
mini_portile2 (~> 2.3.0)
ohanakapa (1.1.3)
sawyer (~> 0.8)
os (0.9.6)
parallel (1.12.0)
parallel (1.12.1)
parser (2.4.0.2)
ast (~> 2.3)
poltergeist (1.16.0)
poltergeist (1.17.0)
capybara (~> 2.1)
cliver (~> 0.3.1)
websocket-driver (>= 0.2.0)
powerpack (0.1.1)
public_suffix (3.0.1)
puma (3.11.0)
puma (3.11.2)
quiet_assets (1.1.0)
railties (>= 3.1, < 5.0)
rack (1.6.8)
Expand All @@ -237,8 +237,8 @@ GEM
rack (>= 1.0)
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.8)
activesupport (>= 4.2.0.beta, < 5.0)
rails-dom-testing (1.0.9)
activesupport (>= 4.2.0, < 5.0)
nokogiri (~> 1.6)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3)
Expand All @@ -248,14 +248,14 @@ GEM
rails_stdout_logging
rails_serve_static_assets (0.0.5)
rails_stdout_logging (0.0.5)
railties (4.2.9)
actionpack (= 4.2.9)
activesupport (= 4.2.9)
railties (4.2.10)
actionpack (= 4.2.10)
activesupport (= 4.2.10)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rainbow (2.2.2)
rake
rake (12.0.0)
rake (12.3.0)
rb-fsevent (0.9.8)
rb-inotify (0.9.8)
ffi (>= 0.5.0)
Expand Down Expand Up @@ -291,11 +291,11 @@ GEM
rspec-mocks (~> 3.7.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.0)
rubocop (0.51.0)
rubocop (0.52.1)
parallel (~> 1.10)
parser (>= 2.3.3.1, < 3.0)
parser (>= 2.4.0.2, < 3.0)
powerpack (~> 0.1)
rainbow (>= 2.2.2, < 3.0)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.9.0)
Expand Down Expand Up @@ -352,10 +352,10 @@ GEM
tzinfo (1.2.4)
thread_safe (~> 0.1)
uber (0.1.0)
uglifier (3.2.0)
uglifier (4.1.4)
execjs (>= 0.3.0, < 3)
unicode-display_width (1.3.0)
vcr (3.0.3)
vcr (4.0.0)
virtus (1.0.5)
axiom-types (~> 0.1)
coercible (~> 1.0)
Expand All @@ -367,9 +367,9 @@ GEM
hashdiff
websocket-driver (0.7.0)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
xpath (2.1.0)
nokogiri (~> 1.3)
websocket-extensions (0.1.3)
xpath (3.0.0)
nokogiri (~> 1.8)
yard (0.9.12)

PLATFORMS
Expand Down
4 changes: 1 addition & 3 deletions app/helpers/mailto_helper.rb
Expand Up @@ -26,9 +26,7 @@ def body
# @param location [Sawyer::Resource] Location Hash returned by API wrapper.
# @return [String] The location's name + alternate name if it has one.
def full_name_for(location)
if location.alternate_name.present?
return "#{location.name} (#{location.alternate_name})"
end
return "#{location.name} (#{location.alternate_name})" if location.alternate_name.present?
location.name
end
end
2 changes: 1 addition & 1 deletion app/mailers/feedback_mailer.rb
Expand Up @@ -6,7 +6,7 @@ class FeedbackMailer < ActionMailer::Base
# @param params [Hash] Email attributes (from, message, user agent)
def feedback_email(params = {})
@message = params[:message] || '[no message entered]'
from = params[:from].blank? ? 'anonymous@none.com' : params[:from]
from = params[:from].presence || 'anonymous@none.com'
@user_agent = params[:agent] || '[no user agent recorded]'

mail(from: from, subject: "[#{SETTINGS[:site_title]} Feedback] #{from}")
Expand Down

0 comments on commit 3ed61ac

Please sign in to comment.