Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion What's the matter with merb 0.9.8?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Lin Jen-Shin  
View profile  
 More options Oct 7 2008, 9:57 am
From: Lin Jen-Shin <god...@gmail.com>
Date: Tue, 7 Oct 2008 06:57:14 -0700 (PDT)
Local: Tues, Oct 7 2008 9:57 am
Subject: Re: What's the matter with merb 0.9.8?
On Oct 7, 3:24 pm, Tricheco <luca.mai...@gmail.com> wrote:

> On Mac and Linux:

> $ merb-gen app test
> $ cd test
> $ rake --tasks
> (in /Users/user/Development/Ruby/Merb/0.9.8/test)
> Logging to #<IO:0x2f7d8>
> rake aborted!
> can't convert IO into String
> /Users/user/Development/Ruby/Merb/0.9.8/test/rakefile:12
> (See full trace by running task with --trace)

I've just done the same thing a couple minutes ago,
tracking into source code to find out what's wrong with it.

I notice that in merb-core.rb: 497

    def load_config(options = {})
      Merb::Config.setup({ :log_file => STDOUT, :log_level
=> :warn, :log_auto_flush => true }.merge(options))
      Merb::BootLoader::Logger.run
    end

Here Merb make default :log_file to be STDOUT,
which is an IO instance, and in merb-core/bootloader.rb: 294

    Merb::Config[:log_stream] = File.open(Merb::Config[:log_file], "w
+") if Merb::Config[:log_file]

It suppose :log_file should refer a String, not an IO.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google