Creating/Installing a gem from a SVN repository?

Discussion in 'Ruby' started by Joe Ruby, Aug 25, 2006.

  1. Joe Ruby

    Joe Ruby Guest

    Joe Ruby, Aug 25, 2006
    #1
    1. Advertising

  2. why the lucky stiff, Aug 25, 2006
    #2
    1. Advertising

  3. Joe Ruby

    Joe Ruby Guest

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

    --
    Posted via http://www.ruby-forum.com/.
    Joe Ruby, Aug 25, 2006
    #3
  4. Joe Ruby

    Joe Ruby Guest

    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, Aug 25, 2006
    #4
  5. 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/.
    William Crawford, Aug 25, 2006
    #5
  6. 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
    why the lucky stiff, Aug 25, 2006
    #6
  7. 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/.
    Joe Ruby MUDCRAP-CE, Sep 17, 2006
    #7
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ross Patterson
    Replies:
    0
    Views:
    275
    Ross Patterson
    Sep 30, 2007
  2. Replies:
    4
    Views:
    88
  3. Austin 7873
    Replies:
    5
    Views:
    185
    Eric Hodel
    Jan 27, 2007
  4. Andrey R-andrey

    Accessing SVN repository through Ruby

    Andrey R-andrey, Apr 28, 2009, in forum: Ruby
    Replies:
    8
    Views:
    781
    David Wright
    Oct 13, 2010
  5. Tom Cloyd
    Replies:
    0
    Views:
    180
    Tom Cloyd
    Sep 3, 2009
Loading...

Share This Page