miso 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -52,4 +52,13 @@ But wait, there is more! Read the API documentation for more goodies.
52
52
 
53
53
  Currently supported backends are: Core Image and ImageMagick, because those
54
54
  are the ones we use. If you want to contribute backends we're happy to
55
- accept patches!
55
+ accept patches!
56
+
57
+
58
+ : ENDORSEMENTS
59
+
60
+ @garyyuen: ‘miso with indian flavors. seems ok.’
61
+ @Oracl: ‘@veganza I love miso! :)’
62
+ @lehudgins: ‘ok fine. Miso totally does go kinda bad after a year.’
63
+ Wikipedia: ‘High in protein and rich in vitamins and minerals, miso played an
64
+ important nutritional role in feudal Japan.’
data/TODO CHANGED
@@ -1,3 +1,8 @@
1
+ - Check if sips and IM round the center position in the same way (floor|ceil)
2
+ if the image dimensions are odds and if so, make the CI processor do the same.
3
+ - Why do we need autoload and actually make it work.
4
+ Processor.processor_classes currently references them all, so they're simply
5
+ loaded.
1
6
  - Add Miso::Image#add(image, 10, 10), which adds another image on top of the
2
7
  image. This should be implemented by the processor as well.
3
8
  - Add Miso::Image#watermark(image, :southwest, 10, 10), which uses
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -86,7 +86,7 @@ module Miso
86
86
  end
87
87
 
88
88
  def detect_file_type(path)
89
- case File.extname(path)
89
+ case File.extname(path).downcase
90
90
  when '.png'
91
91
  OSX::NSPNGFileType
92
92
  when '.jpg'
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.2.0"
8
+ s.version = "0.2.1"
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{2009-10-21}
12
+ s.date = %q{2009-11-30}
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 = [
@@ -19,7 +19,10 @@ begin
19
19
 
20
20
  describe "An instance of Miso::Processor::CoreImage" do
21
21
  it "should write the output file with the type inflected from the extension" do
22
- { 'png' => 'PNG', 'jpg' => 'JPEG', 'gif' => 'GIF' }.each do |ext, type|
22
+ ext_and_type = { 'png' => 'PNG', 'jpg' => 'JPEG', 'gif' => 'GIF' }
23
+ ext_and_type.each { |k, v| ext_and_type[k.upcase] = v }
24
+
25
+ ext_and_type.each do |ext, type|
23
26
  Miso::Image.crop(input, output(ext), 100, 100, processor)
24
27
  file_info(output(ext)).should.include type
25
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-10-21 00:00:00 +02:00
13
+ date: 2009-11-30 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency