Need help on How to apply a fix to Ramaze!

Hello team,
I am having a problem with Ramaze.
I submitted a question and a helpful team member gave me the info below.
The problem is that I don’t know how to apply the path and so I would
like
someones help.

The following is the reply from a sympathetic user:

You need latest Rack from github, the commit fixing your problem is:

=================================================================
The above link will take you to a page with the following:
@@ -42,7 +42,7 @@ module Rack
res.status = status.to_i
headers.each { |k, vs|
if k.downcase == “set-cookie”

  •          res.cookies.concat vs.to_a
    
  •         res.cookies.concat Array(vs)
           else
             vs.each { |v|
               res[k] = v
    

I really would like to try this tool, Ramaze, but I can’t continue until
my
problem is resolved.
I am submitting this question here because I believe that applying the
patch
might be the same either for Ruby or for Ramaze.

Thank you

Ruby S. wrote:

Hello team,
I am having a problem with Ramaze.
I submitted a question and a helpful team member gave me the info below.
The problem is that I don’t know how to apply the path and so I would like
someones help.

Have you tried updating your copy of Ramaze by getting the latest
version from GitHub?

Are you familiar with git, and GitHub?


James B.

www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff

On Wed, Apr 15, 2009 at 11:10 AM, James B. [email protected]
wrote:

from GitHub?
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff

Actually, I found on the Ramaze home page how to install the latest
version.
Please see below.
But that created a bunch of other problems, which I am trying to
resolve, as
you can see below.
Things do not look good at all.
Any help will be appreciated.

Thank you

C:$user>gem install git
Successfully installed git-1.0.5
1 gem installed
Installing ri documentation for git-1.0.5…
Updating ri class cache with 1686 classes…
Installing RDoc documentation for git-1.0.5…
ERROR: While executing gem … (TypeError)
can’t convert Pathname into String

C:$user>gem install --source http://gems.github.com manveru-ramaze

Thank you for installing Ramaze!
You can now do create a new project:

ramaze --create yourproject

============================================================
Successfully installed manveru-ramaze-2009.04.08
1 gem installed
Installing ri documentation for manveru-ramaze-2009.04.08…
Updating ri class cache with 1712 classes…
Installing RDoc documentation for manveru-ramaze-2009.04.08…
ERROR: While executing gem … (TypeError)
can’t convert Pathname into String

C:$user>ruby helloramaze.rb
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze.rb:20:in
require': no such file to load -- innate (LoadError) from C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze.rb:20:in module:Ramaze
from
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze.rb:12:in
<top (required)>' from helloramaze.rb:2:in require’
from helloramaze.rb:2:in `’

C:$user>gem install innate
Successfully installed innate-2009.04.12
1 gem installed
Installing ri documentation for innate-2009.04.12…
Updating ri class cache with 1870 classes…
Installing RDoc documentation for innate-2009.04.12…
ERROR: While executing gem … (TypeError)
can’t convert Pathname into String

C:$user>ruby helloramaze.rb
W [2009-04-15 11:41:28 $5956] WARN | : ←[33mNo explicit root folder
found,
assuming it is .←[0m
C:/ruby/lib/ruby/gems/1.9.1/gems/innate-2009.04.12/lib/innate/dynamap.rb:11:in
`remap’: super: no superclass method `remap’ for
#<Innate::URLMap:0x15404e8
@originals={}, @mapping=[
]> (NoMethodError)
from
C:/ruby/lib/ruby/gems/1.9.1/gems/innate-2009.04.12/lib/innate/dynamap.rb:18:in
`map’
from
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/app.rb:84:in
`sync’
from
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/app.rb:89:in
`location=’
from
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/app.rb:76:in
`initialize’
from
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/app.rb:117:in
`new’
from
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/app.rb:117:in
`find_or_create’
from
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/controller.rb:72:in
`map’
from
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/controller.rb:35:in
`block in setup’
from C:/ruby/lib/ruby/1.9.1/set.rb:211:in `block in each’
from C:/ruby/lib/ruby/1.9.1/set.rb:211:in `each_key’
from C:/ruby/lib/ruby/1.9.1/set.rb:211:in `each’
from
C:/ruby/lib/ruby/gems/1.9.1/gems/manveru-ramaze-2009.04.08/lib/ramaze/controller.rb:29:in
`setup’
from
C:/ruby/lib/ruby/gems/1.9.1/gems/innate-2009.04.12/lib/innate.rb:151:in
`block in setup_dependencies’
from
C:/ruby/lib/ruby/gems/1.9.1/gems/innate-2009.04.12/lib/innate.rb:151:in
`each’
from
C:/ruby/lib/ruby/gems/1.9.1/gems/innate-2009.04.12/lib/innate.rb:151:in
`setup_dependencies’
from
C:/ruby/lib/ruby/gems/1.9.1/gems/innate-2009.04.12/lib/innate.rb:126:in
`start’
from helloramaze.rb:8:in `’

C:$user>

On Wed, Apr 15, 2009 at 5:53 PM, Bill K. [email protected] wrote:

remap': super: no superclass method remap’ for

going to need to install a git client and update the source via git instead

I directly changed the file webrick.rb with the fix provided by Michael
earlier and it worked.
Thank you all for your comments and suggestions. I truly appreciate it!

From: “Ruby S.” [email protected]

`map’
Here’s more info on innate:

Looking at the source (in github) for lib/innate/dynamap.rb , my guess
is the
above error is due to a mismatch between the versions of ‘innate’ and
‘rack’
that are installed on your system.

I get the impression that to keep up with manveru’s projects, you’re
probably
going to need to install a git client and update the source via git
instead of
rubygems.

Here’s a screencast showing installing git for windows:

Alternately, I suppose you could go back to the original gems you
installed
and apply that one line patch manually:

You had asked about that in an earlier post. Basically that is just a
change
to one line in lib/rack/handler/webrick.rb .

Regards,

Bill