projectblacklight / blacklight-locale_picker

A dropdown locale switcher for Blacklight apps
Other
2 stars 2 forks source link

Syntax error #9

Open tampakis opened 5 years ago

tampakis commented 5 years ago

When running Arclight, the application errors because of the following syntax error

s/blacklight-locale_picker-0.1.0/app/helpers/blacklight/locale_picker/locale_helper.rb:17: syntax error, unexpected keyword_rescue, expecting keyword_end (SyntaxError)
    rescue ActionController::UrlGenerati
          ^
/Users/nikitas/.rvm/gems/ruby-2.4.4/gems/blacklight-locale_picker-0.1.0/app/helpers/blacklight/locale_picker/locale_helper.rb:17: syntax error, unexpected =>
troller::UrlGenerationError => e
jkeck commented 5 years ago

@tampakis You need to be on ruby 2.5 or later https://github.com/projectblacklight/blacklight-locale_picker/blob/9d2a2abef11c28ffd930e8363f6e05c94513f2b7/blacklight-locale_picker.gemspec#L24

It looks like maybe we haven't cut a release since we added the ruby requirement, so perhaps that's all we need to do.