You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Nathan Beyer (JIRA)" <ji...@apache.org> on 2012/07/08 14:46:34 UTC

[jira] [Updated] (THRIFT-1645) Replace Object#tee with more conventional Object#tap in specs

     [ https://issues.apache.org/jira/browse/THRIFT-1645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Beyer updated THRIFT-1645:
---------------------------------

    Attachment: THRIFT-1645-replace-tee-with-tap.patch
    
> Replace Object#tee with more conventional Object#tap in specs
> -------------------------------------------------------------
>
>                 Key: THRIFT-1645
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1645
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Ruby - Library
>    Affects Versions: 0.8
>            Reporter: Nathan Beyer
>         Attachments: THRIFT-1645-replace-tee-with-tap.patch
>
>
> The spec_helper.rb defines an Object#tee method, which is functionally equivalent to Object#tap. Object#tap was added to Ruby 1.9 and to 1.8.7.
> Attached is a patch that replaces the usage of 'tee' with 'tap' and will define the 'tap' method if it's missing (should only happen when Ruby 1.8.6 or below is used). If there's no need to support such a low minimum, this could be removed.

--
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