Need help on How to apply a fix to Ramaze!

R

Ruby Student

[Note: parts of this message were removed to make it a legal post.]

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:
http://github.com/rack/rack/commit/723e29a005d2b878424d8abc021e1c1a1d7e865b

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

James Britt

Ruby said:
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 Britt

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

Ruby Student

[Note: parts of this message were removed to make it a legal post.]

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

Are you familiar with git, and GitHub?




--
James Britt

www.jamesbritt.com - Playing with Better Toys
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 `<main>'

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 | : $B"+(B[33mNo explicit root folder found,
assuming it is .$B"+(B[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 `<main>'

C:\$user>
 
B

Bill Kelly

From: "Ruby Student said:
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'

Here's more info on innate:

http://github.com/manveru/innate/tree/master

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:

http://gitcasts.com/posts/git-on-windows


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

http://github.com/rack/rack/commit/723e29a005d2b878424d8abc021e1c1a1d7e865b

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
 
R

Ruby Student

[Note: parts of this message were removed to make it a legal post.]

From: "Ruby Student said:
C:\$user>ruby helloramaze.rb
W [2009-04-15 11:41:28 $5956] WARN | : $B"+(B[33mNo explicit root folder
found,
assuming it is .$B"+(B[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'

Here's more info on innate:

http://github.com/manveru/innate/tree/master

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:

http://gitcasts.com/posts/git-on-windows


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

http://github.com/rack/rack/commit/723e29a005d2b878424d8abc021e1c1a1d7e865b

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

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,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top