smartimage 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.markdown +11 -0
- data/Rakefile +5 -1
- data/VERSION +1 -1
- data/lib/smart_image/java_canvas.rb +1 -0
- metadata +47 -19
- data/smartimage-java.gemspec +0 -70
- data/smartimage.gemspec +0 -73
data/.gitignore
CHANGED
data/README.markdown
CHANGED
@@ -154,6 +154,17 @@ backend it should implement all methods of SmartImage::BaseCanvas, and if you
|
|
154
154
|
wish to add a new method to either SmartImage or SmartImage::BaseCanvas it
|
155
155
|
should work across all implementations.
|
156
156
|
|
157
|
+
Mailing List, Author Info
|
158
|
+
-------------------------
|
159
|
+
|
160
|
+
You can subscribe to the SmartImage mailing list by sending email to:
|
161
|
+
|
162
|
+
smartimage@librelist.com
|
163
|
+
|
164
|
+
SmartImage was created by Tony Arcieri. You can contact him through
|
165
|
+
github or follow him on Twitter at @bascule. He also frequents
|
166
|
+
IRC on freenode as tarcieri.
|
167
|
+
|
157
168
|
Credits
|
158
169
|
-------
|
159
170
|
|
data/Rakefile
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake'
|
3
3
|
|
4
|
+
def jruby?; !!defined?(JRUBY_VERSION); end
|
5
|
+
|
4
6
|
begin
|
5
7
|
require 'jeweler'
|
6
8
|
Jeweler::Tasks.new do |gem|
|
@@ -16,8 +18,10 @@ begin
|
|
16
18
|
gem.homepage = "http://github.com/tarcieri/smartimage"
|
17
19
|
gem.authors = ["Tony Arcieri"]
|
18
20
|
gem.add_dependency "imagesize", ">= 0.1.1"
|
19
|
-
gem.add_dependency "rmagick", ">= 2.12.2"
|
21
|
+
gem.add_dependency "rmagick", ">= 2.12.2" unless jruby?
|
20
22
|
gem.add_development_dependency "rspec", ">= 1.2.9"
|
23
|
+
gem.platform = "java" if jruby?
|
24
|
+
|
21
25
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
22
26
|
end
|
23
27
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smartimage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 25
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Tony Arcieri
|
@@ -9,39 +15,57 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date: 2010-
|
18
|
+
date: 2010-07-01 00:00:00 -06:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: imagesize
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
20
26
|
requirements:
|
21
27
|
- - ">="
|
22
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 25
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 1
|
33
|
+
- 1
|
23
34
|
version: 0.1.1
|
24
|
-
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
25
37
|
- !ruby/object:Gem::Dependency
|
26
38
|
name: rmagick
|
27
|
-
|
28
|
-
|
29
|
-
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
30
42
|
requirements:
|
31
43
|
- - ">="
|
32
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 59
|
46
|
+
segments:
|
47
|
+
- 2
|
48
|
+
- 12
|
49
|
+
- 2
|
33
50
|
version: 2.12.2
|
34
|
-
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
35
53
|
- !ruby/object:Gem::Dependency
|
36
54
|
name: rspec
|
37
|
-
|
38
|
-
|
39
|
-
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
40
58
|
requirements:
|
41
59
|
- - ">="
|
42
60
|
- !ruby/object:Gem::Version
|
61
|
+
hash: 13
|
62
|
+
segments:
|
63
|
+
- 1
|
64
|
+
- 2
|
65
|
+
- 9
|
43
66
|
version: 1.2.9
|
44
|
-
|
67
|
+
type: :development
|
68
|
+
version_requirements: *id003
|
45
69
|
description: " SmartImage provides a cross-platform solution for image compositing that works on both MRI and JRuby.\n If using RMagick feels like swatting a fly with a nucler missile, and ImageScience just doesn't get \n you there, SmartImage is hopefully at that sweet spot in the middle\n"
|
46
70
|
email: tony@medioh.com
|
47
71
|
executables: []
|
@@ -64,8 +88,6 @@ files:
|
|
64
88
|
- lib/smart_image/ratio_calculator.rb
|
65
89
|
- lib/smart_image/rmagick_canvas.rb
|
66
90
|
- lib/smartimage.rb
|
67
|
-
- smartimage-java.gemspec
|
68
|
-
- smartimage.gemspec
|
69
91
|
- spec/fixtures/mask.png
|
70
92
|
- spec/fixtures/mongoose.jpg
|
71
93
|
- spec/smart_image_spec.rb
|
@@ -82,21 +104,27 @@ rdoc_options:
|
|
82
104
|
require_paths:
|
83
105
|
- lib
|
84
106
|
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
85
108
|
requirements:
|
86
109
|
- - ">="
|
87
110
|
- !ruby/object:Gem::Version
|
111
|
+
hash: 3
|
112
|
+
segments:
|
113
|
+
- 0
|
88
114
|
version: "0"
|
89
|
-
version:
|
90
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
91
117
|
requirements:
|
92
118
|
- - ">="
|
93
119
|
- !ruby/object:Gem::Version
|
120
|
+
hash: 3
|
121
|
+
segments:
|
122
|
+
- 0
|
94
123
|
version: "0"
|
95
|
-
version:
|
96
124
|
requirements: []
|
97
125
|
|
98
126
|
rubyforge_project:
|
99
|
-
rubygems_version: 1.3.
|
127
|
+
rubygems_version: 1.3.7
|
100
128
|
signing_key:
|
101
129
|
specification_version: 3
|
102
130
|
summary: It's like a Swiss Army Knife for images, but one of those tiny ones you can keep on your keychain
|
data/smartimage-java.gemspec
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{smartimage}
|
8
|
-
s.version = "0.0.2"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Tony Arcieri"]
|
12
|
-
s.date = %q{2010-03-30}
|
13
|
-
s.description = %q{ SmartImage provides a cross-platform solution for image compositing that works on both MRI and JRuby.
|
14
|
-
If using RMagick feels like swatting a fly with a nucler missile, and ImageScience just doesn't get
|
15
|
-
you there, SmartImage is hopefully at that sweet spot in the middle
|
16
|
-
}
|
17
|
-
s.email = %q{tony@medioh.com}
|
18
|
-
s.extra_rdoc_files = [
|
19
|
-
"LICENSE",
|
20
|
-
"README.markdown"
|
21
|
-
]
|
22
|
-
s.files = [
|
23
|
-
".document",
|
24
|
-
".gitignore",
|
25
|
-
"LICENSE",
|
26
|
-
"README.markdown",
|
27
|
-
"Rakefile",
|
28
|
-
"VERSION",
|
29
|
-
"lib/smart_image.rb",
|
30
|
-
"lib/smart_image/base_canvas.rb",
|
31
|
-
"lib/smart_image/java_canvas.rb",
|
32
|
-
"lib/smart_image/ratio_calculator.rb",
|
33
|
-
"lib/smart_image/rmagick_canvas.rb",
|
34
|
-
"lib/smartimage.rb",
|
35
|
-
"smartimage-java.gemspec",
|
36
|
-
"smartimage.gemspec",
|
37
|
-
"spec/fixtures/mask.png",
|
38
|
-
"spec/fixtures/mongoose.jpg",
|
39
|
-
"spec/smart_image_spec.rb",
|
40
|
-
"spec/spec.opts",
|
41
|
-
"spec/spec_helper.rb",
|
42
|
-
"spec/tmp/.gitignore"
|
43
|
-
]
|
44
|
-
s.homepage = %q{http://github.com/tarcieri/smartimage}
|
45
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
46
|
-
s.require_paths = ["lib"]
|
47
|
-
s.rubygems_version = %q{1.3.5}
|
48
|
-
s.summary = %q{It's like a Swiss Army Knife for images, but one of those tiny ones you can keep on your keychain}
|
49
|
-
s.test_files = [
|
50
|
-
"spec/smart_image_spec.rb",
|
51
|
-
"spec/spec_helper.rb"
|
52
|
-
]
|
53
|
-
|
54
|
-
if s.respond_to? :specification_version then
|
55
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
56
|
-
s.specification_version = 3
|
57
|
-
|
58
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
59
|
-
s.add_runtime_dependency(%q<imagesize>, [">= 0.1.1"])
|
60
|
-
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
61
|
-
else
|
62
|
-
s.add_dependency(%q<imagesize>, [">= 0.1.1"])
|
63
|
-
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
64
|
-
end
|
65
|
-
else
|
66
|
-
s.add_dependency(%q<imagesize>, [">= 0.1.1"])
|
67
|
-
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
68
|
-
end
|
69
|
-
s.platform = %q{java}
|
70
|
-
end
|
data/smartimage.gemspec
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{smartimage}
|
8
|
-
s.version = "0.0.2"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Tony Arcieri"]
|
12
|
-
s.date = %q{2010-03-30}
|
13
|
-
s.description = %q{ SmartImage provides a cross-platform solution for image compositing that works on both MRI and JRuby.
|
14
|
-
If using RMagick feels like swatting a fly with a nucler missile, and ImageScience just doesn't get
|
15
|
-
you there, SmartImage is hopefully at that sweet spot in the middle
|
16
|
-
}
|
17
|
-
s.email = %q{tony@medioh.com}
|
18
|
-
s.extra_rdoc_files = [
|
19
|
-
"LICENSE",
|
20
|
-
"README.markdown"
|
21
|
-
]
|
22
|
-
s.files = [
|
23
|
-
".document",
|
24
|
-
".gitignore",
|
25
|
-
"LICENSE",
|
26
|
-
"README.markdown",
|
27
|
-
"Rakefile",
|
28
|
-
"VERSION",
|
29
|
-
"lib/smart_image.rb",
|
30
|
-
"lib/smart_image/base_canvas.rb",
|
31
|
-
"lib/smart_image/java_canvas.rb",
|
32
|
-
"lib/smart_image/ratio_calculator.rb",
|
33
|
-
"lib/smart_image/rmagick_canvas.rb",
|
34
|
-
"lib/smartimage.rb",
|
35
|
-
"smartimage-java.gemspec",
|
36
|
-
"smartimage.gemspec",
|
37
|
-
"spec/fixtures/mask.png",
|
38
|
-
"spec/fixtures/mongoose.jpg",
|
39
|
-
"spec/smart_image_spec.rb",
|
40
|
-
"spec/spec.opts",
|
41
|
-
"spec/spec_helper.rb",
|
42
|
-
"spec/tmp/.gitignore"
|
43
|
-
]
|
44
|
-
s.homepage = %q{http://github.com/tarcieri/smartimage}
|
45
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
46
|
-
s.require_paths = ["lib"]
|
47
|
-
s.rubygems_version = %q{1.3.5}
|
48
|
-
s.summary = %q{It's like a Swiss Army Knife for images, but one of those tiny ones you can keep on your keychain}
|
49
|
-
s.test_files = [
|
50
|
-
"spec/smart_image_spec.rb",
|
51
|
-
"spec/spec_helper.rb"
|
52
|
-
]
|
53
|
-
|
54
|
-
if s.respond_to? :specification_version then
|
55
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
56
|
-
s.specification_version = 3
|
57
|
-
|
58
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
59
|
-
s.add_runtime_dependency(%q<imagesize>, [">= 0.1.1"])
|
60
|
-
s.add_runtime_dependency(%q<rmagick>, [">= 2.12.2"])
|
61
|
-
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
62
|
-
else
|
63
|
-
s.add_dependency(%q<imagesize>, [">= 0.1.1"])
|
64
|
-
s.add_dependency(%q<rmagick>, [">= 2.12.2"])
|
65
|
-
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
66
|
-
end
|
67
|
-
else
|
68
|
-
s.add_dependency(%q<imagesize>, [">= 0.1.1"])
|
69
|
-
s.add_dependency(%q<rmagick>, [">= 2.12.2"])
|
70
|
-
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|