You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jake Farrell (JIRA)" <ji...@apache.org> on 2012/10/01 20:45:08 UTC

[jira] [Closed] (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 ]

Jake Farrell closed THRIFT-1645.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9
         Assignee: Nathan Beyer

Committed
                
> 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
>            Assignee: Nathan Beyer
>             Fix For: 0.9
>
>         Attachments: THRIFT-1645-replace-tee-with-tap.patch, THRIFT-1645-replace-tee-with-tap-v2.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
For more information on JIRA, see: http://www.atlassian.com/software/jira