ruby-gettext / gettext

Gettext gem is a pure Ruby Localization(L10n) library and tool which is modeled after the GNU gettext package.
https://ruby-gettext.github.io/
68 stars 28 forks source link

Using %I[] causes NoMethodError: undefined method `<<' for nil:NilClass #71

Closed kramuenke closed 4 years ago

kramuenke commented 4 years ago

on gettext 3.3.2 when using ruby's %I we got the following error on parsing source files:

NoMethodError: undefined method `<<' for nil:NilClass

Since the actual list of symbols did not require interpolation we changed it to %i to avoid parsing errors with gettext

kou commented 4 years ago

Thanks for your report. I've fixed it.