Creating/Installing a gem from a SVN repository?

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/svn/markaby/

Thanks,
Joe

···

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

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

···

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/svn/markaby/

why the lucky stiff 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/svn/markaby/

  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

···

On Fri, Aug 25, 2006 at 11:19:02AM +0900, Joe Ruby wrote:

--
Posted via http://www.ruby-forum.com/\.

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-forum.com/.

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-forum.com/\.

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

···

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.

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-forum.com/\.