If you're using git and github, I believe adding files/directories to your
.gitignore file should do what you want.  It would hide a part of a file,
however, but the entire file itself.

Thanks,
Culley

On Fri, Mar 11, 2011 at 3:06 PM, Vincent P <[email protected]> wrote:

> Hi,
>
> How can I hide parts of Ruby source code from another programmer
> working on the same project? I plan to outsource development of parts
> of my RoR web site to an overseas programmer.  For example, I would
> like him to work on only certain views, controllers or models, or
> certain features such as the ability to login using a Facebook
> account.  I don't want him to have all the source code of the web site
> because I don't want him to be able to clone the entire site easily
> and operate it overseas.  I am in the U.S.  I am afraid that a non-
> disclosure or non-compete agreement with him will be difficult and
> expensive to enforce outside the U.S. under a developing country's
> legal system.
>
> Ideally, I would like my overseas programmer to be able to check in
> his code into Github and test his code against the whole web site
> while not being able to see the source code of other parts of the web
> site.
>
> Thanks.
>
> Vincent.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to