[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Need help on How to apply a fix to Ramaze!

Ruby Student

4/15/2009 2:56:00 PM

[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/723e29a005d2b878424d8abc021e1c...

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

4 Answers

James Britt

4/15/2009 3:10:00 PM

0

Ruby Student 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 Britt

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

Ruby Student

4/15/2009 3:48:00 PM

0

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

On Wed, Apr 15, 2009 at 11:10 AM, James Britt <james.britt@gmail.com> wrote:

> Ruby Student 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 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.... 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 | : ?[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 `<main>'

C:\$user>

--
Ruby Student

Bill Kelly

4/15/2009 9:54:00 PM

0


From: "Ruby Student" <ruby.student@gmail.com>
>
> 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/t...

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


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/723e29a005d2b878424d8abc021e1c...

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




Ruby Student

4/16/2009 2:58:00 PM

0

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

On Wed, Apr 15, 2009 at 5:53 PM, Bill Kelly <billk@cts.com> wrote:

>
> From: "Ruby Student" <ruby.student@gmail.com>
>
>>
>> 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/t...
>
> 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-...
>
>
> 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/723e29a005d2b878424d8abc021e1c...
>
> 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!

--
Ruby Student