lib/cldr/export/data/calendars/gregorian.rb
def fields
            select("dates/fields/field").each_with_object({}) do |node, result|
              key  = node.attribute("type").value.to_sym
              name = node.xpath("displayName").first
              result[key] = name.content if name
            end
          end
# NOTE: As of CLDR 23, this data moved from inside each "calendar" tag to under its parent, the "dates" tag.
# That probably means this `fields` method should be moved up to the parent as well.
As of CLDR 23, this data moved from inside each "calendar" tag to under its parent, the "dates" tag.
That probably means this `fields` method should be moved up to the parent as well.
As of CLDR 23 this data moved from inside each " calendar " tag to under its parent the " dates " tag . That probably means this ` fields ` method should be moved up to the parent as well .
def fields
            select("dates/fields/field").each_with_object({}) do |node, result|
              key  = node.attribute("type").value.to_sym
              name = node.xpath("displayName").first
              result[key] = name.content if name
            end
          end
def fields select ( "dates/fields/field" ) . each_with_object ( { } ) do | node , result | key = node . attribute ( "type" ) . value . to_sym name = node . xpath ( "displayName" ) . first result [ key ] = name . content if name end end
NOTE: As of CLDR 23, this data moved from inside each "calendar" tag to under its parent, the "dates" tag.
NOTE : As of CLDR 23 this data moved from inside each " calendar " tag to under its parent the " dates " tag .