lib/yamg/screenshot.rb in yamg-0.5.3 vs lib/yamg/screenshot.rb in yamg-0.5.5

- old
+ new

@@ -6,10 +6,10 @@ attr_accessor :url, :size, :command # Uses PhantomJS def initialize(*ss) @name, opts = ss - fail 'No screen size provided' unless opts && opts['size'] + raise 'No screen size provided' unless opts && opts['size'] uri = URI.parse(opts['url']) @url = "http://#{uri}" @size = opts['size'] @size = @size.split(/\s?,\s?/) if @size.respond_to?(:split) @dpi = @size.pop if @size.length > 2