tvdeyen-fleximage 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. data/CHANGELOG.rdoc +14 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +36 -0
  4. data/Rakefile +49 -0
  5. data/VERSION +1 -0
  6. data/autotest.rb +5 -0
  7. data/init.rb +1 -0
  8. data/lib/dsl_accessor.rb +52 -0
  9. data/lib/fleximage.rb +59 -0
  10. data/lib/fleximage/aviary_controller.rb +75 -0
  11. data/lib/fleximage/blank.rb +70 -0
  12. data/lib/fleximage/helper.rb +41 -0
  13. data/lib/fleximage/image_proxy.rb +69 -0
  14. data/lib/fleximage/legacy_view.rb +63 -0
  15. data/lib/fleximage/model.rb +713 -0
  16. data/lib/fleximage/operator/background.rb +62 -0
  17. data/lib/fleximage/operator/base.rb +189 -0
  18. data/lib/fleximage/operator/border.rb +50 -0
  19. data/lib/fleximage/operator/crop.rb +58 -0
  20. data/lib/fleximage/operator/image_overlay.rb +85 -0
  21. data/lib/fleximage/operator/resize.rb +92 -0
  22. data/lib/fleximage/operator/shadow.rb +87 -0
  23. data/lib/fleximage/operator/text.rb +104 -0
  24. data/lib/fleximage/operator/trim.rb +14 -0
  25. data/lib/fleximage/operator/unsharp_mask.rb +36 -0
  26. data/lib/fleximage/rails3_view.rb +31 -0
  27. data/lib/fleximage/rmagick_image_patch.rb +7 -0
  28. data/lib/fleximage/view.rb +57 -0
  29. data/lib/tasks/fleximage_tasks.rake +154 -0
  30. data/test/fixtures/100x1.jpg +0 -0
  31. data/test/fixtures/100x100.jpg +0 -0
  32. data/test/fixtures/1x1.jpg +0 -0
  33. data/test/fixtures/1x100.jpg +0 -0
  34. data/test/fixtures/cmyk.jpg +0 -0
  35. data/test/fixtures/not_a_photo.xml +1 -0
  36. data/test/fixtures/photo.jpg +0 -0
  37. data/test/mock_file.rb +21 -0
  38. data/test/rails_root/app/controllers/application.rb +10 -0
  39. data/test/rails_root/app/controllers/avatars_controller.rb +85 -0
  40. data/test/rails_root/app/controllers/photo_bares_controller.rb +85 -0
  41. data/test/rails_root/app/controllers/photo_dbs_controller.rb +85 -0
  42. data/test/rails_root/app/controllers/photo_files_controller.rb +85 -0
  43. data/test/rails_root/app/helpers/application_helper.rb +3 -0
  44. data/test/rails_root/app/helpers/avatars_helper.rb +2 -0
  45. data/test/rails_root/app/helpers/photo_bares_helper.rb +2 -0
  46. data/test/rails_root/app/helpers/photo_dbs_helper.rb +2 -0
  47. data/test/rails_root/app/helpers/photo_files_helper.rb +2 -0
  48. data/test/rails_root/app/locales/de.yml +7 -0
  49. data/test/rails_root/app/locales/en.yml +8 -0
  50. data/test/rails_root/app/models/abstract.rb +8 -0
  51. data/test/rails_root/app/models/avatar.rb +4 -0
  52. data/test/rails_root/app/models/photo_bare.rb +7 -0
  53. data/test/rails_root/app/models/photo_custom_error.rb +10 -0
  54. data/test/rails_root/app/models/photo_db.rb +3 -0
  55. data/test/rails_root/app/models/photo_file.rb +3 -0
  56. data/test/rails_root/app/models/photo_s3.rb +5 -0
  57. data/test/rails_root/app/views/avatars/edit.html.erb +17 -0
  58. data/test/rails_root/app/views/avatars/index.html.erb +20 -0
  59. data/test/rails_root/app/views/avatars/new.html.erb +16 -0
  60. data/test/rails_root/app/views/avatars/show.html.erb +8 -0
  61. data/test/rails_root/app/views/layouts/avatars.html.erb +17 -0
  62. data/test/rails_root/app/views/layouts/photo_bares.html.erb +17 -0
  63. data/test/rails_root/app/views/layouts/photo_dbs.html.erb +17 -0
  64. data/test/rails_root/app/views/layouts/photo_files.html.erb +17 -0
  65. data/test/rails_root/app/views/photo_bares/edit.html.erb +12 -0
  66. data/test/rails_root/app/views/photo_bares/index.html.erb +18 -0
  67. data/test/rails_root/app/views/photo_bares/new.html.erb +11 -0
  68. data/test/rails_root/app/views/photo_bares/show.html.erb +3 -0
  69. data/test/rails_root/app/views/photo_dbs/edit.html.erb +32 -0
  70. data/test/rails_root/app/views/photo_dbs/index.html.erb +26 -0
  71. data/test/rails_root/app/views/photo_dbs/new.html.erb +31 -0
  72. data/test/rails_root/app/views/photo_dbs/show.html.erb +23 -0
  73. data/test/rails_root/app/views/photo_files/edit.html.erb +27 -0
  74. data/test/rails_root/app/views/photo_files/index.html.erb +24 -0
  75. data/test/rails_root/app/views/photo_files/new.html.erb +26 -0
  76. data/test/rails_root/app/views/photo_files/show.html.erb +18 -0
  77. data/test/rails_root/config/boot.rb +109 -0
  78. data/test/rails_root/config/database.yml +7 -0
  79. data/test/rails_root/config/environment.rb +66 -0
  80. data/test/rails_root/config/environments/development.rb +18 -0
  81. data/test/rails_root/config/environments/production.rb +19 -0
  82. data/test/rails_root/config/environments/sqlite3.rb +0 -0
  83. data/test/rails_root/config/environments/test.rb +22 -0
  84. data/test/rails_root/config/initializers/inflections.rb +10 -0
  85. data/test/rails_root/config/initializers/load_translations.rb +4 -0
  86. data/test/rails_root/config/initializers/mime_types.rb +5 -0
  87. data/test/rails_root/config/routes.rb +43 -0
  88. data/test/rails_root/db/migrate/001_create_photo_files.rb +16 -0
  89. data/test/rails_root/db/migrate/002_create_photo_dbs.rb +16 -0
  90. data/test/rails_root/db/migrate/003_create_photo_bares.rb +12 -0
  91. data/test/rails_root/db/migrate/004_create_avatars.rb +13 -0
  92. data/test/rails_root/db/migrate/005_create_photo_s3s.rb +12 -0
  93. data/test/rails_root/public/.htaccess +40 -0
  94. data/test/rails_root/public/404.html +30 -0
  95. data/test/rails_root/public/422.html +30 -0
  96. data/test/rails_root/public/500.html +30 -0
  97. data/test/rails_root/public/dispatch.cgi +10 -0
  98. data/test/rails_root/public/dispatch.fcgi +24 -0
  99. data/test/rails_root/public/dispatch.rb +10 -0
  100. data/test/rails_root/public/favicon.ico +0 -0
  101. data/test/rails_root/public/images/rails.png +0 -0
  102. data/test/rails_root/public/index.html +277 -0
  103. data/test/rails_root/public/javascripts/application.js +2 -0
  104. data/test/rails_root/public/javascripts/controls.js +963 -0
  105. data/test/rails_root/public/javascripts/dragdrop.js +972 -0
  106. data/test/rails_root/public/javascripts/effects.js +1120 -0
  107. data/test/rails_root/public/javascripts/prototype.js +4225 -0
  108. data/test/rails_root/public/robots.txt +5 -0
  109. data/test/rails_root/public/stylesheets/scaffold.css +74 -0
  110. data/test/rails_root/vendor/plugins/fleximage/init.rb +2 -0
  111. data/test/s3_stubs.rb +7 -0
  112. data/test/test_helper.rb +82 -0
  113. data/test/unit/abstract_test.rb +20 -0
  114. data/test/unit/basic_model_test.rb +40 -0
  115. data/test/unit/blank_test.rb +23 -0
  116. data/test/unit/default_image_path_option_test.rb +16 -0
  117. data/test/unit/dsl_accessor_test.rb +120 -0
  118. data/test/unit/file_upload_from_local_test.rb +31 -0
  119. data/test/unit/file_upload_from_strings_test.rb +23 -0
  120. data/test/unit/file_upload_from_url_test.rb +35 -0
  121. data/test/unit/file_upload_to_db_test.rb +41 -0
  122. data/test/unit/has_store_test.rb +4 -0
  123. data/test/unit/i18n_messages_test.rb +49 -0
  124. data/test/unit/image_directory_option_test.rb +20 -0
  125. data/test/unit/image_proxy_test.rb +17 -0
  126. data/test/unit/image_storage_format_option_test.rb +31 -0
  127. data/test/unit/magic_columns_test.rb +34 -0
  128. data/test/unit/minimum_image_size_test.rb +56 -0
  129. data/test/unit/operator_base_test.rb +124 -0
  130. data/test/unit/operator_resize_test.rb +18 -0
  131. data/test/unit/preprocess_image_option_test.rb +21 -0
  132. data/test/unit/require_image_option_test.rb +30 -0
  133. data/test/unit/temp_image_test.rb +23 -0
  134. data/test/unit/use_creation_date_based_directories_option_test.rb +16 -0
  135. data/tvdeyen-fleximage.gemspec +180 -0
  136. metadata +244 -0
