[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Please review: ruby-ramaze



Hi,

I finished Cédric's repackaging of libramaze-ruby into ruby-ramaze,
and the package now is policy-compliant and even looks
nice. However... I hit two walls.

First of all, it requires a *lot* of yet-unpackaged gems to run its
test suite. Of course, I minimized the tests only to the most basic
«require 'ramaze'» one, but it still does not make me feel nice ;-)

But second, and foremost, the package... Does not work, at least, not
as I expected. That is, while a project creation works:

    0 gwolf@mosca『7』/tmp$ ramaze create foo
    The application has been generated and saved in foo
    0 gwolf@mosca『8』/tmp$ ls foo
    app.rb  config.ru  controller  Gemfile  layout  public  Rakefile README.md  spec  task  view

it is unable to do anything with it:

    0 gwolf@mosca『9』/tmp$ cd foo
    0 gwolf@mosca『10』/tmp/foo$ ramaze start
    The specified command is invalid
    1  gwolf@mosca『11』/tmp/foo$ ramaze help
    The specified command is invalid
    1  gwolf@mosca『12』/tmp/foo$ ramaze --help
    Ramaze is a simple, light and modular open-source web application
    framework written in Ruby.
    
    Usage:
      ramaze [COMMAND] [OPTIONS]
    
    Example:
      ramaze create blog
    
    Commands:
      create     Creates a new Ramaze application
    
    Options:
      -v, --version                    Shows the version of Ramaze
      -h, --help                       Shows this help message
    0 gwolf@mosca『13』/tmp/foo$ ramaze --start
    /usr/lib/ruby/vendor_ruby/ramaze/bin/runner.rb:74:in `run': invalid option: --start (OptionParser::InvalidOption)
    						     from /usr/bin/ramaze:5:in `<main>'


The previously packaged version of ramaze _does_ provide
start/stop/restart/console commands... But not this one. In fact, I
grepped through the source, and found lib/ramaze/bin/runner.rb
actually provides only the :create symbol.

So, I don't know where is my logic breaking. While a basic application
seems to work:

    $ ruby -e 'require "ramaze"; Ramaze.start'
    W [2013-08-29 13:04:52 $21817]  WARN | : No explicit root folder found, assuming it is .
    D [2013-08-29 13:04:52 $21817] DEBUG | : Default controller invoked
    D [2013-08-29 13:04:52 $21817] DEBUG | : Using webrick
    I [2013-08-29 13:04:52 $21817]  INFO | : WEBrick 1.3.1
    I [2013-08-29 13:04:52 $21817]  INFO | : ruby 1.9.3 (2012-04-20) [x86_64-linux]
    D [2013-08-29 13:04:52 $21817] DEBUG | : TCPServer.new(0.0.0.0, 7000)
    D [2013-08-29 13:04:52 $21817] DEBUG | : Rack::Handler::WEBrick is mounted on /.
    I [2013-08-29 13:04:52 $21817]  INFO | : WEBrick::HTTPServer#start: pid=21817 port=7000

I see nothing in the source that would make it answer as its website
suggests.

Now, I have never used this framework, and I'd be delighted if
somebody who actually does came to its rescue. Currently, it ranks as
close to or higher than the mode of the packages we maintain (so I'd
rather we don't drop it). But it does not mean I'm qualified to
provide any support for it!

Attachment: signature.asc
Description: Digital signature


Reply to: