Fix plural export #3

merged 1 commit into from May 25, 2012


None yet
2 participants

camertron commented May 24, 2012

Every class under Cldr::Export::Data inherits from Cldr::Export::Data::Base (which inherits from Hash) except Cldr::Export::Data::Plurals. Instead, Cldr::Export::Data::Plurals inherits directly from String. This means that #deep_merge is not available for the plural exporter as it is for all the others. This pull request fixes this issue by returning data directly when data is not a Hash.

The error looks like this: "undefined method 'deep_merge' for #<Cldr::Data::Plurals ...>"

@tigrish tigrish added a commit that referenced this pull request May 25, 2012

@tigrish tigrish Merge pull request #3 from camertron/fix_export
Fix plural export

@tigrish tigrish merged commit ce96ef6 into svenfuchs:master May 25, 2012

KL-7 referenced this pull request May 25, 2012


Update day-period parsing. #5

camertron deleted the camertron:fix_export branch Jan 9, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment