Dear devs, the branch version (http://repo.nitroproject.org/branch) works with Facets 2.0.3 please download it and test :) -g. PS: kudos to Tom for this one...
on 2007-11-03 18:42
on 2007-11-03 20:26
There's a million gems on RubyForge that could match this -- so I'll
just ask -- what gem am I missing?
Console::Command::Options
Gemspec dependencies need updating ( just from eyeballing the files ).
At various points I recall installing
- xml-simple ( ? )
- uuidtools
- sources ?
- facets 1.8.54 and now 2.0.2
Not sure if mongrel is a dependency or not -- I should try removing it
and running with the webrick adapter.
/Users/rmela/nitro/branch/script/lib/../../nitro/lib/nitro/application/args.rb:7:
uninitialized constant Console::Command::Options (NameError)
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from
/Users/rmela/nitro/branch/script/lib/../../nitro/lib/nitro/application.rb:3
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from
/Users/rmela/nitro/branch/script/lib/../../nitro/lib/nitro/nitro.rb:90
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from
/Users/rmela/nitro/branch/script/lib/../../nitro/lib/nitro/nitro_and_og.rb:1
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from app.rb:7
*** LOCAL GEMS ***
blow (0.3.0)
Block+Web = Blow
BlueCloth (1.0.0)
BlueCloth is a Ruby implementation of Markdown, a text-to-HTML
conversion tool for web writers. Markdown allows you to write using
an easy-to-read, easy-to-write plain text format, then convert it to
structurally valid XHTML (or HTML).
capistrano (2.0.0)
Capistrano is a utility and framework for executing commands in
parallel on multiple remote machines, via SSH.
capistrano-ext (1.2.0)
Capistrano Extensions is a set of useful task libraries and methods
that other developers may reference in their own recipe files.
cgi_multipart_eof_fix (2.3)
Fix an exploitable bug in CGI multipart parsing.
daemons (1.0.8)
A toolkit to create and control daemons in different ways
english (0.1)
English Code Kit
facets (2.0.2, 1.8.54)
Premium Core Extensions and Standard Additions
fastthread (1.0)
Optimized replacement for thread.rb primitives
gem_plugin (0.2.2)
A plugin system based only on rubygems that uses dependencies only
highline (1.4.0)
HighLine is a high-level command-line IO library.
mongrel (1.0.1)
A small fast HTTP library and server that runs Rails, Camping, Nitro
and Iowa apps.
mongrel_cluster (1.0.2)
Mongrel plugin that provides commands and Capistrano tasks for
managing multiple Mongrel processes.
needle (1.3.0)
Needle is a Dependency Injection/Inversion of Control container for
Ruby. It supports both type-2 (setter) and type-3 (constructor)
injection. It takes advantage of the dynamic nature of Ruby to
provide a rich and flexible approach to injecting dependencies.
net-sftp (1.1.0)
Net::SFTP is a pure-Ruby implementation of the SFTP client protocol.
net-ssh (1.1.2)
Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.
palmtree (0.0.6)
Collection of Capistrano recipes
rake (0.7.3)
Ruby based make-like utility.
RedCloth (3.0.4)
RedCloth is a module for using Textile and Markdown in Ruby. Textile
and Markdown are text formats. A very simple text format. Another
stab at making readable text that can be converted to HTML.
ruby-debug (0.9.3)
Command line interface (CLI) for ruby-debug-base
ruby-debug-base (0.9.3)
Fast Ruby debugger
sources (0.0.1)
This package provides download sources for remote gem installation
sqlite3-ruby (1.2.1)
SQLite3/Ruby is a module to allow Ruby scripts to interface with a
SQLite3 database.
uuidtools (1.0.1)
Generation of UUIDs.
xml-simple (1.0.11)
A very simple API for XML processing.
on 2007-11-03 20:36
Forgot to mention -- you'll need english and blow ( blow was mentioned as replacing... um... I can't remember... glue? )
on 2007-11-03 20:36
On Nov 3, 1:41 pm, "George Moschovitis" <george.moschovi...@gmail.com> wrote: > Dear devs, > > the branch version (http://repo.nitroproject.org/branch) works with Facets > 2.0.3 > > please download it and test :) NOTE: I'm not sure exactly what the status is, but I've heard the Rubyforge gem repository is not working at the moment (can anyone confirm?). So you might have to download the Facets 2.0.3 gem manually. T.
on 2007-11-03 20:48
That and blow. I'd run a gem update for facets assuming that would work... but it gave me 2.0.2 Next issue: admin part require paths need to be updated. In my app.rb I changed require 'nitro/part/admin' to require 'part/admin' but the admin part files themselves need the paths changed. Should I fix it and send a patch, or do you guys want to handle it?
on 2007-11-03 20:58
Fixes part include paths. This puts the admin part back to where it was a few days ago -- blowing up because of the problem that @post_params in Context is sometimes Hash, sometimes Dictionary.
on 2007-11-03 21:19
When I run this against Nitro trunk the OgAdminController is mounted on /admin/og. Running against the new branch it isn't. ( note: change 'nitro/part/admin' to 'part/admin' for the newest branch code ) Example copied verbatim from bottom of http://robmela.com/cheatsheets/og_intro --- #!/usr/bin/env ruby require 'sqlite3' require 'nitro_and_og' include Nitro require 'nitro/part/admin' # Og model class Book attr_accessor :title, String attr_accessor :author, String end # Controller class Foo def index redirect_to '/admin' # redirect to Nitro admin scaffold end end Og.create_schema = true Og.use_uuid_primary_keys = true Og.start( :name => "library", :adapter => :sqlite, :evolve_schema => :full ) app=Application.new app.dispatcher.root = Foo app.start