carrierwave 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of carrierwave might be problematic. Click here for more details.
- data/README.rdoc +33 -15
- data/lib/carrierwave.rb +0 -1
- data/lib/carrierwave/compatibility/paperclip.rb +2 -2
- data/lib/carrierwave/orm/activerecord.rb +9 -5
- data/lib/carrierwave/orm/datamapper.rb +10 -0
- data/lib/carrierwave/processing/mini_magick.rb +1 -1
- data/lib/carrierwave/processing/rmagick.rb +4 -4
- data/lib/carrierwave/sanitized_file.rb +2 -2
- data/lib/carrierwave/storage/cloud_files.rb +11 -12
- data/lib/carrierwave/storage/grid_fs.rb +37 -26
- data/lib/carrierwave/storage/right_s3.rb +1 -168
- data/lib/carrierwave/storage/s3.rb +73 -66
- data/lib/carrierwave/test/matchers.rb +57 -21
- data/lib/carrierwave/uploader/configuration.rb +8 -5
- data/lib/carrierwave/uploader/processing.rb +1 -0
- data/lib/carrierwave/uploader/url.rb +2 -2
- data/lib/carrierwave/uploader/versions.rb +10 -0
- metadata +31 -279
- data/Generators +0 -4
- data/History.txt +0 -125
- data/Manifest.txt +0 -111
- data/Rakefile +0 -39
- data/carrierwave.gemspec +0 -85
- data/cucumber.yml +0 -2
- data/features/caching.feature +0 -28
- data/features/download.feature +0 -20
- data/features/file_storage.feature +0 -37
- data/features/file_storage_overridden_filename.feature +0 -38
- data/features/file_storage_overridden_store_dir.feature +0 -38
- data/features/file_storage_reversing_processor.feature +0 -43
- data/features/fixtures/bork.txt +0 -1
- data/features/fixtures/monkey.txt +0 -1
- data/features/grid_fs_storage.feature +0 -32
- data/features/mount_activerecord.feature +0 -46
- data/features/mount_datamapper.feature +0 -46
- data/features/step_definitions/activerecord_steps.rb +0 -22
- data/features/step_definitions/caching_steps.rb +0 -14
- data/features/step_definitions/datamapper_steps.rb +0 -29
- data/features/step_definitions/download_steps.rb +0 -4
- data/features/step_definitions/file_steps.rb +0 -53
- data/features/step_definitions/general_steps.rb +0 -85
- data/features/step_definitions/mount_steps.rb +0 -19
- data/features/step_definitions/store_steps.rb +0 -18
- data/features/support/activerecord.rb +0 -30
- data/features/support/datamapper.rb +0 -7
- data/features/support/env.rb +0 -22
- data/features/versions_basics.feature +0 -50
- data/features/versions_nested_versions.feature +0 -70
- data/features/versions_overridden_filename.feature +0 -51
- data/features/versions_overriden_store_dir.feature +0 -41
- data/lib/carrierwave/orm/mongomapper.rb +0 -27
- data/merb_generators/uploader_generator.rb +0 -22
- data/rails_generators/uploader/USAGE +0 -2
- data/rails_generators/uploader/templates/uploader.rb +0 -47
- data/rails_generators/uploader/uploader_generator.rb +0 -21
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/spec/compatibility/paperclip_spec.rb +0 -52
- data/spec/fixtures/bork.txt +0 -1
- data/spec/fixtures/landscape.jpg +0 -0
- data/spec/fixtures/portrait.jpg +0 -0
- data/spec/fixtures/test.jpeg +0 -1
- data/spec/fixtures/test.jpg +0 -1
- data/spec/mount_spec.rb +0 -538
- data/spec/orm/activerecord_spec.rb +0 -271
- data/spec/orm/datamapper_spec.rb +0 -168
- data/spec/orm/mongoid_spec.rb +0 -202
- data/spec/orm/mongomapper_spec.rb +0 -202
- data/spec/orm/sequel_spec.rb +0 -183
- data/spec/processing/image_science_spec.rb +0 -56
- data/spec/processing/mini_magick_spec.rb +0 -76
- data/spec/processing/rmagick_spec.rb +0 -75
- data/spec/sanitized_file_spec.rb +0 -623
- data/spec/spec_helper.rb +0 -92
- data/spec/storage/cloudfiles_spec.rb +0 -78
- data/spec/storage/grid_fs_spec.rb +0 -83
- data/spec/storage/right_s3_spec.rb +0 -83
- data/spec/storage/s3_spec.rb +0 -95
- data/spec/uploader/cache_spec.rb +0 -209
- data/spec/uploader/configuration_spec.rb +0 -105
- data/spec/uploader/default_url_spec.rb +0 -85
- data/spec/uploader/download_spec.rb +0 -75
- data/spec/uploader/extension_whitelist_spec.rb +0 -44
- data/spec/uploader/mountable_spec.rb +0 -33
- data/spec/uploader/paths_spec.rb +0 -22
- data/spec/uploader/processing_spec.rb +0 -73
- data/spec/uploader/proxy_spec.rb +0 -54
- data/spec/uploader/remove_spec.rb +0 -70
- data/spec/uploader/store_spec.rb +0 -264
- data/spec/uploader/url_spec.rb +0 -102
- data/spec/uploader/versions_spec.rb +0 -298
data/Generators
DELETED
data/History.txt
DELETED
@@ -1,125 +0,0 @@
|
|
1
|
-
=== Version 0.4.5 2010-02-20
|
2
|
-
|
3
|
-
* [added] Support for Rackspace Cloudfiles
|
4
|
-
* [added] GridFS now accepts a port
|
5
|
-
* [fixed] s3_headers is now properly initialized
|
6
|
-
* [fixed] work around DataMapper's patching of core method
|
7
|
-
|
8
|
-
=== Version 0.4.4 2010-01-31
|
9
|
-
|
10
|
-
* [added] Support for downloading remote files
|
11
|
-
* [added] CarrierWave.clean_cached_files! to remove old cached files
|
12
|
-
* [added] Option to set headers for S3
|
13
|
-
* [added] GridStore now has authentication
|
14
|
-
* [fixed] Rmagick convert method now does what it says
|
15
|
-
* [fixed] Content type is stored on GridStore and Amazon S3
|
16
|
-
* [fixed] Metadata is no longer broken for S3
|
17
|
-
|
18
|
-
=== Version 0.4.3 2009-12-19
|
19
|
-
|
20
|
-
* [fixed] cnamed URLs on S3 no longer have a third slash after http
|
21
|
-
* [fixed] fixed deprecation warnings on Rails 2.3.5
|
22
|
-
|
23
|
-
=== Version 0.4.2 2009-11-26
|
24
|
-
|
25
|
-
* [added] RightAWS as an alternative S3 implementation
|
26
|
-
* [added] An option to enable/disable processing for tests
|
27
|
-
* [added] Mongoid ORM support
|
28
|
-
* [fixed] DataMapper now works both with and without dm-validations
|
29
|
-
|
30
|
-
=== Version 0.4.1 2009-10-26
|
31
|
-
|
32
|
-
* [changed] Major changes to the ImageScience module, it actually works now!
|
33
|
-
* [fixed] Bug in configuration where it complais that it can't dup Symbol
|
34
|
-
|
35
|
-
* [removed] Support for Sequel < 2.12
|
36
|
-
* [removed] `crop_resized` and `resize` aliases in RMagick, use `resize_to_fill` and `resize_to_fit` respectively
|
37
|
-
|
38
|
-
=== Version 0.4.0 2009-10-12
|
39
|
-
|
40
|
-
* [changed] the `public` option has been renamed `root` and the old `root` option was removed. No more ambiguity.
|
41
|
-
* [changed] Major *breaking* changes to the configuration syntax.
|
42
|
-
|
43
|
-
* [removed] support for `default_path`
|
44
|
-
* [removed] the `cache_to_cache_dir` option
|
45
|
-
* [removed] storage no longer calls `setup!` on storage engines
|
46
|
-
|
47
|
-
* [added] Support for MongoDB's GridFS store
|
48
|
-
|
49
|
-
=== Version 0.3.4 2009-09-01
|
50
|
-
|
51
|
-
* [added] `default_url` as a replacement for `default_path`
|
52
|
-
* [deprecated] `default_path` is deprecated
|
53
|
-
|
54
|
-
=== Version 0.3.4 2009-08-31
|
55
|
-
|
56
|
-
* [fixed] Deleting no longer causes TypeError in MongoMapper
|
57
|
-
|
58
|
-
=== Version 0.3.3 2009-08-29
|
59
|
-
|
60
|
-
* [added] Support for MongoMapper
|
61
|
-
* [added] Support for CNamed Bucket URLs for Amazon S3
|
62
|
-
|
63
|
-
=== Version 0.3.2 2009-07-18
|
64
|
-
|
65
|
-
Incremental upgrade
|
66
|
-
|
67
|
-
* [added] Ruby 1.9 compatibility
|
68
|
-
* [changed] Added Object#blank? implementation into CarrierWave, which removes any dpendencies on external libraries (extlib/activesupport)
|
69
|
-
* [fixed] Performance issues with S3 support
|
70
|
-
* [fixed] Sequel support for newer verions of Sequel (thanks Pavel!)
|
71
|
-
|
72
|
-
=== Version 0.3.1 2009-07-01
|
73
|
-
|
74
|
-
A bugfix release. Drop in compatible with 0.3.0.
|
75
|
-
|
76
|
-
* [fixed] Saving a record with a mounted Uploader no longer removes uploaded file
|
77
|
-
* [fixed] The file returned by S3 storage now has the path set to the full store path
|
78
|
-
* [added] File returned by S3 storage now responds to S3 specific methods
|
79
|
-
|
80
|
-
=== 0.3 2009-06-20
|
81
|
-
|
82
|
-
This is a stabilization release. Most features are now working as expected and
|
83
|
-
most bugs should be fixed.
|
84
|
-
|
85
|
-
* [changed] Reworked how storage engines work, some internal API changes
|
86
|
-
* [added] Macro-like methods for RMagick, no need to call #process any more!
|
87
|
-
* [added] Ability to super to any Mount method
|
88
|
-
* [fixed] Sequel support should now work as expected
|
89
|
-
* [fixed] ActiveRecord no longer saves the record twice
|
90
|
-
* [added] Added convenient macro style class methods to rmagick processing
|
91
|
-
|
92
|
-
=== 0.2.4 2009-06-11
|
93
|
-
|
94
|
-
* [added] `resize_to_limit` method for rmagick
|
95
|
-
* [added] Now deletes files from Amazon S3 when record is destroyed
|
96
|
-
|
97
|
-
=== 0.2.3 2009-05-13
|
98
|
-
|
99
|
-
* [changed] Mount now no longer returns nil if there is no stored file, it returns a blank uploader instead
|
100
|
-
* [added] Possibility to specify a default path
|
101
|
-
* [added] Paperclip compatibility module
|
102
|
-
|
103
|
-
=== 0.2.1 2009-05-01
|
104
|
-
|
105
|
-
* [changed] Url method now optionally takes versions as parameters (like Paperclip)
|
106
|
-
* [added] A field which allows files to be removed with a checkbox in mount
|
107
|
-
* [added] Mount_on option for Mount, to be able to override the serialization column
|
108
|
-
* [added] Added demeter friendly column_url method to Mount
|
109
|
-
* [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)
|
110
|
-
|
111
|
-
|
112
|
-
=== 0.2 2009-04-15
|
113
|
-
|
114
|
-
* [changed] The version is no longer stored in the store dir. This will break the paths for files uploaded with 0.1
|
115
|
-
* [changed] CarrierWave::Uploader is now a module, not a class, so you need to include it, not inherit from it.
|
116
|
-
* [added] Integiry checking in uploaders via a white list of extensions
|
117
|
-
* [added] Validations for integrity and processing in ActiveRecord, activated by default
|
118
|
-
* [added] Support for nested versions
|
119
|
-
* [added] Permissions option to set the permissions of the uploaded files
|
120
|
-
* [added] Support for Sequel
|
121
|
-
* [added] CarrierWave::Uploader#read to read the contents of the uploaded files
|
122
|
-
|
123
|
-
=== 0.1 2009-03-12
|
124
|
-
|
125
|
-
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
DELETED
@@ -1,111 +0,0 @@
|
|
1
|
-
Generators
|
2
|
-
History.txt
|
3
|
-
Manifest.txt
|
4
|
-
README.rdoc
|
5
|
-
Rakefile
|
6
|
-
carrierwave.gemspec
|
7
|
-
cucumber.yml
|
8
|
-
features/caching.feature
|
9
|
-
features/download.feature
|
10
|
-
features/file_storage.feature
|
11
|
-
features/file_storage_overridden_filename.feature
|
12
|
-
features/file_storage_overridden_store_dir.feature
|
13
|
-
features/file_storage_reversing_processor.feature
|
14
|
-
features/fixtures/bork.txt
|
15
|
-
features/fixtures/monkey.txt
|
16
|
-
features/grid_fs_storage.feature
|
17
|
-
features/mount_activerecord.feature
|
18
|
-
features/mount_datamapper.feature
|
19
|
-
features/step_definitions/activerecord_steps.rb
|
20
|
-
features/step_definitions/caching_steps.rb
|
21
|
-
features/step_definitions/datamapper_steps.rb
|
22
|
-
features/step_definitions/download_steps.rb
|
23
|
-
features/step_definitions/file_steps.rb
|
24
|
-
features/step_definitions/general_steps.rb
|
25
|
-
features/step_definitions/mount_steps.rb
|
26
|
-
features/step_definitions/store_steps.rb
|
27
|
-
features/support/activerecord.rb
|
28
|
-
features/support/datamapper.rb
|
29
|
-
features/support/env.rb
|
30
|
-
features/versions_basics.feature
|
31
|
-
features/versions_nested_versions.feature
|
32
|
-
features/versions_overridden_filename.feature
|
33
|
-
features/versions_overriden_store_dir.feature
|
34
|
-
lib/carrierwave.rb
|
35
|
-
lib/carrierwave/compatibility/paperclip.rb
|
36
|
-
lib/carrierwave/core_ext/blank.rb
|
37
|
-
lib/carrierwave/core_ext/file.rb
|
38
|
-
lib/carrierwave/core_ext/inheritable_attributes.rb
|
39
|
-
lib/carrierwave/core_ext/module_setup.rb
|
40
|
-
lib/carrierwave/mount.rb
|
41
|
-
lib/carrierwave/orm/activerecord.rb
|
42
|
-
lib/carrierwave/orm/datamapper.rb
|
43
|
-
lib/carrierwave/orm/mongoid.rb
|
44
|
-
lib/carrierwave/orm/mongomapper.rb
|
45
|
-
lib/carrierwave/orm/sequel.rb
|
46
|
-
lib/carrierwave/processing/image_science.rb
|
47
|
-
lib/carrierwave/processing/mini_magick.rb
|
48
|
-
lib/carrierwave/processing/rmagick.rb
|
49
|
-
lib/carrierwave/sanitized_file.rb
|
50
|
-
lib/carrierwave/storage/abstract.rb
|
51
|
-
lib/carrierwave/storage/cloud_files.rb
|
52
|
-
lib/carrierwave/storage/file.rb
|
53
|
-
lib/carrierwave/storage/grid_fs.rb
|
54
|
-
lib/carrierwave/storage/right_s3.rb
|
55
|
-
lib/carrierwave/storage/s3.rb
|
56
|
-
lib/carrierwave/test/matchers.rb
|
57
|
-
lib/carrierwave/uploader.rb
|
58
|
-
lib/carrierwave/uploader/cache.rb
|
59
|
-
lib/carrierwave/uploader/callbacks.rb
|
60
|
-
lib/carrierwave/uploader/configuration.rb
|
61
|
-
lib/carrierwave/uploader/default_url.rb
|
62
|
-
lib/carrierwave/uploader/download.rb
|
63
|
-
lib/carrierwave/uploader/extension_whitelist.rb
|
64
|
-
lib/carrierwave/uploader/mountable.rb
|
65
|
-
lib/carrierwave/uploader/processing.rb
|
66
|
-
lib/carrierwave/uploader/proxy.rb
|
67
|
-
lib/carrierwave/uploader/remove.rb
|
68
|
-
lib/carrierwave/uploader/store.rb
|
69
|
-
lib/carrierwave/uploader/url.rb
|
70
|
-
lib/carrierwave/uploader/versions.rb
|
71
|
-
merb_generators/uploader_generator.rb
|
72
|
-
rails_generators/uploader/USAGE
|
73
|
-
rails_generators/uploader/templates/uploader.rb
|
74
|
-
rails_generators/uploader/uploader_generator.rb
|
75
|
-
script/console
|
76
|
-
script/destroy
|
77
|
-
script/generate
|
78
|
-
spec/compatibility/paperclip_spec.rb
|
79
|
-
spec/fixtures/bork.txt
|
80
|
-
spec/fixtures/landscape.jpg
|
81
|
-
spec/fixtures/portrait.jpg
|
82
|
-
spec/fixtures/test.jpeg
|
83
|
-
spec/fixtures/test.jpg
|
84
|
-
spec/mount_spec.rb
|
85
|
-
spec/orm/activerecord_spec.rb
|
86
|
-
spec/orm/datamapper_spec.rb
|
87
|
-
spec/orm/mongoid_spec.rb
|
88
|
-
spec/orm/mongomapper_spec.rb
|
89
|
-
spec/orm/sequel_spec.rb
|
90
|
-
spec/processing/image_science_spec.rb
|
91
|
-
spec/processing/mini_magick_spec.rb
|
92
|
-
spec/processing/rmagick_spec.rb
|
93
|
-
spec/sanitized_file_spec.rb
|
94
|
-
spec/spec_helper.rb
|
95
|
-
spec/storage/cloudfiles_spec.rb
|
96
|
-
spec/storage/grid_fs_spec.rb
|
97
|
-
spec/storage/right_s3_spec.rb
|
98
|
-
spec/storage/s3_spec.rb
|
99
|
-
spec/uploader/cache_spec.rb
|
100
|
-
spec/uploader/configuration_spec.rb
|
101
|
-
spec/uploader/default_url_spec.rb
|
102
|
-
spec/uploader/download_spec.rb
|
103
|
-
spec/uploader/extension_whitelist_spec.rb
|
104
|
-
spec/uploader/mountable_spec.rb
|
105
|
-
spec/uploader/paths_spec.rb
|
106
|
-
spec/uploader/processing_spec.rb
|
107
|
-
spec/uploader/proxy_spec.rb
|
108
|
-
spec/uploader/remove_spec.rb
|
109
|
-
spec/uploader/store_spec.rb
|
110
|
-
spec/uploader/url_spec.rb
|
111
|
-
spec/uploader/versions_spec.rb
|
data/Rakefile
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
gem 'hoe', '>= 2.1.0'
|
3
|
-
require 'hoe'
|
4
|
-
require 'fileutils'
|
5
|
-
$:.unshift File.join(File.dirname(__FILE__), 'lib')
|
6
|
-
require 'carrierwave'
|
7
|
-
|
8
|
-
Hoe.plugin :newgem
|
9
|
-
# Hoe.plugin :website
|
10
|
-
Hoe.plugin :cucumberfeatures
|
11
|
-
|
12
|
-
$hoe = Hoe.spec 'carrierwave' do
|
13
|
-
self.developer 'Jonas Nicklas', 'jonas.nicklas@gmail.com'
|
14
|
-
self.rubyforge_name = self.name
|
15
|
-
self.readme_file = 'README.rdoc'
|
16
|
-
self.version = CarrierWave::VERSION
|
17
|
-
self.extra_dev_deps << ['newgem', '>=1.5.2']
|
18
|
-
self.extra_dev_deps << ['rspec', '>=1.2.8']
|
19
|
-
self.extra_dev_deps << ['cucumber', '>=0.3.96']
|
20
|
-
self.extra_dev_deps << ['activerecord', '>=2.3.3']
|
21
|
-
self.extra_dev_deps << ['sqlite3-ruby', '>=1.2.5']
|
22
|
-
self.extra_dev_deps << ['dm-core', '>=0.9.11']
|
23
|
-
self.extra_dev_deps << ['data_objects', '>=0.9.12']
|
24
|
-
self.extra_dev_deps << ['do_sqlite3', '>=0.9.11']
|
25
|
-
self.extra_dev_deps << ['sequel', '>=3.2.0']
|
26
|
-
self.extra_dev_deps << ['rmagick', '>=2.10.0']
|
27
|
-
self.extra_dev_deps << ['mini_magick', '>=1.2.5']
|
28
|
-
self.extra_dev_deps << ['mongo_mapper', '>=0.6.8']
|
29
|
-
self.extra_dev_deps << ['mongoid', '>=0.10.4']
|
30
|
-
self.extra_dev_deps << ['aws-s3', '>=0.6.2']
|
31
|
-
self.extra_dev_deps << ['timecop', '>=0.3.4']
|
32
|
-
self.extra_dev_deps << ['json', '>=1.1.9']
|
33
|
-
self.extra_rdoc_files << 'README.rdoc'
|
34
|
-
end
|
35
|
-
|
36
|
-
require 'newgem/tasks'
|
37
|
-
Dir['tasks/**/*.rake'].each { |t| load t }
|
38
|
-
|
39
|
-
task :default => [:spec, :features]
|
data/carrierwave.gemspec
DELETED
@@ -1,85 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = %q{carrierwave}
|
5
|
-
s.version = "0.4.4"
|
6
|
-
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Jonas Nicklas"]
|
9
|
-
s.date = %q{2010-02-18}
|
10
|
-
s.description = %q{* RDoc Documentation {available at Rubyforge}[http://carrierwave.rubyforge.org/rdoc].
|
11
|
-
* Source code {hosted at GitHub}[http://github.com/jnicklas/carrierwave]
|
12
|
-
* Please {report any issues}[http://github.com/jnicklas/carrierwave/issues] on GitHub
|
13
|
-
* Please direct any questions at the {mailing list}[http://groups.google.com/group/carrierwave]
|
14
|
-
* Check out the {example app}[http://github.com/jnicklas/carrierwave-example-app]}
|
15
|
-
s.email = ["jonas.nicklas@gmail.com"]
|
16
|
-
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "features/fixtures/bork.txt", "features/fixtures/monkey.txt", "README.rdoc"]
|
17
|
-
s.files = ["Generators", "History.txt", "Manifest.txt", "README.rdoc", "Rakefile", "cucumber.yml", "features/caching.feature", "features/download.feature", "features/file_storage.feature", "features/file_storage_overridden_filename.feature", "features/file_storage_overridden_store_dir.feature", "features/file_storage_reversing_processor.feature", "features/fixtures/bork.txt", "features/fixtures/monkey.txt", "features/grid_fs_storage.feature", "features/mount_activerecord.feature", "features/mount_datamapper.feature", "features/step_definitions/activerecord_steps.rb", "features/step_definitions/caching_steps.rb", "features/step_definitions/datamapper_steps.rb", "features/step_definitions/download_steps.rb", "features/step_definitions/file_steps.rb", "features/step_definitions/general_steps.rb", "features/step_definitions/mount_steps.rb", "features/step_definitions/store_steps.rb", "features/support/activerecord.rb", "features/support/datamapper.rb", "features/support/env.rb", "features/versions_basics.feature", "features/versions_nested_versions.feature", "features/versions_overridden_filename.feature", "features/versions_overriden_store_dir.feature", "lib/carrierwave.rb", "lib/carrierwave/compatibility/paperclip.rb", "lib/carrierwave/core_ext/blank.rb", "lib/carrierwave/core_ext/inheritable_attributes.rb", "lib/carrierwave/core_ext/module_setup.rb", "lib/carrierwave/mount.rb", "lib/carrierwave/orm/activerecord.rb", "lib/carrierwave/orm/datamapper.rb", "lib/carrierwave/orm/mongoid.rb", "lib/carrierwave/orm/mongomapper.rb", "lib/carrierwave/orm/sequel.rb", "lib/carrierwave/processing/image_science.rb", "lib/carrierwave/processing/mini_magick.rb", "lib/carrierwave/processing/rmagick.rb", "lib/carrierwave/sanitized_file.rb", "lib/carrierwave/storage/abstract.rb", "lib/carrierwave/storage/cloud_files.rb", "lib/carrierwave/storage/file.rb", "lib/carrierwave/storage/grid_fs.rb", "lib/carrierwave/storage/right_s3.rb", "lib/carrierwave/storage/s3.rb", "lib/carrierwave/test/matchers.rb", "lib/carrierwave/uploader.rb", "lib/carrierwave/uploader/cache.rb", "lib/carrierwave/uploader/callbacks.rb", "lib/carrierwave/uploader/configuration.rb", "lib/carrierwave/uploader/default_url.rb", "lib/carrierwave/uploader/download.rb", "lib/carrierwave/uploader/extension_whitelist.rb", "lib/carrierwave/uploader/mountable.rb", "lib/carrierwave/uploader/processing.rb", "lib/carrierwave/uploader/proxy.rb", "lib/carrierwave/uploader/remove.rb", "lib/carrierwave/uploader/store.rb", "lib/carrierwave/uploader/url.rb", "lib/carrierwave/uploader/versions.rb", "merb_generators/uploader_generator.rb", "rails_generators/uploader/USAGE", "rails_generators/uploader/templates/uploader.rb", "rails_generators/uploader/uploader_generator.rb", "script/console", "script/destroy", "script/generate", "spec/compatibility/paperclip_spec.rb", "spec/fixtures/bork.txt", "spec/fixtures/landscape.jpg", "spec/fixtures/portrait.jpg", "spec/fixtures/test.jpeg", "spec/fixtures/test.jpg", "spec/mount_spec.rb", "spec/orm/activerecord_spec.rb", "spec/orm/datamapper_spec.rb", "spec/orm/mongoid_spec.rb", "spec/orm/mongomapper_spec.rb", "spec/orm/sequel_spec.rb", "spec/processing/image_science_spec.rb", "spec/processing/mini_magick_spec.rb", "spec/processing/rmagick_spec.rb", "spec/sanitized_file_spec.rb", "spec/spec_helper.rb", "spec/storage/grid_fs_spec.rb", "spec/storage/right_s3_spec.rb", "spec/storage/s3_spec.rb", "spec/uploader/cache_spec.rb", "spec/uploader/configuration_spec.rb", "spec/uploader/default_url_spec.rb", "spec/uploader/download_spec.rb", "spec/uploader/extension_whitelist_spec.rb", "spec/uploader/mountable_spec.rb", "spec/uploader/paths_spec.rb", "spec/uploader/processing_spec.rb", "spec/uploader/proxy_spec.rb", "spec/uploader/remove_spec.rb", "spec/uploader/store_spec.rb", "spec/uploader/url_spec.rb", "spec/uploader/versions_spec.rb"]
|
18
|
-
s.homepage = %q{http://carrierwave.rubyforge.org}
|
19
|
-
s.rdoc_options = ["--main", "README.rdoc"]
|
20
|
-
s.require_paths = ["lib"]
|
21
|
-
s.rubyforge_project = %q{carrierwave}
|
22
|
-
s.rubygems_version = %q{1.3.5}
|
23
|
-
s.summary = %q{* RDoc Documentation {available at Rubyforge}[http://carrierwave.rubyforge.org/rdoc]}
|
24
|
-
|
25
|
-
if s.respond_to? :specification_version then
|
26
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
27
|
-
s.specification_version = 3
|
28
|
-
|
29
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
30
|
-
s.add_development_dependency(%q<newgem>, [">= 1.5.2"])
|
31
|
-
s.add_development_dependency(%q<rspec>, [">= 1.2.8"])
|
32
|
-
s.add_development_dependency(%q<cucumber>, [">= 0.3.96"])
|
33
|
-
s.add_development_dependency(%q<activerecord>, [">= 2.3.3"])
|
34
|
-
s.add_development_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
|
35
|
-
s.add_development_dependency(%q<dm-core>, [">= 0.9.11"])
|
36
|
-
s.add_development_dependency(%q<data_objects>, [">= 0.9.12"])
|
37
|
-
s.add_development_dependency(%q<do_sqlite3>, [">= 0.9.11"])
|
38
|
-
s.add_development_dependency(%q<sequel>, [">= 3.2.0"])
|
39
|
-
s.add_development_dependency(%q<rmagick>, [">= 2.10.0"])
|
40
|
-
s.add_development_dependency(%q<mini_magick>, [">= 1.2.5"])
|
41
|
-
s.add_development_dependency(%q<mongo_mapper>, [">= 0.6.8"])
|
42
|
-
s.add_development_dependency(%q<mongoid>, [">= 0.10.4"])
|
43
|
-
s.add_development_dependency(%q<aws-s3>, [">= 0.6.2"])
|
44
|
-
s.add_development_dependency(%q<timecop>, [">= 0.3.4"])
|
45
|
-
s.add_development_dependency(%q<json>, [">= 1.1.9"])
|
46
|
-
s.add_development_dependency(%q<hoe>, [">= 2.4.0"])
|
47
|
-
else
|
48
|
-
s.add_dependency(%q<newgem>, [">= 1.5.2"])
|
49
|
-
s.add_dependency(%q<rspec>, [">= 1.2.8"])
|
50
|
-
s.add_dependency(%q<cucumber>, [">= 0.3.96"])
|
51
|
-
s.add_dependency(%q<activerecord>, [">= 2.3.3"])
|
52
|
-
s.add_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
|
53
|
-
s.add_dependency(%q<dm-core>, [">= 0.9.11"])
|
54
|
-
s.add_dependency(%q<data_objects>, [">= 0.9.12"])
|
55
|
-
s.add_dependency(%q<do_sqlite3>, [">= 0.9.11"])
|
56
|
-
s.add_dependency(%q<sequel>, [">= 3.2.0"])
|
57
|
-
s.add_dependency(%q<rmagick>, [">= 2.10.0"])
|
58
|
-
s.add_dependency(%q<mini_magick>, [">= 1.2.5"])
|
59
|
-
s.add_dependency(%q<mongo_mapper>, [">= 0.6.8"])
|
60
|
-
s.add_dependency(%q<mongoid>, [">= 0.10.4"])
|
61
|
-
s.add_dependency(%q<aws-s3>, [">= 0.6.2"])
|
62
|
-
s.add_dependency(%q<timecop>, [">= 0.3.4"])
|
63
|
-
s.add_dependency(%q<json>, [">= 1.1.9"])
|
64
|
-
s.add_dependency(%q<hoe>, [">= 2.4.0"])
|
65
|
-
end
|
66
|
-
else
|
67
|
-
s.add_dependency(%q<newgem>, [">= 1.5.2"])
|
68
|
-
s.add_dependency(%q<rspec>, [">= 1.2.8"])
|
69
|
-
s.add_dependency(%q<cucumber>, [">= 0.3.96"])
|
70
|
-
s.add_dependency(%q<activerecord>, [">= 2.3.3"])
|
71
|
-
s.add_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
|
72
|
-
s.add_dependency(%q<dm-core>, [">= 0.9.11"])
|
73
|
-
s.add_dependency(%q<data_objects>, [">= 0.9.12"])
|
74
|
-
s.add_dependency(%q<do_sqlite3>, [">= 0.9.11"])
|
75
|
-
s.add_dependency(%q<sequel>, [">= 3.2.0"])
|
76
|
-
s.add_dependency(%q<rmagick>, [">= 2.10.0"])
|
77
|
-
s.add_dependency(%q<mini_magick>, [">= 1.2.5"])
|
78
|
-
s.add_dependency(%q<mongo_mapper>, [">= 0.6.8"])
|
79
|
-
s.add_dependency(%q<mongoid>, [">= 0.10.4"])
|
80
|
-
s.add_dependency(%q<aws-s3>, [">= 0.6.2"])
|
81
|
-
s.add_dependency(%q<timecop>, [">= 0.3.4"])
|
82
|
-
s.add_dependency(%q<json>, [">= 1.1.9"])
|
83
|
-
s.add_dependency(%q<hoe>, [">= 2.4.0"])
|
84
|
-
end
|
85
|
-
end
|
data/cucumber.yml
DELETED
data/features/caching.feature
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
Feature: uploader with file storage
|
2
|
-
In order to be able to temporarily store files to disk
|
3
|
-
As a developer using CarrierWave
|
4
|
-
I want to cache files
|
5
|
-
|
6
|
-
Scenario: cache a file
|
7
|
-
Given an uploader class that uses the 'file' storage
|
8
|
-
And an instance of that class
|
9
|
-
When I cache the file 'fixtures/bork.txt'
|
10
|
-
Then there should be a file called 'bork.txt' somewhere in a subdirectory of 'public/uploads/tmp'
|
11
|
-
And the file called 'bork.txt' in a subdirectory of 'public/uploads/tmp' should be identical to the file at 'fixtures/bork.txt'
|
12
|
-
|
13
|
-
Scenario: cache two files in succession
|
14
|
-
Given an uploader class that uses the 'file' storage
|
15
|
-
And an instance of that class
|
16
|
-
When I cache the file 'fixtures/bork.txt'
|
17
|
-
Then there should be a file called 'bork.txt' somewhere in a subdirectory of 'public/uploads/tmp'
|
18
|
-
And the file called 'bork.txt' in a subdirectory of 'public/uploads/tmp' should be identical to the file at 'fixtures/bork.txt'
|
19
|
-
When I cache the file 'fixtures/monkey.txt'
|
20
|
-
Then there should be a file called 'monkey.txt' somewhere in a subdirectory of 'public/uploads/tmp'
|
21
|
-
And the file called 'monkey.txt' in a subdirectory of 'public/uploads/tmp' should be identical to the file at 'fixtures/monkey.txt'
|
22
|
-
|
23
|
-
Scenario: retrieving a file from cache
|
24
|
-
Given an uploader class that uses the 'file' storage
|
25
|
-
And an instance of that class
|
26
|
-
And the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/20090212-2343-8336-0348/bork.txt'
|
27
|
-
When I retrieve the cache name '20090212-2343-8336-0348/bork.txt' from the cache
|
28
|
-
Then the uploader should have 'public/uploads/tmp/20090212-2343-8336-0348/bork.txt' as its current path
|
data/features/download.feature
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Feature: downloading files
|
2
|
-
In order to allow users to upload remote files
|
3
|
-
As a developer using CarrierWave
|
4
|
-
I want to download files to the filesystem via HTTP
|
5
|
-
|
6
|
-
Background:
|
7
|
-
Given an uploader class that uses the 'file' storage
|
8
|
-
And an instance of that class
|
9
|
-
|
10
|
-
Scenario: download a file
|
11
|
-
When I download the file 'http://s3.amazonaws.com/Monkey/testfile.txt'
|
12
|
-
Then there should be a file called 'testfile.txt' somewhere in a subdirectory of 'public/uploads/tmp'
|
13
|
-
And the file called 'testfile.txt' in a subdirectory of 'public/uploads/tmp' should contain 'S3 Remote File'
|
14
|
-
|
15
|
-
Scenario: downloading a file then storing
|
16
|
-
When I download the file 'http://s3.amazonaws.com/Monkey/testfile.txt'
|
17
|
-
And I store the file
|
18
|
-
Then there should be a file at 'public/uploads/testfile.txt'
|
19
|
-
And the file at 'public/uploads/testfile.txt' should contain 'S3 Remote File'
|
20
|
-
|
@@ -1,37 +0,0 @@
|
|
1
|
-
Feature: uploader with file storage
|
2
|
-
In order to be awesome
|
3
|
-
As a developer using CarrierWave
|
4
|
-
I want to upload files to the filesystem
|
5
|
-
|
6
|
-
Background:
|
7
|
-
Given an uploader class that uses the 'file' storage
|
8
|
-
And an instance of that class
|
9
|
-
|
10
|
-
Scenario: store a file
|
11
|
-
When I store the file 'fixtures/bork.txt'
|
12
|
-
Then there should be a file at 'public/uploads/bork.txt'
|
13
|
-
And the file at 'public/uploads/bork.txt' should be identical to the file at 'fixtures/bork.txt'
|
14
|
-
|
15
|
-
Scenario: store two files in succession
|
16
|
-
When I store the file 'fixtures/bork.txt'
|
17
|
-
Then there should be a file at 'public/uploads/bork.txt'
|
18
|
-
And the file at 'public/uploads/bork.txt' should be identical to the file at 'fixtures/bork.txt'
|
19
|
-
When I store the file 'fixtures/monkey.txt'
|
20
|
-
Then there should be a file at 'public/uploads/monkey.txt'
|
21
|
-
And the file at 'public/uploads/monkey.txt' should be identical to the file at 'fixtures/monkey.txt'
|
22
|
-
|
23
|
-
Scenario: cache a file and then store it
|
24
|
-
When I cache the file 'fixtures/bork.txt'
|
25
|
-
Then there should be a file called 'bork.txt' somewhere in a subdirectory of 'public/uploads/tmp'
|
26
|
-
And the file called 'bork.txt' in a subdirectory of 'public/uploads/tmp' should be identical to the file at 'fixtures/bork.txt'
|
27
|
-
And there should not be a file at 'public/uploads/bork.txt'
|
28
|
-
When I store the file
|
29
|
-
Then there should be a file at 'public/uploads/bork.txt'
|
30
|
-
And the file at 'public/uploads/bork.txt' should be identical to the file at 'fixtures/bork.txt'
|
31
|
-
|
32
|
-
Scenario: retrieving a file from cache then storing
|
33
|
-
Given the file 'fixtures/bork.txt' is cached file at 'public/uploads/tmp/20090212-2343-8336-0348/bork.txt'
|
34
|
-
When I retrieve the cache name '20090212-2343-8336-0348/bork.txt' from the cache
|
35
|
-
And I store the file
|
36
|
-
Then there should be a file at 'public/uploads/bork.txt'
|
37
|
-
And the file at 'public/uploads/bork.txt' should be identical to the file at 'fixtures/bork.txt'
|