mini_magick 1.2.5 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +3 -2
- data/Rakefile +5 -41
- data/VERSION +1 -1
- data/lib/mini_gmagick.rb +2 -0
- data/lib/mini_magick.rb +83 -21
- data/test/actually_a_gif.jpg +0 -0
- data/test/animation.gif +0 -0
- data/test/command_builder_test.rb +8 -1
- data/test/image_test.rb +72 -18
- data/test/leaves.tiff +0 -0
- data/test/not_an_image.php +1 -604
- data/test/simple-minus.gif +0 -0
- data/test/trogdor.jpg +0 -0
- metadata +57 -23
- data/.gitignore +0 -1
- data/lib/image_temp_file.rb +0 -9
- data/mini_magick.gemspec +0 -55
- data/test/image_temp_file_test.rb +0 -17
metadata
CHANGED
|
@@ -1,71 +1,105 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mini_magick
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
4
|
+
prerelease: false
|
|
5
|
+
segments:
|
|
6
|
+
- 1
|
|
7
|
+
- 3
|
|
8
|
+
- 3
|
|
9
|
+
version: 1.3.3
|
|
5
10
|
platform: ruby
|
|
6
11
|
authors:
|
|
7
12
|
- Corey Johnson
|
|
13
|
+
- Peter Kieltyka
|
|
14
|
+
- Hampton Catlin
|
|
8
15
|
autorequire:
|
|
9
16
|
bindir: bin
|
|
10
17
|
cert_chain: []
|
|
11
18
|
|
|
12
|
-
date:
|
|
19
|
+
date: 2010-08-17 00:00:00 +01:00
|
|
13
20
|
default_executable:
|
|
14
|
-
dependencies:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
dependencies:
|
|
22
|
+
- !ruby/object:Gem::Dependency
|
|
23
|
+
name: subexec
|
|
24
|
+
prerelease: false
|
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
26
|
+
none: false
|
|
27
|
+
requirements:
|
|
28
|
+
- - ~>
|
|
29
|
+
- !ruby/object:Gem::Version
|
|
30
|
+
segments:
|
|
31
|
+
- 0
|
|
32
|
+
- 0
|
|
33
|
+
- 4
|
|
34
|
+
version: 0.0.4
|
|
35
|
+
type: :runtime
|
|
36
|
+
version_requirements: *id001
|
|
37
|
+
description: ""
|
|
38
|
+
email:
|
|
39
|
+
- probablycorey@gmail.com
|
|
40
|
+
- peter@nulayer.com
|
|
41
|
+
- hcatlin@gmail.com
|
|
18
42
|
executables: []
|
|
19
43
|
|
|
20
44
|
extensions: []
|
|
21
45
|
|
|
22
|
-
extra_rdoc_files:
|
|
23
|
-
|
|
46
|
+
extra_rdoc_files: []
|
|
47
|
+
|
|
24
48
|
files:
|
|
25
|
-
- .gitignore
|
|
26
|
-
- MIT-LICENSE
|
|
27
49
|
- README.rdoc
|
|
28
|
-
- Rakefile
|
|
29
50
|
- VERSION
|
|
30
|
-
-
|
|
51
|
+
- MIT-LICENSE
|
|
52
|
+
- Rakefile
|
|
53
|
+
- lib/mini_gmagick.rb
|
|
31
54
|
- lib/mini_magick.rb
|
|
32
|
-
- mini_magick.gemspec
|
|
33
55
|
- test/actually_a_gif.jpg
|
|
34
56
|
- test/animation.gif
|
|
35
57
|
- test/command_builder_test.rb
|
|
36
|
-
- test/image_temp_file_test.rb
|
|
37
58
|
- test/image_test.rb
|
|
38
59
|
- test/leaves.tiff
|
|
39
60
|
- test/not_an_image.php
|
|
61
|
+
- test/simple-minus.gif
|
|
40
62
|
- test/simple.gif
|
|
41
63
|
- test/trogdor.jpg
|
|
42
64
|
has_rdoc: true
|
|
43
65
|
homepage: http://github.com/probablycorey/mini_magick
|
|
66
|
+
licenses: []
|
|
67
|
+
|
|
44
68
|
post_install_message:
|
|
45
|
-
rdoc_options:
|
|
46
|
-
|
|
69
|
+
rdoc_options: []
|
|
70
|
+
|
|
47
71
|
require_paths:
|
|
48
72
|
- lib
|
|
49
73
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
|
+
none: false
|
|
50
75
|
requirements:
|
|
51
76
|
- - ">="
|
|
52
77
|
- !ruby/object:Gem::Version
|
|
78
|
+
segments:
|
|
79
|
+
- 0
|
|
53
80
|
version: "0"
|
|
54
|
-
version:
|
|
55
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
|
+
none: false
|
|
56
83
|
requirements:
|
|
57
84
|
- - ">="
|
|
58
85
|
- !ruby/object:Gem::Version
|
|
86
|
+
segments:
|
|
87
|
+
- 0
|
|
59
88
|
version: "0"
|
|
60
|
-
version:
|
|
61
89
|
requirements: []
|
|
62
90
|
|
|
63
|
-
rubyforge_project:
|
|
64
|
-
rubygems_version: 1.3.
|
|
91
|
+
rubyforge_project:
|
|
92
|
+
rubygems_version: 1.3.7
|
|
65
93
|
signing_key:
|
|
66
|
-
specification_version:
|
|
67
|
-
summary: Manipulate images with minimal use of memory
|
|
94
|
+
specification_version: 3
|
|
95
|
+
summary: Manipulate images with minimal use of memory via ImageMagick / GraphicsMagick
|
|
68
96
|
test_files:
|
|
97
|
+
- test/actually_a_gif.jpg
|
|
98
|
+
- test/animation.gif
|
|
69
99
|
- test/command_builder_test.rb
|
|
70
|
-
- test/image_temp_file_test.rb
|
|
71
100
|
- test/image_test.rb
|
|
101
|
+
- test/leaves.tiff
|
|
102
|
+
- test/not_an_image.php
|
|
103
|
+
- test/simple-minus.gif
|
|
104
|
+
- test/simple.gif
|
|
105
|
+
- test/trogdor.jpg
|
data/.gitignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/pkg
|
data/lib/image_temp_file.rb
DELETED
data/mini_magick.gemspec
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
|
2
|
-
|
|
3
|
-
Gem::Specification.new do |s|
|
|
4
|
-
s.name = %q{mini_magick}
|
|
5
|
-
s.version = "1.2.5"
|
|
6
|
-
|
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
8
|
-
s.authors = ["Corey Johnson"]
|
|
9
|
-
s.date = %q{2009-05-27}
|
|
10
|
-
s.email = %q{probablycorey@gmail.com}
|
|
11
|
-
s.extra_rdoc_files = [
|
|
12
|
-
"README.rdoc"
|
|
13
|
-
]
|
|
14
|
-
s.files = [
|
|
15
|
-
".gitignore",
|
|
16
|
-
"MIT-LICENSE",
|
|
17
|
-
"README.rdoc",
|
|
18
|
-
"Rakefile",
|
|
19
|
-
"VERSION",
|
|
20
|
-
"lib/image_temp_file.rb",
|
|
21
|
-
"lib/mini_magick.rb",
|
|
22
|
-
"mini_magick.gemspec",
|
|
23
|
-
"test/actually_a_gif.jpg",
|
|
24
|
-
"test/animation.gif",
|
|
25
|
-
"test/command_builder_test.rb",
|
|
26
|
-
"test/image_temp_file_test.rb",
|
|
27
|
-
"test/image_test.rb",
|
|
28
|
-
"test/leaves.tiff",
|
|
29
|
-
"test/not_an_image.php",
|
|
30
|
-
"test/simple.gif",
|
|
31
|
-
"test/trogdor.jpg"
|
|
32
|
-
]
|
|
33
|
-
s.has_rdoc = true
|
|
34
|
-
s.homepage = %q{http://github.com/probablycorey/mini_magick}
|
|
35
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
|
36
|
-
s.require_paths = ["lib"]
|
|
37
|
-
s.rubyforge_project = %q{mini-magick}
|
|
38
|
-
s.rubygems_version = %q{1.3.1}
|
|
39
|
-
s.summary = %q{Manipulate images with minimal use of memory.}
|
|
40
|
-
s.test_files = [
|
|
41
|
-
"test/command_builder_test.rb",
|
|
42
|
-
"test/image_temp_file_test.rb",
|
|
43
|
-
"test/image_test.rb"
|
|
44
|
-
]
|
|
45
|
-
|
|
46
|
-
if s.respond_to? :specification_version then
|
|
47
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
48
|
-
s.specification_version = 2
|
|
49
|
-
|
|
50
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
51
|
-
else
|
|
52
|
-
end
|
|
53
|
-
else
|
|
54
|
-
end
|
|
55
|
-
end
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
require 'test/unit'
|
|
2
|
-
require File.join(File.dirname(__FILE__), '../lib/image_temp_file')
|
|
3
|
-
|
|
4
|
-
class ImageTempFileTest < Test::Unit::TestCase
|
|
5
|
-
include MiniMagick
|
|
6
|
-
|
|
7
|
-
def test_multiple_calls_yield_different_files
|
|
8
|
-
first = ImageTempFile.new('test')
|
|
9
|
-
second = ImageTempFile.new('test')
|
|
10
|
-
assert_not_equal first.path, second.path
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
def test_temp_file_has_given_extension
|
|
14
|
-
assert_match /^[^.]+\.jpg$/, ImageTempFile.new('jpg').path
|
|
15
|
-
assert_match /^[^.]+\.png$/, ImageTempFile.new('png').path
|
|
16
|
-
end
|
|
17
|
-
end
|