Thanks Peter and Culley.  What about something like RubyEncoder?  If I
would like my overseas programmer to work on the views and controllers
(just the UI), can I encode all the model files and give them to him?
Will the automatic test scripts continue to work with the encoded
model files?

Using stubs for models sound good but does that mean I have to rewrite
lots of the integration testing scripts to accommodate for the fact
that the models are just stubs which do not return the results you
would expect from fully implemented models?

Thanks.

On Mar 11, 1:16 pm, Peter Bell <[email protected]> wrote:
> On Mar 11, 2011, at 4:13 PM, Culley Smith wrote:
>
> > 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.
>
> But then the tests and the app may not work. You'd have to think carefully 
> about not breaking automated testing - you'd also need to add the appropriate 
> test files to your gitignore.
>
> But then of course you're stuck with no version control on those files - so 
> now that I think about it, probably not a good idea.
>
> Best Wishes,
> Peter
>
>
>
>
>
> > 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 
> > athttp://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 
> > athttp://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