@@ -0,0 +1,30 @@
1
+ require File.dirname(__FILE__) + '/../../test/test_helper'
2
+
3
+ class ValidatedPhoto < ActiveRecord::Base
4
+ set_table_name :photo_dbs
5
+ acts_as_fleximage
6
+
7
+ def validate
8
+ # overiding the validate method
9
+ end
10
+ end
11
+
12
+ class FleximageRequireImageOptionTest < Test::Unit::TestCase
13
+ def test_should_require_image_by_default
14
+ p = PhotoBare.new
15
+ assert !p.save, 'Record expected to not be allowed to save'
16
+ end
17
+
18
+ def test_should_disable_image_requirement
19
+ PhotoBare.require_image = false
20
+ p = PhotoBare.new
21
+ assert p.save, 'Record expected to be allowed to save'
22
+ ensure
23
+ PhotoBare.require_image = true
24
+ end
25
+
26
+ def test_should_require_image_when_validate_is_overriden
27
+ p = ValidatedPhoto.new
28
+ assert !p.save, 'Record expected to not be allowed to save'
29
+ end
30
+ end
@@ -0,0 +1,23 @@
1
+ require File.dirname(__FILE__) + '/../../test/test_helper'
2
+
3
+ class FleximageTempImageTest < Test::Unit::TestCase
4
+ def test_should_save_and_use_a_temp_image
5
+ a1 = Avatar.new(:image_file => files(:photo))
6
+ assert !a1.save
7
+ assert_match /^\d+_\d+$/, a1.image_file_temp
8
+ assert File.exists?("#{Rails.root}/tmp/fleximage/#{a1.image_file_temp}")
9
+ temp_file_path = a1.image_file_temp
10
+
11
+ a2 = Avatar.new(:username => 'Alex Wayne', :image_file_temp => temp_file_path)
12
+
13
+ assert a2.save
14
+ assert File.exists?(a2.file_path)
15
+ assert !File.exists?("#{Rails.root}/tmp/fleximage/#{temp_file_path}")
16
+ end
17
+
18
+ def test_should_prevent_directory_traversal_attacks
19
+ a1 = Avatar.new(:image_file_temp => '../fleximage/photo.jpg')
20
+ assert !a1.save
21
+ assert_equal nil, a1.image_file_temp
22
+ end
23
+ end
@@ -0,0 +1,16 @@
1
+ require File.dirname(__FILE__) + '/../../test/test_helper'
2
+
3
+ class FleximageUseCreationDateBasedDirectoriesOptionTest < Test::Unit::TestCase
4
+ def test_should_store_images_with_creation_date_based_directories
5
+ p = PhotoBare.create(:image_file => files(:photo))
6
+ assert_match %r{public/uploads/\d+/\d+/\d+/\d+}, p.file_path
7
+ end
8
+
9
+ def test_should_store_images_without_creation_date_based_directories
10
+ PhotoBare.use_creation_date_based_directories = false
11
+ p = PhotoBare.create(:image_file => files(:photo))
12
+ assert_no_match %r{public/uploads/\d+/\d+/\d+/\d+}, p.file_path
13
+ ensure
14
+ PhotoBare.use_creation_date_based_directories = true
15
+ end
16
+ end
@@ -0,0 +1,180 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{tvdeyen-fleximage}
8
+ s.version = "1.0.5"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Ahmed Adam", "Alex Wayne", "Andrew White", "Duccio", "Heiner Wohner", "JJ Buckley", "Jason Lee", "Joshua Abbott", "Koji Ando", "Kouhei Sutou", "Lasse Jansen", "Loïc Guitaut", "Martin Vielsmaier", "Squeegy", "Thomas von Deyen", "Vannoy", "Wolfgang Klinger", "Wolfgang Kölbl", "josei", "ralph"]
12
+ s.date = %q{2011-05-22}
13
+ s.description = %q{Fleximage is a Rails plugin that tries to make image uploading and rendering
14
+ super easy.
15
+ }
16
+ s.email = %q{tvdeyen@gmail.com}
17
+ s.extra_rdoc_files = [
18
+ "README.rdoc"
19
+ ]
20
+ s.files = [
21
+ "CHANGELOG.rdoc",
22
+ "MIT-LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "autotest.rb",
27
+ "init.rb",
28
+ "lib/dsl_accessor.rb",
29
+ "lib/fleximage.rb",
30
+ "lib/fleximage/aviary_controller.rb",
31
+ "lib/fleximage/blank.rb",
32
+ "lib/fleximage/helper.rb",
33
+ "lib/fleximage/image_proxy.rb",
34
+ "lib/fleximage/legacy_view.rb",
35
+ "lib/fleximage/model.rb",
36
+ "lib/fleximage/operator/background.rb",
37
+ "lib/fleximage/operator/base.rb",
38
+ "lib/fleximage/operator/border.rb",
39
+ "lib/fleximage/operator/crop.rb",
40
+ "lib/fleximage/operator/image_overlay.rb",
41
+ "lib/fleximage/operator/resize.rb",
42
+ "lib/fleximage/operator/shadow.rb",
43
+ "lib/fleximage/operator/text.rb",
44
+ "lib/fleximage/operator/trim.rb",
45
+ "lib/fleximage/operator/unsharp_mask.rb",
46
+ "lib/fleximage/rails3_view.rb",
47
+ "lib/fleximage/rmagick_image_patch.rb",
48
+ "lib/fleximage/view.rb",
49
+ "lib/tasks/fleximage_tasks.rake",
50
+ "test/fixtures/100x1.jpg",
51
+ "test/fixtures/100x100.jpg",
52
+ "test/fixtures/1x1.jpg",
53
+ "test/fixtures/1x100.jpg",
54
+ "test/fixtures/cmyk.jpg",
55
+ "test/fixtures/not_a_photo.xml",
56
+ "test/fixtures/photo.jpg",
57
+ "test/mock_file.rb",
58
+ "test/rails_root/app/controllers/application.rb",
59
+ "test/rails_root/app/controllers/avatars_controller.rb",
60
+ "test/rails_root/app/controllers/photo_bares_controller.rb",
61
+ "test/rails_root/app/controllers/photo_dbs_controller.rb",
62
+ "test/rails_root/app/controllers/photo_files_controller.rb",
63
+ "test/rails_root/app/helpers/application_helper.rb",
64
+ "test/rails_root/app/helpers/avatars_helper.rb",
65
+ "test/rails_root/app/helpers/photo_bares_helper.rb",
66
+ "test/rails_root/app/helpers/photo_dbs_helper.rb",
67
+ "test/rails_root/app/helpers/photo_files_helper.rb",
68
+ "test/rails_root/app/locales/de.yml",
69
+ "test/rails_root/app/locales/en.yml",
70
+ "test/rails_root/app/models/abstract.rb",
71
+ "test/rails_root/app/models/avatar.rb",
72
+ "test/rails_root/app/models/photo_bare.rb",
73
+ "test/rails_root/app/models/photo_custom_error.rb",
74
+ "test/rails_root/app/models/photo_db.rb",
75
+ "test/rails_root/app/models/photo_file.rb",
76
+ "test/rails_root/app/models/photo_s3.rb",
77
+ "test/rails_root/app/views/avatars/edit.html.erb",
78
+ "test/rails_root/app/views/avatars/index.html.erb",
79
+ "test/rails_root/app/views/avatars/new.html.erb",
80
+ "test/rails_root/app/views/avatars/show.html.erb",
81
+ "test/rails_root/app/views/layouts/avatars.html.erb",
82
+ "test/rails_root/app/views/layouts/photo_bares.html.erb",
83
+ "test/rails_root/app/views/layouts/photo_dbs.html.erb",
84
+ "test/rails_root/app/views/layouts/photo_files.html.erb",
85
+ "test/rails_root/app/views/photo_bares/edit.html.erb",
86
+ "test/rails_root/app/views/photo_bares/index.html.erb",
87
+ "test/rails_root/app/views/photo_bares/new.html.erb",
88
+ "test/rails_root/app/views/photo_bares/show.html.erb",
89
+ "test/rails_root/app/views/photo_dbs/edit.html.erb",
90
+ "test/rails_root/app/views/photo_dbs/index.html.erb",
91
+ "test/rails_root/app/views/photo_dbs/new.html.erb",
92
+ "test/rails_root/app/views/photo_dbs/show.html.erb",
93
+ "test/rails_root/app/views/photo_files/edit.html.erb",
94
+ "test/rails_root/app/views/photo_files/index.html.erb",
95
+ "test/rails_root/app/views/photo_files/new.html.erb",
96
+ "test/rails_root/app/views/photo_files/show.html.erb",
97
+ "test/rails_root/config/boot.rb",
98
+ "test/rails_root/config/database.yml",
99
+ "test/rails_root/config/environment.rb",
100
+ "test/rails_root/config/environments/development.rb",
101
+ "test/rails_root/config/environments/production.rb",
102
+ "test/rails_root/config/environments/sqlite3.rb",
103
+ "test/rails_root/config/environments/test.rb",
104
+ "test/rails_root/config/initializers/inflections.rb",
105
+ "test/rails_root/config/initializers/load_translations.rb",
106
+ "test/rails_root/config/initializers/mime_types.rb",
107
+ "test/rails_root/config/routes.rb",
108
+ "test/rails_root/db/migrate/001_create_photo_files.rb",
109
+ "test/rails_root/db/migrate/002_create_photo_dbs.rb",
110
+ "test/rails_root/db/migrate/003_create_photo_bares.rb",
111
+ "test/rails_root/db/migrate/004_create_avatars.rb",
112
+ "test/rails_root/db/migrate/005_create_photo_s3s.rb",
113
+ "test/rails_root/public/.htaccess",
114
+ "test/rails_root/public/404.html",
115
+ "test/rails_root/public/422.html",
116
+ "test/rails_root/public/500.html",
117
+ "test/rails_root/public/dispatch.cgi",
118
+ "test/rails_root/public/dispatch.fcgi",
119
+ "test/rails_root/public/dispatch.rb",
120
+ "test/rails_root/public/favicon.ico",
121
+ "test/rails_root/public/images/rails.png",
122
+ "test/rails_root/public/index.html",
123
+ "test/rails_root/public/javascripts/application.js",
124
+ "test/rails_root/public/javascripts/controls.js",
125
+ "test/rails_root/public/javascripts/dragdrop.js",
126
+ "test/rails_root/public/javascripts/effects.js",
127
+ "test/rails_root/public/javascripts/prototype.js",
128
+ "test/rails_root/public/robots.txt",
129
+ "test/rails_root/public/stylesheets/scaffold.css",
130
+ "test/rails_root/vendor/plugins/fleximage/init.rb",
131
+ "test/s3_stubs.rb",
132
+ "test/test_helper.rb",
133
+ "test/unit/abstract_test.rb",
134
+ "test/unit/basic_model_test.rb",
135
+ "test/unit/blank_test.rb",
136
+ "test/unit/default_image_path_option_test.rb",
137
+ "test/unit/dsl_accessor_test.rb",
138
+ "test/unit/file_upload_from_local_test.rb",
139
+ "test/unit/file_upload_from_strings_test.rb",
140
+ "test/unit/file_upload_from_url_test.rb",
141
+ "test/unit/file_upload_to_db_test.rb",
142
+ "test/unit/has_store_test.rb",
143
+ "test/unit/i18n_messages_test.rb",
144
+ "test/unit/image_directory_option_test.rb",
145
+ "test/unit/image_proxy_test.rb",
146
+ "test/unit/image_storage_format_option_test.rb",
147
+ "test/unit/magic_columns_test.rb",
148
+ "test/unit/minimum_image_size_test.rb",
149
+ "test/unit/operator_base_test.rb",
150
+ "test/unit/operator_resize_test.rb",
151
+ "test/unit/preprocess_image_option_test.rb",
152
+ "test/unit/require_image_option_test.rb",
153
+ "test/unit/temp_image_test.rb",
154
+ "test/unit/use_creation_date_based_directories_option_test.rb",
155
+ "tvdeyen-fleximage.gemspec"
156
+ ]
157
+ s.homepage = %q{http://github.com/tvdeyen/fleximage}
158
+ s.require_paths = ["lib"]
159
+ s.rubygems_version = %q{1.6.2}
160
+ s.summary = %q{Rails plugin for uploading images as resources, with support for resizing, text stamping, and other special effects.}
161
+
162
+ if s.respond_to? :specification_version then
163
+ s.specification_version = 3
164
+
165
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
166
+ s.add_runtime_dependency(%q<rmagick>, [">= 0"])
167
+ s.add_runtime_dependency(%q<aws-s3>, [">= 0"])
168
+ s.add_development_dependency(%q<rails>, [">= 3.0.0"])
169
+ else
170
+ s.add_dependency(%q<rmagick>, [">= 0"])
171
+ s.add_dependency(%q<aws-s3>, [">= 0"])
172
+ s.add_dependency(%q<rails>, [">= 3.0.0"])
173
+ end
174
+ else
175
+ s.add_dependency(%q<rmagick>, [">= 0"])
176
+ s.add_dependency(%q<aws-s3>, [">= 0"])
177
+ s.add_dependency(%q<rails>, [">= 3.0.0"])
178
+ end
179
+ end
180
+
metadata ADDED
@@ -0,0 +1,244 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tvdeyen-fleximage
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 1.0.5
6
+ platform: ruby
7
+ authors:
8
+ - Ahmed Adam
9
+ - Alex Wayne
10
+ - Andrew White
11
+ - Duccio
12
+ - Heiner Wohner
13
+ - JJ Buckley
14
+ - Jason Lee
15
+ - Joshua Abbott
16
+ - Koji Ando
17
+ - Kouhei Sutou
18
+ - Lasse Jansen
19
+ - "Lo\xC3\xAFc Guitaut"
20
+ - Martin Vielsmaier
21
+ - Squeegy
22
+ - Thomas von Deyen
23
+ - Vannoy
24
+ - Wolfgang Klinger
25
+ - "Wolfgang K\xC3\xB6lbl"
26
+ - josei
27
+ - ralph
28
+ autorequire:
29
+ bindir: bin
30
+ cert_chain: []
31
+
32
+ date: 2011-05-22 00:00:00 +02:00
33
+ default_executable:
34
+ dependencies:
35
+ - !ruby/object:Gem::Dependency
36
+ name: rmagick
37
+ prerelease: false
38
+ requirement: &id001 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ type: :runtime
45
+ version_requirements: *id001
46
+ - !ruby/object:Gem::Dependency
47
+ name: aws-s3
48
+ prerelease: false
49
+ requirement: &id002 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: "0"
55
+ type: :runtime
56
+ version_requirements: *id002
57
+ - !ruby/object:Gem::Dependency
58
+ name: rails
59
+ prerelease: false
60
+ requirement: &id003 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: 3.0.0
66
+ type: :development
67
+ version_requirements: *id003
68
+ description: |
69
+ Fleximage is a Rails plugin that tries to make image uploading and rendering
70
+ super easy.
71
+
72
+ email: tvdeyen@gmail.com
73
+ executables: []
74
+
75
+ extensions: []
76
+
77
+ extra_rdoc_files:
78
+ - README.rdoc
79
+ files:
80
+ - CHANGELOG.rdoc
81
+ - MIT-LICENSE
82
+ - README.rdoc
83
+ - Rakefile
84
+ - VERSION
85
+ - autotest.rb
86
+ - init.rb
87
+ - lib/dsl_accessor.rb
88
+ - lib/fleximage.rb
89
+ - lib/fleximage/aviary_controller.rb
90
+ - lib/fleximage/blank.rb
91
+ - lib/fleximage/helper.rb
92
+ - lib/fleximage/image_proxy.rb
93
+ - lib/fleximage/legacy_view.rb
94
+ - lib/fleximage/model.rb
95
+ - lib/fleximage/operator/background.rb
96
+ - lib/fleximage/operator/base.rb
97
+ - lib/fleximage/operator/border.rb
98
+ - lib/fleximage/operator/crop.rb
99
+ - lib/fleximage/operator/image_overlay.rb
100
+ - lib/fleximage/operator/resize.rb
101
+ - lib/fleximage/operator/shadow.rb
102
+ - lib/fleximage/operator/text.rb
103
+ - lib/fleximage/operator/trim.rb
104
+ - lib/fleximage/operator/unsharp_mask.rb
105
+ - lib/fleximage/rails3_view.rb
106
+ - lib/fleximage/rmagick_image_patch.rb
107
+ - lib/fleximage/view.rb
108
+ - lib/tasks/fleximage_tasks.rake
109
+ - test/fixtures/100x1.jpg
110
+ - test/fixtures/100x100.jpg
111
+ - test/fixtures/1x1.jpg
112
+ - test/fixtures/1x100.jpg
113
+ - test/fixtures/cmyk.jpg
114
+ - test/fixtures/not_a_photo.xml
115
+ - test/fixtures/photo.jpg
116
+ - test/mock_file.rb
117
+ - test/rails_root/app/controllers/application.rb
118
+ - test/rails_root/app/controllers/avatars_controller.rb
119
+ - test/rails_root/app/controllers/photo_bares_controller.rb
120
+ - test/rails_root/app/controllers/photo_dbs_controller.rb
121
+ - test/rails_root/app/controllers/photo_files_controller.rb
122
+ - test/rails_root/app/helpers/application_helper.rb
123
+ - test/rails_root/app/helpers/avatars_helper.rb
124
+ - test/rails_root/app/helpers/photo_bares_helper.rb
125
+ - test/rails_root/app/helpers/photo_dbs_helper.rb
126
+ - test/rails_root/app/helpers/photo_files_helper.rb
127
+ - test/rails_root/app/locales/de.yml
128
+ - test/rails_root/app/locales/en.yml
129
+ - test/rails_root/app/models/abstract.rb
130
+ - test/rails_root/app/models/avatar.rb
131
+ - test/rails_root/app/models/photo_bare.rb
132
+ - test/rails_root/app/models/photo_custom_error.rb
133
+ - test/rails_root/app/models/photo_db.rb
134
+ - test/rails_root/app/models/photo_file.rb
135
+ - test/rails_root/app/models/photo_s3.rb
136
+ - test/rails_root/app/views/avatars/edit.html.erb
137
+ - test/rails_root/app/views/avatars/index.html.erb
138
+ - test/rails_root/app/views/avatars/new.html.erb
139
+ - test/rails_root/app/views/avatars/show.html.erb
140
+ - test/rails_root/app/views/layouts/avatars.html.erb
141
+ - test/rails_root/app/views/layouts/photo_bares.html.erb
142
+ - test/rails_root/app/views/layouts/photo_dbs.html.erb
143
+ - test/rails_root/app/views/layouts/photo_files.html.erb
144
+ - test/rails_root/app/views/photo_bares/edit.html.erb
145
+ - test/rails_root/app/views/photo_bares/index.html.erb
146
+ - test/rails_root/app/views/photo_bares/new.html.erb
147
+ - test/rails_root/app/views/photo_bares/show.html.erb
148
+ - test/rails_root/app/views/photo_dbs/edit.html.erb
149
+ - test/rails_root/app/views/photo_dbs/index.html.erb
150
+ - test/rails_root/app/views/photo_dbs/new.html.erb
151
+ - test/rails_root/app/views/photo_dbs/show.html.erb
152
+ - test/rails_root/app/views/photo_files/edit.html.erb
153
+ - test/rails_root/app/views/photo_files/index.html.erb
154
+ - test/rails_root/app/views/photo_files/new.html.erb
155
+ - test/rails_root/app/views/photo_files/show.html.erb
156
+ - test/rails_root/config/boot.rb
157
+ - test/rails_root/config/database.yml
158
+ - test/rails_root/config/environment.rb
159
+ - test/rails_root/config/environments/development.rb
160
+ - test/rails_root/config/environments/production.rb
161
+ - test/rails_root/config/environments/sqlite3.rb
162
+ - test/rails_root/config/environments/test.rb
163
+ - test/rails_root/config/initializers/inflections.rb
164
+ - test/rails_root/config/initializers/load_translations.rb
165
+ - test/rails_root/config/initializers/mime_types.rb
166
+ - test/rails_root/config/routes.rb
167
+ - test/rails_root/db/migrate/001_create_photo_files.rb
168
+ - test/rails_root/db/migrate/002_create_photo_dbs.rb
169
+ - test/rails_root/db/migrate/003_create_photo_bares.rb
170
+ - test/rails_root/db/migrate/004_create_avatars.rb
171
+ - test/rails_root/db/migrate/005_create_photo_s3s.rb
172
+ - test/rails_root/public/.htaccess
173
+ - test/rails_root/public/404.html
174
+ - test/rails_root/public/422.html
175
+ - test/rails_root/public/500.html
176
+ - test/rails_root/public/dispatch.cgi
177
+ - test/rails_root/public/dispatch.fcgi
178
+ - test/rails_root/public/dispatch.rb
179
+ - test/rails_root/public/favicon.ico
180
+ - test/rails_root/public/images/rails.png
181
+ - test/rails_root/public/index.html
182
+ - test/rails_root/public/javascripts/application.js
183
+ - test/rails_root/public/javascripts/controls.js
184
+ - test/rails_root/public/javascripts/dragdrop.js
185
+ - test/rails_root/public/javascripts/effects.js
186
+ - test/rails_root/public/javascripts/prototype.js
187
+ - test/rails_root/public/robots.txt
188
+ - test/rails_root/public/stylesheets/scaffold.css
189
+ - test/rails_root/vendor/plugins/fleximage/init.rb
190
+ - test/s3_stubs.rb
191
+ - test/test_helper.rb
192
+ - test/unit/abstract_test.rb
193
+ - test/unit/basic_model_test.rb
194
+ - test/unit/blank_test.rb
195
+ - test/unit/default_image_path_option_test.rb
196
+ - test/unit/dsl_accessor_test.rb
197
+ - test/unit/file_upload_from_local_test.rb
198
+ - test/unit/file_upload_from_strings_test.rb
199
+ - test/unit/file_upload_from_url_test.rb
200
+ - test/unit/file_upload_to_db_test.rb
201
+ - test/unit/has_store_test.rb
202
+ - test/unit/i18n_messages_test.rb
203
+ - test/unit/image_directory_option_test.rb
204
+ - test/unit/image_proxy_test.rb
205
+ - test/unit/image_storage_format_option_test.rb
206
+ - test/unit/magic_columns_test.rb
207
+ - test/unit/minimum_image_size_test.rb
208
+ - test/unit/operator_base_test.rb
209
+ - test/unit/operator_resize_test.rb
210
+ - test/unit/preprocess_image_option_test.rb
211
+ - test/unit/require_image_option_test.rb
212
+ - test/unit/temp_image_test.rb
213
+ - test/unit/use_creation_date_based_directories_option_test.rb
214
+ - tvdeyen-fleximage.gemspec
215
+ has_rdoc: true
216
+ homepage: http://github.com/tvdeyen/fleximage
217
+ licenses: []
218
+
219
+ post_install_message:
220
+ rdoc_options: []
221
+
222
+ require_paths:
223
+ - lib
224
+ required_ruby_version: !ruby/object:Gem::Requirement
225
+ none: false
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: "0"
230
+ required_rubygems_version: !ruby/object:Gem::Requirement
231
+ none: false
232
+ requirements:
233
+ - - ">="
234
+ - !ruby/object:Gem::Version
235
+ version: "0"
236
+ requirements: []
237
+
238
+ rubyforge_project:
239
+ rubygems_version: 1.6.2
240
+ signing_key:
241
+ specification_version: 3
242
+ summary: Rails plugin for uploading images as resources, with support for resizing, text stamping, and other special effects.
243
+ test_files: []
244
+