dsturnbull-carrierwave 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Generators +4 -0
- data/History.txt +118 -0
- data/Manifest.txt +107 -0
- data/README.rdoc +502 -0
- data/Rakefile +38 -0
- data/cucumber.yml +2 -0
- data/features/caching.feature +28 -0
- data/features/download.feature +20 -0
- data/features/file_storage.feature +37 -0
- data/features/file_storage_overridden_filename.feature +38 -0
- data/features/file_storage_overridden_store_dir.feature +38 -0
- data/features/file_storage_reversing_processor.feature +43 -0
- data/features/fixtures/bork.txt +1 -0
- data/features/fixtures/monkey.txt +1 -0
- data/features/grid_fs_storage.feature +32 -0
- data/features/mount_activerecord.feature +46 -0
- data/features/mount_datamapper.feature +46 -0
- data/features/step_definitions/activerecord_steps.rb +22 -0
- data/features/step_definitions/caching_steps.rb +14 -0
- data/features/step_definitions/datamapper_steps.rb +29 -0
- data/features/step_definitions/download_steps.rb +4 -0
- data/features/step_definitions/file_steps.rb +53 -0
- data/features/step_definitions/general_steps.rb +85 -0
- data/features/step_definitions/mount_steps.rb +19 -0
- data/features/step_definitions/store_steps.rb +18 -0
- data/features/support/activerecord.rb +30 -0
- data/features/support/datamapper.rb +7 -0
- data/features/support/env.rb +22 -0
- data/features/versions_basics.feature +50 -0
- data/features/versions_nested_versions.feature +70 -0
- data/features/versions_overridden_filename.feature +51 -0
- data/features/versions_overriden_store_dir.feature +41 -0
- data/lib/carrierwave/compatibility/paperclip.rb +95 -0
- data/lib/carrierwave/core_ext/blank.rb +46 -0
- data/lib/carrierwave/core_ext/inheritable_attributes.rb +104 -0
- data/lib/carrierwave/core_ext/module_setup.rb +51 -0
- data/lib/carrierwave/mount.rb +359 -0
- data/lib/carrierwave/orm/activerecord.rb +73 -0
- data/lib/carrierwave/orm/datamapper.rb +27 -0
- data/lib/carrierwave/orm/mongoid.rb +23 -0
- data/lib/carrierwave/orm/mongomapper.rb +27 -0
- data/lib/carrierwave/orm/sequel.rb +45 -0
- data/lib/carrierwave/processing/image_science.rb +101 -0
- data/lib/carrierwave/processing/mini_magick.rb +269 -0
- data/lib/carrierwave/processing/rmagick.rb +282 -0
- data/lib/carrierwave/sanitized_file.rb +268 -0
- data/lib/carrierwave/storage/abstract.rb +30 -0
- data/lib/carrierwave/storage/file.rb +48 -0
- data/lib/carrierwave/storage/grid_fs.rb +96 -0
- data/lib/carrierwave/storage/right_s3.rb +170 -0
- data/lib/carrierwave/storage/s3.rb +199 -0
- data/lib/carrierwave/test/matchers.rb +128 -0
- data/lib/carrierwave/uploader/cache.rb +145 -0
- data/lib/carrierwave/uploader/callbacks.rb +42 -0
- data/lib/carrierwave/uploader/configuration.rb +122 -0
- data/lib/carrierwave/uploader/default_url.rb +19 -0
- data/lib/carrierwave/uploader/download.rb +59 -0
- data/lib/carrierwave/uploader/extension_whitelist.rb +37 -0
- data/lib/carrierwave/uploader/mountable.rb +39 -0
- data/lib/carrierwave/uploader/processing.rb +83 -0
- data/lib/carrierwave/uploader/proxy.rb +62 -0
- data/lib/carrierwave/uploader/remove.rb +22 -0
- data/lib/carrierwave/uploader/store.rb +89 -0
- data/lib/carrierwave/uploader/url.rb +24 -0
- data/lib/carrierwave/uploader/versions.rb +146 -0
- data/lib/carrierwave/uploader.rb +44 -0
- data/lib/carrierwave.rb +96 -0
- data/merb_generators/uploader_generator.rb +22 -0
- data/rails_generators/uploader/USAGE +2 -0
- data/rails_generators/uploader/templates/uploader.rb +47 -0
- data/rails_generators/uploader/uploader_generator.rb +21 -0
- data/script/console +10 -0
- data/script/destroy +14 -0
- data/script/generate +14 -0
- data/spec/compatibility/paperclip_spec.rb +52 -0
- data/spec/fixtures/bork.txt +1 -0
- data/spec/fixtures/landscape.jpg +0 -0
- data/spec/fixtures/portrait.jpg +0 -0
- data/spec/fixtures/test.jpeg +1 -0
- data/spec/fixtures/test.jpg +1 -0
- data/spec/mount_spec.rb +538 -0
- data/spec/orm/activerecord_spec.rb +271 -0
- data/spec/orm/datamapper_spec.rb +168 -0
- data/spec/orm/mongoid_spec.rb +206 -0
- data/spec/orm/mongomapper_spec.rb +202 -0
- data/spec/orm/sequel_spec.rb +183 -0
- data/spec/processing/image_science_spec.rb +56 -0
- data/spec/processing/mini_magick_spec.rb +76 -0
- data/spec/processing/rmagick_spec.rb +75 -0
- data/spec/sanitized_file_spec.rb +601 -0
- data/spec/spec_helper.rb +99 -0
- data/spec/storage/grid_fs_spec.rb +82 -0
- data/spec/storage/right_s3_spec.rb +75 -0
- data/spec/storage/s3_spec.rb +95 -0
- data/spec/uploader/cache_spec.rb +209 -0
- data/spec/uploader/configuration_spec.rb +105 -0
- data/spec/uploader/default_url_spec.rb +85 -0
- data/spec/uploader/download_spec.rb +75 -0
- data/spec/uploader/extension_whitelist_spec.rb +44 -0
- data/spec/uploader/mountable_spec.rb +33 -0
- data/spec/uploader/paths_spec.rb +22 -0
- data/spec/uploader/processing_spec.rb +73 -0
- data/spec/uploader/proxy_spec.rb +54 -0
- data/spec/uploader/remove_spec.rb +70 -0
- data/spec/uploader/store_spec.rb +248 -0
- data/spec/uploader/url_spec.rb +87 -0
- data/spec/uploader/versions_spec.rb +298 -0
- metadata +351 -0
data/Generators
ADDED
data/History.txt
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
=== Version 0.4.4 2010-01-31
|
2
|
+
|
3
|
+
* [added] Support for downloading remote files
|
4
|
+
* [added] CarrierWave.clean_cached_files! to remove old cached files
|
5
|
+
* [added] Option to set headers for S3
|
6
|
+
* [added] GridStore now has authentication
|
7
|
+
* [fixed] Rmagick convert method now does what it says
|
8
|
+
* [fixed] Content type is stored on GridStore and Amazon S3
|
9
|
+
* [fixed] Metadata is no longer broken for S3
|
10
|
+
|
11
|
+
=== Version 0.4.3 2009-12-19
|
12
|
+
|
13
|
+
* [fixed] cnamed URLs on S3 no longer have a third slash after http
|
14
|
+
* [fixed] fixed deprecation warnings on Rails 2.3.5
|
15
|
+
|
16
|
+
=== Version 0.4.2 2009-11-26
|
17
|
+
|
18
|
+
* [added] RightAWS as an alternative S3 implementation
|
19
|
+
* [added] An option to enable/disable processing for tests
|
20
|
+
* [added] Mongoid ORM support
|
21
|
+
* [fixed] DataMapper now works both with and without dm-validations
|
22
|
+
|
23
|
+
=== Version 0.4.1 2009-10-26
|
24
|
+
|
25
|
+
* [changed] Major changes to the ImageScience module, it actually works now!
|
26
|
+
* [fixed] Bug in configuration where it complais that it can't dup Symbol
|
27
|
+
|
28
|
+
* [removed] Support for Sequel < 2.12
|
29
|
+
* [removed] `crop_resized` and `resize` aliases in RMagick, use `resize_to_fill` and `resize_to_fit` respectively
|
30
|
+
|
31
|
+
=== Version 0.4.0 2009-10-12
|
32
|
+
|
33
|
+
* [changed] the `public` option has been renamed `root` and the old `root` option was removed. No more ambiguity.
|
34
|
+
* [changed] Major *breaking* changes to the configuration syntax.
|
35
|
+
|
36
|
+
* [removed] support for `default_path`
|
37
|
+
* [removed] the `cache_to_cache_dir` option
|
38
|
+
* [removed] storage no longer calls `setup!` on storage engines
|
39
|
+
|
40
|
+
* [added] Support for MongoDB's GridFS store
|
41
|
+
|
42
|
+
=== Version 0.3.4 2009-09-01
|
43
|
+
|
44
|
+
* [added] `default_url` as a replacement for `default_path`
|
45
|
+
* [deprecated] `default_path` is deprecated
|
46
|
+
|
47
|
+
=== Version 0.3.4 2009-08-31
|
48
|
+
|
49
|
+
* [fixed] Deleting no longer causes TypeError in MongoMapper
|
50
|
+
|
51
|
+
=== Version 0.3.3 2009-08-29
|
52
|
+
|
53
|
+
* [added] Support for MongoMapper
|
54
|
+
* [added] Support for CNamed Bucket URLs for Amazon S3
|
55
|
+
|
56
|
+
=== Version 0.3.2 2009-07-18
|
57
|
+
|
58
|
+
Incremental upgrade
|
59
|
+
|
60
|
+
* [added] Ruby 1.9 compatibility
|
61
|
+
* [changed] Added Object#blank? implementation into CarrierWave, which removes any dpendencies on external libraries (extlib/activesupport)
|
62
|
+
* [fixed] Performance issues with S3 support
|
63
|
+
* [fixed] Sequel support for newer verions of Sequel (thanks Pavel!)
|
64
|
+
|
65
|
+
=== Version 0.3.1 2009-07-01
|
66
|
+
|
67
|
+
A bugfix release. Drop in compatible with 0.3.0.
|
68
|
+
|
69
|
+
* [fixed] Saving a record with a mounted Uploader no longer removes uploaded file
|
70
|
+
* [fixed] The file returned by S3 storage now has the path set to the full store path
|
71
|
+
* [added] File returned by S3 storage now responds to S3 specific methods
|
72
|
+
|
73
|
+
=== 0.3 2009-06-20
|
74
|
+
|
75
|
+
This is a stabilization release. Most features are now working as expected and
|
76
|
+
most bugs should be fixed.
|
77
|
+
|
78
|
+
* [changed] Reworked how storage engines work, some internal API changes
|
79
|
+
* [added] Macro-like methods for RMagick, no need to call #process any more!
|
80
|
+
* [added] Ability to super to any Mount method
|
81
|
+
* [fixed] Sequel support should now work as expected
|
82
|
+
* [fixed] ActiveRecord no longer saves the record twice
|
83
|
+
* [added] Added convenient macro style class methods to rmagick processing
|
84
|
+
|
85
|
+
=== 0.2.4 2009-06-11
|
86
|
+
|
87
|
+
* [added] `resize_to_limit` method for rmagick
|
88
|
+
* [added] Now deletes files from Amazon S3 when record is destroyed
|
89
|
+
|
90
|
+
=== 0.2.3 2009-05-13
|
91
|
+
|
92
|
+
* [changed] Mount now no longer returns nil if there is no stored file, it returns a blank uploader instead
|
93
|
+
* [added] Possibility to specify a default path
|
94
|
+
* [added] Paperclip compatibility module
|
95
|
+
|
96
|
+
=== 0.2.1 2009-05-01
|
97
|
+
|
98
|
+
* [changed] Url method now optionally takes versions as parameters (like Paperclip)
|
99
|
+
* [added] A field which allows files to be removed with a checkbox in mount
|
100
|
+
* [added] Mount_on option for Mount, to be able to override the serialization column
|
101
|
+
* [added] Added demeter friendly column_url method to Mount
|
102
|
+
* [added] Option to not copy files to cache dir, to prevent writes on read only fs systems (this is a workaround and needs a better solution)
|
103
|
+
|
104
|
+
|
105
|
+
=== 0.2 2009-04-15
|
106
|
+
|
107
|
+
* [changed] The version is no longer stored in the store dir. This will break the paths for files uploaded with 0.1
|
108
|
+
* [changed] CarrierWave::Uploader is now a module, not a class, so you need to include it, not inherit from it.
|
109
|
+
* [added] Integiry checking in uploaders via a white list of extensions
|
110
|
+
* [added] Validations for integrity and processing in ActiveRecord, activated by default
|
111
|
+
* [added] Support for nested versions
|
112
|
+
* [added] Permissions option to set the permissions of the uploaded files
|
113
|
+
* [added] Support for Sequel
|
114
|
+
* [added] CarrierWave::Uploader#read to read the contents of the uploaded files
|
115
|
+
|
116
|
+
=== 0.1 2009-03-12
|
117
|
+
|
118
|
+
This is a very experimental release that has not been well tested. All of the major features are in place though. Please note that there currently is a bug with load paths in Merb, which means you need to manually require uploaders.
|
data/Manifest.txt
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
Generators
|
2
|
+
History.txt
|
3
|
+
Manifest.txt
|
4
|
+
README.rdoc
|
5
|
+
Rakefile
|
6
|
+
cucumber.yml
|
7
|
+
features/caching.feature
|
8
|
+
features/download.feature
|
9
|
+
features/file_storage.feature
|
10
|
+
features/file_storage_overridden_filename.feature
|
11
|
+
features/file_storage_overridden_store_dir.feature
|
12
|
+
features/file_storage_reversing_processor.feature
|
13
|
+
features/fixtures/bork.txt
|
14
|
+
features/fixtures/monkey.txt
|
15
|
+
features/grid_fs_storage.feature
|
16
|
+
features/mount_activerecord.feature
|
17
|
+
features/mount_datamapper.feature
|
18
|
+
features/step_definitions/activerecord_steps.rb
|
19
|
+
features/step_definitions/caching_steps.rb
|
20
|
+
features/step_definitions/datamapper_steps.rb
|
21
|
+
features/step_definitions/download_steps.rb
|
22
|
+
features/step_definitions/file_steps.rb
|
23
|
+
features/step_definitions/general_steps.rb
|
24
|
+
features/step_definitions/mount_steps.rb
|
25
|
+
features/step_definitions/store_steps.rb
|
26
|
+
features/support/activerecord.rb
|
27
|
+
features/support/datamapper.rb
|
28
|
+
features/support/env.rb
|
29
|
+
features/versions_basics.feature
|
30
|
+
features/versions_nested_versions.feature
|
31
|
+
features/versions_overridden_filename.feature
|
32
|
+
features/versions_overriden_store_dir.feature
|
33
|
+
lib/carrierwave.rb
|
34
|
+
lib/carrierwave/compatibility/paperclip.rb
|
35
|
+
lib/carrierwave/core_ext/blank.rb
|
36
|
+
lib/carrierwave/core_ext/inheritable_attributes.rb
|
37
|
+
lib/carrierwave/core_ext/module_setup.rb
|
38
|
+
lib/carrierwave/mount.rb
|
39
|
+
lib/carrierwave/orm/activerecord.rb
|
40
|
+
lib/carrierwave/orm/datamapper.rb
|
41
|
+
lib/carrierwave/orm/mongoid.rb
|
42
|
+
lib/carrierwave/orm/mongomapper.rb
|
43
|
+
lib/carrierwave/orm/sequel.rb
|
44
|
+
lib/carrierwave/processing/image_science.rb
|
45
|
+
lib/carrierwave/processing/mini_magick.rb
|
46
|
+
lib/carrierwave/processing/rmagick.rb
|
47
|
+
lib/carrierwave/sanitized_file.rb
|
48
|
+
lib/carrierwave/storage/abstract.rb
|
49
|
+
lib/carrierwave/storage/file.rb
|
50
|
+
lib/carrierwave/storage/grid_fs.rb
|
51
|
+
lib/carrierwave/storage/right_s3.rb
|
52
|
+
lib/carrierwave/storage/s3.rb
|
53
|
+
lib/carrierwave/test/matchers.rb
|
54
|
+
lib/carrierwave/uploader.rb
|
55
|
+
lib/carrierwave/uploader/cache.rb
|
56
|
+
lib/carrierwave/uploader/callbacks.rb
|
57
|
+
lib/carrierwave/uploader/configuration.rb
|
58
|
+
lib/carrierwave/uploader/default_url.rb
|
59
|
+
lib/carrierwave/uploader/download.rb
|
60
|
+
lib/carrierwave/uploader/extension_whitelist.rb
|
61
|
+
lib/carrierwave/uploader/mountable.rb
|
62
|
+
lib/carrierwave/uploader/processing.rb
|
63
|
+
lib/carrierwave/uploader/proxy.rb
|
64
|
+
lib/carrierwave/uploader/remove.rb
|
65
|
+
lib/carrierwave/uploader/store.rb
|
66
|
+
lib/carrierwave/uploader/url.rb
|
67
|
+
lib/carrierwave/uploader/versions.rb
|
68
|
+
merb_generators/uploader_generator.rb
|
69
|
+
rails_generators/uploader/USAGE
|
70
|
+
rails_generators/uploader/templates/uploader.rb
|
71
|
+
rails_generators/uploader/uploader_generator.rb
|
72
|
+
script/console
|
73
|
+
script/destroy
|
74
|
+
script/generate
|
75
|
+
spec/compatibility/paperclip_spec.rb
|
76
|
+
spec/fixtures/bork.txt
|
77
|
+
spec/fixtures/landscape.jpg
|
78
|
+
spec/fixtures/portrait.jpg
|
79
|
+
spec/fixtures/test.jpeg
|
80
|
+
spec/fixtures/test.jpg
|
81
|
+
spec/mount_spec.rb
|
82
|
+
spec/orm/activerecord_spec.rb
|
83
|
+
spec/orm/datamapper_spec.rb
|
84
|
+
spec/orm/mongoid_spec.rb
|
85
|
+
spec/orm/mongomapper_spec.rb
|
86
|
+
spec/orm/sequel_spec.rb
|
87
|
+
spec/processing/image_science_spec.rb
|
88
|
+
spec/processing/mini_magick_spec.rb
|
89
|
+
spec/processing/rmagick_spec.rb
|
90
|
+
spec/sanitized_file_spec.rb
|
91
|
+
spec/spec_helper.rb
|
92
|
+
spec/storage/grid_fs_spec.rb
|
93
|
+
spec/storage/right_s3_spec.rb
|
94
|
+
spec/storage/s3_spec.rb
|
95
|
+
spec/uploader/cache_spec.rb
|
96
|
+
spec/uploader/configuration_spec.rb
|
97
|
+
spec/uploader/default_url_spec.rb
|
98
|
+
spec/uploader/download_spec.rb
|
99
|
+
spec/uploader/extension_whitelist_spec.rb
|
100
|
+
spec/uploader/mountable_spec.rb
|
101
|
+
spec/uploader/paths_spec.rb
|
102
|
+
spec/uploader/processing_spec.rb
|
103
|
+
spec/uploader/proxy_spec.rb
|
104
|
+
spec/uploader/remove_spec.rb
|
105
|
+
spec/uploader/store_spec.rb
|
106
|
+
spec/uploader/url_spec.rb
|
107
|
+
spec/uploader/versions_spec.rb
|