Groups
Groups
Sign in
Groups
Groups
Goliath.io
Conversations
About
Send feedback
Help
couldn't start hello world
10 views
Skip to first unread message
Tensai Cirno
unread,
Mar 29, 2011, 12:18:13 PM
3/29/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Goliath.io
Just wandering, what i'm doing wrong. Here log:
cirno@perfect-math-class:~$ cd Development/
cirno@perfect-math-class:~/Development$ mkdir goliath
cirno@perfect-math-class:~/Development$ cd goliath/
cirno@perfect-math-class:~/Development/goliath$ rvm 1.9.2
cirno@perfect-math-class:~/Development/goliath$ rvm gemset create
goliath
'goliath' gemset created (/home/cirno/.rvm/gems/ruby-1.9.2-
p180@goliath).
cirno@perfect-math-class:~/Development/goliath$ rvm gemset use goliath
Now using gemset 'goliath'
cirno@perfect-math-class:~/Development/goliath$ gem install goliath
Fetching: eventmachine-1.0.0.beta.3.gem (100%)
Building native extensions. This could take a while...
Fetching: em-synchrony-0.3.0.beta.1.gem (100%)
Fetching: http_parser.rb-0.5.1.gem (100%)
Building native extensions. This could take a while...
Fetching: log4r-1.1.9.gem (100%)
Fetching: rack-1.2.2.gem (100%)
Fetching: rack-contrib-1.1.0.gem (100%)
Fetching: rack-accept-media-types-0.9.gem (100%)
Fetching: rack-respond_to-0.9.8.gem (100%)
Fetching: async-rack-0.5.1.gem (100%)
Fetching: multi_json-0.0.5.gem (100%)
Fetching: goliath-0.9.0.gem (100%)
Successfully installed eventmachine-1.0.0.beta.3
Successfully installed em-synchrony-0.3.0.beta.1
Successfully installed http_parser.rb-0.5.1
Successfully installed log4r-1.1.9
Successfully installed rack-1.2.2
Successfully installed rack-contrib-1.1.0
Successfully installed rack-accept-media-types-0.9
Successfully installed rack-respond_to-0.9.8
Successfully installed async-rack-0.5.1
Successfully installed multi_json-0.0.5
Successfully installed goliath-0.9.0
11 gems installed
Installing ri documentation for eventmachine-1.0.0.beta.3...
Installing ri documentation for em-synchrony-0.3.0.beta.1...
Installing ri documentation for http_parser.rb-0.5.1...
Installing ri documentation for log4r-1.1.9...
Installing ri documentation for rack-1.2.2...
Installing ri documentation for rack-contrib-1.1.0...
Installing ri documentation for rack-accept-media-types-0.9...
Installing ri documentation for rack-respond_to-0.9.8...
Installing ri documentation for async-rack-0.5.1...
Installing ri documentation for multi_json-0.0.5...
Installing ri documentation for goliath-0.9.0...
Installing RDoc documentation for eventmachine-1.0.0.beta.3...
Installing RDoc documentation for em-synchrony-0.3.0.beta.1...
Installing RDoc documentation for http_parser.rb-0.5.1...
Installing RDoc documentation for log4r-1.1.9...
Installing RDoc documentation for rack-1.2.2...
Installing RDoc documentation for rack-contrib-1.1.0...
Installing RDoc documentation for rack-accept-media-types-0.9...
Installing RDoc documentation for rack-respond_to-0.9.8...
Installing RDoc documentation for async-rack-0.5.1...
Installing RDoc documentation for multi_json-0.0.5...
Installing RDoc documentation for goliath-0.9.0...
cirno@perfect-math-class:~/Development/goliath$ cat > goliath.rb <<EOF
> require 'goliath'
> class Hello < Goliath::API
> def response(env)
> [200, {}, "Hello World"]
> end
> end
> EOF
cirno@perfect-math-class:~/Development/goliath$ ruby goliath.rb -sv
/home/cirno/.rvm/gems/ruby-1.9.2-p180@goliath/gems/goliath-0.9.0/lib/
goliath/application.rb:49:in `run!': undefined method `new' for
Goliath:Module (NoMethodError)
from /home/cirno/.rvm/gems/ruby-1.9.2-p180@goliath/gems/goliath-0.9.0/
lib/goliath/application.rb:87:in `block in <module:Goliath>'
cirno@perfect-math-class:~/Development/goliath$ ruby --version
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
Ilya Grigorik
unread,
Mar 29, 2011, 12:23:08 PM
3/29/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golia...@googlegroups.com
The filename should be hello.rb instead of goliath.rb. Not even sure what happens when you try to require yourself. :-)
Mando Escamilla
unread,
Mar 29, 2011, 12:26:37 PM
3/29/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golia...@googlegroups.com, Tensai Cirno
Tensai,
Goliath expects the name of the file you're running to match the class name. If you rename 'goliath.rb' to 'hello.rb', you should be good to go.
--
Mando
Tensai Cirno
unread,
Mar 29, 2011, 12:30:37 PM
3/29/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Goliath.io
thanks, especially for fast reply :-)
Reply all
Reply to author
Forward
0 new messages