Not working?
duramato opened this issue · 3 comments
duramato commented
Ive just installed gastly via ruby gems, and tried runnning but i just got this
# Gastly.capture('http://google.com', 'output.png')
-bash: syntax error near unexpected token `'http://google.com','
mgrachev commented
@duramato You must first run irb
and it run this example:
$ gem install gastly
$ irb
irb(main):001:0> require 'gastly'
=> true
irb(main):002:0> Gastly.capture('http://google.com', 'output.png')
=> "output.png"
Or without irb
:
$ ruby -e "require 'gastly'; Gastly.capture('http://google.com', 'output.png')"
duramato commented
Oh ok , i was thinking it was a stand alone package.
And i tried the one liner example with google and it seemed to work, but then i tried with another page and it only worked "partially". http://img.cla46.com/up/146815992883d84c0.png