Jakub - thank you for introducing rango. Dozens of beers for really
good job ;) It looks promising and I hope it'll find its place in web
frameworks environment.
I use ruby-1.9.1-p243 installed via rvm. I've tried 2 approaches to run
rango.
1st: via gem
$ gem install rango
$ rango
You have to install simple-templater first!
The explanation was misleading as the real issue was lack of erubis gem.
So I suppose simple-templater should depend on erubis gem.
Then after installing erubis
$ rango
/home/michal/.rvm/gems/ruby/1.9.1/gems/rango-0.1.0/lib/rango.rb:14:in
`<top (required)>': undefined method `default_internal=' for
Encoding:Class (NoMethodError)
from bin/rango:29:in `require'
from bin/rango:29:in `<main>'
I've got 2 ruby 1.9 versions
* 1.9.0 installed via aptitude -- /usr/bin/ruby1.9
* 1.9.1 installed via rvm
bin/rango starts with #!/use/bin/env ruby1.9 shebang
so it use system-installed ruby1.9.0 which seems to not include
Encoding.default_internal method
So I've changed shebang to #!/usr/bin/env ruby
and rvm ruby1.9.1 was used.
In my opinion you should notice in README that rango depends on
ruby1.9.1 and think over recognizing ruby verion on startup.
After then least and unsolved issue:
$ rango
/home/michal/.rvm/gems/ruby/1.9.1/gems/simple-templater-0.0.1/lib/simple-templater.rb:86:in
`block in find': undefined method `to_sym' for nil:NilClass (NoMethodError)
from
/home/michal/.rvm/gems/ruby/1.9.1/gems/simple-templater-0.0.1/lib/simple-templater.rb:85:in
`each'
from
/home/michal/.rvm/gems/ruby/1.9.1/gems/simple-templater-0.0.1/lib/simple-templater.rb:85:in
`find'
from
/home/michal/.rvm/gems/ruby/1.9.1/gems/simple-templater-0.0.1/lib/simple-templater.rb:85:in
`find'
from bin/rango:49:in `<main>'
I've stopped here. How can I solve that issue?
And the 2nd approach: clone github repo
$ git clone git://github.com/botanicus/rango.git
$ git submodule update --init
$ bin/rango
rango/lib/rango/mixins/application.rb:3:in `require': no such file to
load -- rubyexts/mixins/import (LoadError)
With Rango 0.1.0 ImportMixin is shipped in lib/rango/mixins/import.rb
With edge Rango I haven't found it. Any proposals?
Cheers,
Thanks, it started working, at least I created rango project.
However there is still little gotcha. You can create project
$ rango create project foobar
However it throws an exception when calling rango without arguments
$ rango
rango/vendor/simple-templater/lib/simple-templater.rb:86:in `block in
find': undefined method `to_sym' for nil:NilClass
which is obviously wrong as some usage information should be given -
I'm pretty sure that users starting with rango will really appreciate
that :)
--
Michał Łomnicki
I'm not using JRuby at all. My ruby1.9 installation is done via
http://rvm.beginrescueend.com/ which is just a quite popular solution to
use multiple ruby versions.
Anyway I've successfully created the rango project today. Unfortunately
I haven't got time to write and start even simple rango application so I
can't say more. I'm going to try it as soon as I can and will give you a
feedback.
--
Michał Łomnicki