Skip to content

Instantly share code, notes, and snippets.

@maasdesigner
Created September 1, 2013 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maasdesigner/6405171 to your computer and use it in GitHub Desktop.
Save maasdesigner/6405171 to your computer and use it in GitHub Desktop.
gem --version
2.0.7
maasdesigner@ubuntu:~/Desktop/ruby1$ ruby --version
ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux]
maasdesigner@ubuntu:~/Desktop/ruby1$ ruby init.rb
/home/maasdesigner/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require': cannot load such file -- cart (LoadError)
from /home/maasdesigner/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require'
from init.rb:1:in `<main>'
maasdesigner@ubuntu:~/Desktop/ruby1$ ruby init.rb
init.rb:1: syntax error, unexpected tIDENTIFIER, expecting $end
require 'cart.rb' require 'item.rb'
^
maasdesigner@ubuntu:~/Desktop/ruby1$ ruby init.rb
init.rb:1:in `require_relative': /home/maasdesigner/Desktop/ruby1/cart.rb:21: syntax error, unexpected $end, expecting keyword_end (SyntaxError)
from init.rb:1:in `<main>'
maasdesigner@ubuntu:~/Desktop/ruby1$ ruby init.rb
init.rb:1:in `require_relative': /home/maasdesigner/Desktop/ruby1/cart.rb:21: syntax error, unexpected $end, expecting keyword_end (SyntaxError)
from init.rb:1:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment