Hmmm... time to upgrade to Leopard - the nice 'one-click Ruby installer' at http://rubyosx.rubyforge.org only goes to 1.8.6 on Tiger, and there are readline issues when installing 1.8.7 on Tiger.

BTW the link to Camping on the above page still goes to http:// code.whytheluckystiff.net/camping/ if anyone knows who to contact to get this changed? - Dave

A better solution is to actually upgrade to 1.8.7 (which is actively maintained)

// Magnus Holm

On Wed, May 18, 2011 at 18:15, Dave Everitt <dever...@innotts.co.uk> wrote:
Thanks Magnus  - downgraded Rack to 1.2.0 after trying Git version.

For the benefit of anyone else reading this:

Tried the 1.8.6 compatibility-fixed version of Rack:
 git clone git://github.com/sferik/rack.git
 cd rack
 rake test
 (in /Users/deveritt/src/rack)
 bacon -I./lib:./test -w -a -q -t
'^(?!Rack::Adapter|Rack::Session::Memcache|rackup)'
 sh: line 1: bacon: command not found
 rake aborted!
 Command failed with status (127): [bacon -I./lib:./test -w -a -q -t
'^(?!Rack...]
 /Users/deveritt/src/rack/Rakefile:74

So (no time to dig further into the above, and most recent Rack was 1.1.0 on
machine in question) just did:
 sudo gem install -v 1.2.0 rack
 sudo gem uninstall -v 1.2.2 rack

Everybody's Camping happily again :-)

Dave

Seems like Rack 1.2.2 (and 1.2.1) no longer supports 1.8.6. It's fixed
in Git, but I'm not sure when a new version will be released:
https://github.com/rack/rack/pull/145

You can downgrade to 1.2.0 for now.


// Magnus Holm



On Wed, May 18, 2011 at 12:44, Dave Everitt <dever...@innotts.co.uk>
wrote:

Just did a quick gem update, including Camping 2.1, and ran 'Hello Clock' (http://camping.rubyforge.org/book/02_getting_started.html) as a quick
test:

deveritt$ camping nuts.rb
/usr/local/lib/ruby/gems/1.8/gems/rack-1.2.2/lib/rack/utils.rb: 138:in
`union': can't convert Array into String (TypeError)
      from
/usr/local/lib/ruby/gems/1.8/gems/rack-1.2.2/lib/rack/utils.rb:138
      from
/usr/local/lib/ruby/gems/1.8/gems/camping-2.1/bin/../lib/ camping.rb:3
      from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
      from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from /usr/local/lib/ruby/gems/1.8/gems/camping-2.1/bin/ camping:5
      from /usr/local/bin/camping:19:in `load'
      from /usr/local/bin/camping:19

Any ideas? Worked fine with 2.0.392 -

Camping.goes :Nuts

module Nuts::Controllers
 class Index < R '/'
  def get
    @time = Time.now
    render :sundial
  end
 end
end

module Nuts::Views
 def layout
  html do
    head do
      title { "Nuts And GORP" }
    end
    body { self << yield }
  end
 end

 def sundial
  p "The current time is: #{@time}"
 end
end


Dave

_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to