On Sep 29, 2009, at 10:00 AM, Leonardo Mateo wrote:
> On Tue, Sep 29, 2009 at 3:36 PM, Marnen Laibow-Koser
> <[email protected]> wrote:
>> Elliott Golden wrote:
>>> I have never packaged any code for a Rails app before. I have read a
>>> fair amount about differences between Gems and Rails plugins, but I
>>> was wanting to get some other opinions.
>>>
>>> I have a small cms I have built. As far as what I need to package...
>>> it's basically just a few generators. Here's a few details.
>>>
>>> - The app is rails dependent.
>>> - At least for a while, it will not be open source but hopefully  
>>> will
>>> be at some point.
>>
>> How do you propose to distribute a gem or plugin without exposing the
>> source?
>
> If you don't wanna expose the source and you need to distribute the
> app, you should look for some "encryptor" if there is such a thing.
> Ruby is an interpreted language, at least 1.8.x. Either you decide to
> distribute the application as a plugin or a gem, you will need to
> distribute the source since those are the files that get executed.
>
> -- 
> Leonardo Mateo.
> There's no place like ~

It sounds like you want your little cms to be a plugin. In any case  
you want to "install" it for a given Rails application, so dropping  
something into ../vendor/plugins/.. gives you a place to put  
initializers, rake tasks, your templates, etc.

As for the "not be open source", you just need good license agreements  
with your clients. Don't worry about encrypting the code. Just don't  
post it anywhere public. If you're going to be "marketing" your cms as  
part of a hosted service (as opposed to a product), then the packaging  
choice might not even matter.

-Rob

Rob Biedenharn          http://agileconsultingllc.com
[email protected]




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