[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Creating/Installing a gem from a SVN repository?

Joe Ruby

8/25/2006 2:19:00 AM

Is there an easy way to create a Ruby gem, or install a Ruby gem, from
an SVN repository? I'd like to get using the latest version of Markaby:
http://code.whytheluckystiff.net/sv...

Thanks,
Joe

--
Posted via http://www.ruby-....

7 Answers

why the lucky stiff

8/25/2006 2:47:00 AM

0

On Fri, Aug 25, 2006 at 11:19:02AM +0900, Joe Ruby wrote:
> Is there an easy way to create a Ruby gem, or install a Ruby gem, from
> an SVN repository? I'd like to get using the latest version of Markaby:
> http://code.whytheluckystiff.net/sv...

svn co http://code.whytheluckystiff.net/sv...trunk markaby
cd markaby
rake install

Which installs the gem. Also, there is a current gem.

gem install markaby --source code.whytheluckystiff.net

_why

Joe Ruby

8/25/2006 7:39:00 AM

0

why the lucky stiff wrote:
> On Fri, Aug 25, 2006 at 11:19:02AM +0900, Joe Ruby wrote:
>> Is there an easy way to create a Ruby gem, or install a Ruby gem, from
>> an SVN repository? I'd like to get using the latest version of Markaby:
>> http://code.whytheluckystiff.net/sv...
>
> svn co http://code.whytheluckystiff.net/sv...trunk markaby
> cd markaby
> rake install
>
> Which installs the gem. Also, there is a current gem.
>
> gem install markaby --source code.whytheluckystiff.net
>
> _why

Thanks why, but after doing that and uninstalling Markaby 0.4, Mongrel
dies at startup with this error:

/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`const_missing': uninitialized constant View (NameError)
from /var/www/rails/config/environment.rb:66

The lines in environment.rb are:
require 'markaby'
ActionView::Base::register_template_handler 'mab', Markaby::View

I also tried this:
ActionView::Base::register_template_handler 'mab',
Markaby::ActionViewTemplateHandler

since it looks like things got changed around, but still get the same
type of error. Any idea how to make this work?

Thanks,
Joe

--
Posted via http://www.ruby-....

Joe Ruby

8/25/2006 7:55:00 AM

0

Well, I tried also adding "require 'markaby/rails'" and that got rid of
the uninit'd constant error, but now I'm getting this error:

/usr/lib/site_ruby/1.8/markaby/builder.rb:194:in `method_missing': no
such method `length'

I also got several invalid xhtml errors, but I cleaned those up -- I
don't know what this error above is though.

Joe

--
Posted via http://www.ruby-....

William Crawford

8/25/2006 11:36:00 AM

0

Joe Ruby wrote:
> Well, I tried also adding "require 'markaby/rails'" and that got rid of
> the uninit'd constant error, but now I'm getting this error:
>
> /usr/lib/site_ruby/1.8/markaby/builder.rb:194:in `method_missing': no
> such method `length'
>
> I also got several invalid xhtml errors, but I cleaned those up -- I
> don't know what this error above is though.
>
> Joe

Did you try
require 'rubygems'
?

--
Posted via http://www.ruby-....

why the lucky stiff

8/25/2006 4:01:00 PM

0

On Fri, Aug 25, 2006 at 04:55:25PM +0900, Joe Ruby wrote:
> /usr/lib/site_ruby/1.8/markaby/builder.rb:194:in `method_missing': no
> such method `length'
>
> I also got several invalid xhtml errors, but I cleaned those up -- I
> don't know what this error above is though.

Right. This new version of Markaby is much more strict about its use of
method_missing. It knows which tags are in the XHTML spec and it'll restrict
you to those tags. Check out your source code and see if you can find a spot
where you're calling `length`.

Some docs concerning the upgrade will be out shortly.

_why

Joe Ruby

9/17/2006 5:55:00 PM

0

why the lucky stiff wrote:
> On Fri, Aug 25, 2006 at 04:55:25PM +0900, Joe Ruby wrote:
>> /usr/lib/site_ruby/1.8/markaby/builder.rb:194:in `method_missing': no
>> such method `length'
>>
>> I also got several invalid xhtml errors, but I cleaned those up -- I
>> don't know what this error above is though.
>
> Right. This new version of Markaby is much more strict about its use of
> method_missing. It knows which tags are in the XHTML spec and it'll
> restrict
> you to those tags. Check out your source code and see if you can find a
> spot
> where you're calling `length`.
>
> Some docs concerning the upgrade will be out shortly.
>
> _why

Hey Why,

Any progress on those docs and the new release?

Thanks,
Joe

--
Posted via http://www.ruby-....

Lloyd Olson

9/21/2010 8:40:00 PM

0

Rule #2: See rule #1. LTG :)

"Jbug" <marshalj@staff.abanet.org> wrote in message
news:c974461d-1c25-4584-8f21-61c194e3eb57@y3g2000vbm.googlegroups.com...
>
> Rule #1: Quit working on the game with it powered up. : (
> Richard

Ok Richard, spec I'd better be on the safe side. Was there a rule
#2?