lib/imagery.rb in imagery-0.2.2 vs lib/imagery.rb in imagery-1.0.0.rc1
- old
+ new
@@ -1,11 +1,9 @@
require "fileutils"
require "tempfile"
class Imagery
- VERSION = "0.2.2"
-
autoload :S3, "imagery/s3"
autoload :Faking, "imagery/faking"
autoload :Test, "imagery/test"
# Raised during Imagery#save if the image can't be recognized.
@@ -120,9 +118,13 @@
def self.root=(path)
@root = path
end
self.root = File.join(Dir.pwd, "public")
+
+ def self.inherited(child)
+ child.root = root
+ end
module GM
# -size tells GM to only read from a given dimension.
# -resize is the target dimension, and understands geometry strings.
# -quality we force it to 80, which is very reasonable and practical.