miso 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/VERSION +1 -1
- data/lib/miso.rb +4 -4
- data/lib/miso/processor.rb +4 -4
- data/miso.gemspec +2 -2
- data/spec/api/image_spec.rb +4 -0
- metadata +4 -4
data/LICENSE
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.3
|
data/lib/miso.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
+
require 'miso/image'
|
2
|
+
require 'miso/factory'
|
3
|
+
require 'miso/processor'
|
4
|
+
|
1
5
|
module Miso
|
2
|
-
autoload :Factory, 'miso/factory'
|
3
|
-
autoload :Image, 'miso/image'
|
4
|
-
autoload :Processor, 'miso/processor'
|
5
|
-
|
6
6
|
class MisoError < StandardError; end
|
7
7
|
class NotImplementedError < MisoError; end
|
8
8
|
class UnsupportedFileType < MisoError
|
data/lib/miso/processor.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
+
require 'miso/processor/core_image'
|
2
|
+
require 'miso/processor/image_magick'
|
3
|
+
require 'miso/processor/graphics_magick'
|
4
|
+
|
1
5
|
module Miso
|
2
6
|
class Processor
|
3
|
-
autoload :CoreImage, 'miso/processor/core_image'
|
4
|
-
autoload :GraphicsMagick, 'miso/processor/graphics_magick'
|
5
|
-
autoload :ImageMagick, 'miso/processor/image_magick'
|
6
|
-
|
7
7
|
class << self
|
8
8
|
# Sets the default processor class.
|
9
9
|
attr_writer :processor_class
|
data/miso.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{miso}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Eloy Duran", "Manfred Stienstra"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-08-17}
|
13
13
|
s.description = %q{Miso is a unified API for simple image operations commonly used on the web.}
|
14
14
|
s.email = ["eloy@fngtps.com", "manfred@fngtps.com"]
|
15
15
|
s.extra_rdoc_files = [
|
data/spec/api/image_spec.rb
CHANGED
@@ -122,4 +122,8 @@ describe "Miso::Image, concerning shortcut class methods" do
|
|
122
122
|
@image.expects(:dimensions).returns([120, 100])
|
123
123
|
Miso::Image.dimensions(@input_file).should == [120, 100]
|
124
124
|
end
|
125
|
+
|
126
|
+
it "should make a factory" do
|
127
|
+
Miso::Image.factory.should.be.a.kind_of(Miso::Factory)
|
128
|
+
end
|
125
129
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: miso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Eloy Duran
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-08-17 00:00:00 +02:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|