Creating/Installing a gem from a SVN repository?

J

Joe Ruby

why said:
svn co http://code.whytheluckystiff.net/svn/markaby/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
 
J

Joe Ruby

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
 
W

William Crawford

Joe said:
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'
?
 
W

why the lucky stiff

/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
 
J

Joe Ruby MUDCRAP-CE

why said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top