You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Michael Stockton (JIRA)" <ji...@apache.org> on 2009/04/12 03:55:14 UTC
[jira] Updated: (THRIFT-451) ruby structs use lowercase enum while
modules are capitalized
[ https://issues.apache.org/jira/browse/THRIFT-451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Stockton updated THRIFT-451:
------------------------------------
Attachment: thrift-451.patch
Ruby module scopes are capitalized but types are not. This patch updates the full_type_name call so it capitalizes a type before it's appended to the module prefix.
> ruby structs use lowercase enum while modules are capitalized
> -------------------------------------------------------------
>
> Key: THRIFT-451
> URL: https://issues.apache.org/jira/browse/THRIFT-451
> Project: Thrift
> Issue Type: Bug
> Components: Library (Ruby)
> Reporter: Michael Stockton
> Assignee: Michael Stockton
> Priority: Minor
> Attachments: thrift-451.patch
>
>
> enum fb_status {
> DEAD = 0,
> STARTING = 1,
> ALIVE = 2,
> STOPPING = 3,
> STOPPED = 4,
> WARNING = 5,
> }
> The type for fb_status will be created as so:
> module Fb_status
> end
> However, structs will refer to fb_status.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.