You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Adam Stegman (Created) (JIRA)" <ji...@apache.org> on 2012/03/27 06:59:31 UTC

[jira] [Created] (THRIFT-1544) Create correct Ruby namespace directories

Create correct Ruby namespace directories
-----------------------------------------

                 Key: THRIFT-1544
                 URL: https://issues.apache.org/jira/browse/THRIFT-1544
             Project: Thrift
          Issue Type: Improvement
          Components: Ruby - Compiler
    Affects Versions: 0.8
            Reporter: Adam Stegman
            Priority: Minor
         Attachments: Namespace-generated-Ruby-files-correctly.patch

Creating correct Ruby namespace directories, very similar to how Java creates package directories. e.g. {noformat}namespace java com.example.my_lib
namespace rb com.example.my_lib{code} should both result in gen-{rb,java}/com/example/my_lib/my_lib_service.{rb,java}.

Patch attached.

See also [THRIFT-474|https://issues.apache.org/jira/browse/THRIFT-474] where a similar patch was included intermingled with a patch for a different issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (THRIFT-1544) Create correct Ruby namespace directories

Posted by "Adam Stegman (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-1544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13239558#comment-13239558 ] 

Adam Stegman commented on THRIFT-1544:
--------------------------------------

I was too hasty on the patch - it breaks require statements in the generated files, since they expect a flat file structure, all on the load path. The requires also need to be namespaced correctly.
                
> Create correct Ruby namespace directories
> -----------------------------------------
>
>                 Key: THRIFT-1544
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1544
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Ruby - Compiler
>    Affects Versions: 0.8
>            Reporter: Adam Stegman
>            Assignee: Jake Farrell
>            Priority: Minor
>              Labels: compiler, namespaces, patch, ruby
>             Fix For: 0.9
>
>         Attachments: Namespace-generated-Ruby-files-correctly.patch
>
>
> Creating correct Ruby namespace directories, very similar to how Java creates package directories. e.g. {noformat}namespace java com.example.my_lib
> namespace rb com.example.my_lib{noformat} should both result in gen-{rb,java}/com/example/my_lib/my_lib_service.{rb,java}.
> Patch attached.
> See also [THRIFT-474|https://issues.apache.org/jira/browse/THRIFT-474] where a similar patch was included intermingled with a patch for a different issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (THRIFT-1544) Create correct Ruby namespace directories

Posted by "Adam Stegman (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Stegman updated THRIFT-1544:
---------------------------------

    Attachment:     (was: Namespace-generated-Ruby-files-correctly.patch)
    
> Create correct Ruby namespace directories
> -----------------------------------------
>
>                 Key: THRIFT-1544
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1544
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Ruby - Compiler
>    Affects Versions: 0.8
>            Reporter: Adam Stegman
>            Assignee: Jake Farrell
>            Priority: Minor
>              Labels: compiler, namespaces, patch, ruby
>             Fix For: 0.9
>
>         Attachments: Namespace-generated-Ruby-files-correctly.patch
>
>
> Creating correct Ruby namespace directories, very similar to how Java creates package directories. e.g. {noformat}namespace java com.example.my_lib
> namespace rb com.example.my_lib{noformat} should both result in gen-{rb,java}/com/example/my_lib/my_lib_service.{rb,java}.
> Patch attached.
> See also [THRIFT-474|https://issues.apache.org/jira/browse/THRIFT-474] where a similar patch was included intermingled with a patch for a different issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (THRIFT-1544) Create correct Ruby namespace directories

Posted by "Jake Farrell (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jake Farrell updated THRIFT-1544:
---------------------------------

    Fix Version/s: 0.9
         Assignee: Jake Farrell
    
> Create correct Ruby namespace directories
> -----------------------------------------
>
>                 Key: THRIFT-1544
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1544
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Ruby - Compiler
>    Affects Versions: 0.8
>            Reporter: Adam Stegman
>            Assignee: Jake Farrell
>            Priority: Minor
>              Labels: compiler, namespaces, patch, ruby
>             Fix For: 0.9
>
>         Attachments: Namespace-generated-Ruby-files-correctly.patch
>
>
> Creating correct Ruby namespace directories, very similar to how Java creates package directories. e.g. {noformat}namespace java com.example.my_lib
> namespace rb com.example.my_lib{noformat} should both result in gen-{rb,java}/com/example/my_lib/my_lib_service.{rb,java}.
> Patch attached.
> See also [THRIFT-474|https://issues.apache.org/jira/browse/THRIFT-474] where a similar patch was included intermingled with a patch for a different issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (THRIFT-1544) Create correct Ruby namespace directories

Posted by "Adam Stegman (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Stegman updated THRIFT-1544:
---------------------------------

    Attachment: Namespace-generated-Ruby-files-correctly.patch
    
> Create correct Ruby namespace directories
> -----------------------------------------
>
>                 Key: THRIFT-1544
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1544
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Ruby - Compiler
>    Affects Versions: 0.8
>            Reporter: Adam Stegman
>            Priority: Minor
>              Labels: compiler, namespaces, patch, ruby
>         Attachments: Namespace-generated-Ruby-files-correctly.patch
>
>
> Creating correct Ruby namespace directories, very similar to how Java creates package directories. e.g. {noformat}namespace java com.example.my_lib
> namespace rb com.example.my_lib{code} should both result in gen-{rb,java}/com/example/my_lib/my_lib_service.{rb,java}.
> Patch attached.
> See also [THRIFT-474|https://issues.apache.org/jira/browse/THRIFT-474] where a similar patch was included intermingled with a patch for a different issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (THRIFT-1544) Create correct Ruby namespace directories

Posted by "Jake Farrell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-1544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273010#comment-13273010 ] 

Jake Farrell commented on THRIFT-1544:
--------------------------------------

tested on os x lion, got the following error with default system ruby 1.8.7.

thrift/trunk/lib/rb/spec/../test/debug_proto/gen-rb/srv.rb:8:in `require': no such file to load -- /debug_proto_test_types (LoadError)
                
> Create correct Ruby namespace directories
> -----------------------------------------
>
>                 Key: THRIFT-1544
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1544
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Ruby - Compiler
>    Affects Versions: 0.8
>            Reporter: Adam Stegman
>            Assignee: Jake Farrell
>            Priority: Minor
>              Labels: compiler, namespaces, patch, ruby
>             Fix For: 0.9
>
>         Attachments: Namespace-generated-Ruby-files-correctly.patch
>
>
> Creating correct Ruby namespace directories, very similar to how Java creates package directories. e.g. {noformat}namespace java com.example.my_lib
> namespace rb com.example.my_lib{noformat} should both result in gen-{rb,java}/com/example/my_lib/my_lib_service.{rb,java}.
> Patch attached.
> See also [THRIFT-474|https://issues.apache.org/jira/browse/THRIFT-474] where a similar patch was included intermingled with a patch for a different issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (THRIFT-1544) Create correct Ruby namespace directories

Posted by "Adam Stegman (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Stegman updated THRIFT-1544:
---------------------------------

    Attachment: Namespace-generated-Ruby-files-correctly.patch

Updated the patch to require other generated files correctly.
                
> Create correct Ruby namespace directories
> -----------------------------------------
>
>                 Key: THRIFT-1544
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1544
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Ruby - Compiler
>    Affects Versions: 0.8
>            Reporter: Adam Stegman
>            Assignee: Jake Farrell
>            Priority: Minor
>              Labels: compiler, namespaces, patch, ruby
>             Fix For: 0.9
>
>         Attachments: Namespace-generated-Ruby-files-correctly.patch
>
>
> Creating correct Ruby namespace directories, very similar to how Java creates package directories. e.g. {noformat}namespace java com.example.my_lib
> namespace rb com.example.my_lib{noformat} should both result in gen-{rb,java}/com/example/my_lib/my_lib_service.{rb,java}.
> Patch attached.
> See also [THRIFT-474|https://issues.apache.org/jira/browse/THRIFT-474] where a similar patch was included intermingled with a patch for a different issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (THRIFT-1544) Create correct Ruby namespace directories

Posted by "Adam Stegman (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Stegman updated THRIFT-1544:
---------------------------------

    Description: 
Creating correct Ruby namespace directories, very similar to how Java creates package directories. e.g. {noformat}namespace java com.example.my_lib
namespace rb com.example.my_lib{no format} should both result in gen-{rb,java}/com/example/my_lib/my_lib_service.{rb,java}.

Patch attached.

See also [THRIFT-474|https://issues.apache.org/jira/browse/THRIFT-474] where a similar patch was included intermingled with a patch for a different issue.

  was:
Creating correct Ruby namespace directories, very similar to how Java creates package directories. e.g. {noformat}namespace java com.example.my_lib
namespace rb com.example.my_lib{code} should both result in gen-{rb,java}/com/example/my_lib/my_lib_service.{rb,java}.

Patch attached.

See also [THRIFT-474|https://issues.apache.org/jira/browse/THRIFT-474] where a similar patch was included intermingled with a patch for a different issue.

    
> Create correct Ruby namespace directories
> -----------------------------------------
>
>                 Key: THRIFT-1544
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1544
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Ruby - Compiler
>    Affects Versions: 0.8
>            Reporter: Adam Stegman
>            Priority: Minor
>              Labels: compiler, namespaces, patch, ruby
>         Attachments: Namespace-generated-Ruby-files-correctly.patch
>
>
> Creating correct Ruby namespace directories, very similar to how Java creates package directories. e.g. {noformat}namespace java com.example.my_lib
> namespace rb com.example.my_lib{no format} should both result in gen-{rb,java}/com/example/my_lib/my_lib_service.{rb,java}.
> Patch attached.
> See also [THRIFT-474|https://issues.apache.org/jira/browse/THRIFT-474] where a similar patch was included intermingled with a patch for a different issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (THRIFT-1544) Create correct Ruby namespace directories

Posted by "Adam Stegman (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Stegman updated THRIFT-1544:
---------------------------------

    Description: 
Creating correct Ruby namespace directories, very similar to how Java creates package directories. e.g. {noformat}namespace java com.example.my_lib
namespace rb com.example.my_lib{noformat} should both result in gen-{rb,java}/com/example/my_lib/my_lib_service.{rb,java}.

Patch attached.

See also [THRIFT-474|https://issues.apache.org/jira/browse/THRIFT-474] where a similar patch was included intermingled with a patch for a different issue.

  was:
Creating correct Ruby namespace directories, very similar to how Java creates package directories. e.g. {noformat}namespace java com.example.my_lib
namespace rb com.example.my_lib{no format} should both result in gen-{rb,java}/com/example/my_lib/my_lib_service.{rb,java}.

Patch attached.

See also [THRIFT-474|https://issues.apache.org/jira/browse/THRIFT-474] where a similar patch was included intermingled with a patch for a different issue.

    
> Create correct Ruby namespace directories
> -----------------------------------------
>
>                 Key: THRIFT-1544
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1544
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Ruby - Compiler
>    Affects Versions: 0.8
>            Reporter: Adam Stegman
>            Priority: Minor
>              Labels: compiler, namespaces, patch, ruby
>         Attachments: Namespace-generated-Ruby-files-correctly.patch
>
>
> Creating correct Ruby namespace directories, very similar to how Java creates package directories. e.g. {noformat}namespace java com.example.my_lib
> namespace rb com.example.my_lib{noformat} should both result in gen-{rb,java}/com/example/my_lib/my_lib_service.{rb,java}.
> Patch attached.
> See also [THRIFT-474|https://issues.apache.org/jira/browse/THRIFT-474] where a similar patch was included intermingled with a patch for a different issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira