carrierwave 0.11.2 → 1.0.0.beta
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.
- checksums.yaml +4 -4
- data/README.md +220 -116
- data/lib/carrierwave.rb +8 -10
- data/lib/carrierwave/compatibility/paperclip.rb +0 -2
- data/lib/carrierwave/error.rb +1 -0
- data/lib/carrierwave/locale/en.yml +7 -4
- data/lib/carrierwave/mount.rb +209 -176
- data/lib/carrierwave/mounter.rb +163 -0
- data/lib/carrierwave/orm/activerecord.rb +49 -20
- data/lib/carrierwave/processing.rb +0 -1
- data/lib/carrierwave/processing/mini_magick.rb +64 -13
- data/lib/carrierwave/processing/rmagick.rb +31 -3
- data/lib/carrierwave/sanitized_file.rb +43 -38
- data/lib/carrierwave/storage.rb +0 -9
- data/lib/carrierwave/storage/abstract.rb +15 -2
- data/lib/carrierwave/storage/file.rb +64 -2
- data/lib/carrierwave/storage/fog.rb +100 -27
- data/lib/carrierwave/test/matchers.rb +77 -12
- data/lib/carrierwave/uploader.rb +2 -2
- data/lib/carrierwave/uploader/cache.rb +40 -26
- data/lib/carrierwave/uploader/callbacks.rb +0 -2
- data/lib/carrierwave/uploader/configuration.rb +48 -6
- data/lib/carrierwave/uploader/default_url.rb +3 -5
- data/lib/carrierwave/uploader/download.rb +2 -4
- data/lib/carrierwave/uploader/extension_blacklist.rb +14 -10
- data/lib/carrierwave/uploader/extension_whitelist.rb +12 -10
- data/lib/carrierwave/uploader/file_size.rb +41 -0
- data/lib/carrierwave/uploader/magic_mime_blacklist.rb +94 -0
- data/lib/carrierwave/uploader/magic_mime_whitelist.rb +94 -0
- data/lib/carrierwave/uploader/mountable.rb +7 -8
- data/lib/carrierwave/uploader/processing.rb +1 -3
- data/lib/carrierwave/uploader/proxy.rb +5 -7
- data/lib/carrierwave/uploader/remove.rb +0 -2
- data/lib/carrierwave/uploader/serialization.rb +1 -3
- data/lib/carrierwave/uploader/store.rb +5 -23
- data/lib/carrierwave/uploader/url.rb +1 -3
- data/lib/carrierwave/uploader/versions.rb +75 -82
- data/lib/carrierwave/utilities.rb +0 -3
- data/lib/carrierwave/utilities/uri.rb +4 -7
- data/lib/carrierwave/validations/active_model.rb +0 -2
- data/lib/carrierwave/version.rb +1 -1
- data/lib/generators/templates/uploader.rb +3 -5
- metadata +43 -97
- data/lib/carrierwave/locale/cs.yml +0 -11
- data/lib/carrierwave/locale/de.yml +0 -11
- data/lib/carrierwave/locale/el.yml +0 -11
- data/lib/carrierwave/locale/es.yml +0 -11
- data/lib/carrierwave/locale/fr.yml +0 -11
- data/lib/carrierwave/locale/ja.yml +0 -11
- data/lib/carrierwave/locale/nb.yml +0 -11
- data/lib/carrierwave/locale/nl.yml +0 -11
- data/lib/carrierwave/locale/pl.yml +0 -11
- data/lib/carrierwave/locale/pt-BR.yml +0 -11
- data/lib/carrierwave/locale/pt-PT.yml +0 -11
- data/lib/carrierwave/locale/ru.yml +0 -11
- data/lib/carrierwave/locale/sk.yml +0 -11
- data/lib/carrierwave/locale/tr.yml +0 -11
- data/lib/carrierwave/processing/mime_types.rb +0 -74
- data/lib/carrierwave/utilities/deprecation.rb +0 -18
@@ -1,5 +1,3 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
require "json"
|
4
2
|
require "active_support/core_ext/hash"
|
5
3
|
|
@@ -13,7 +11,7 @@ module CarrierWave
|
|
13
11
|
end
|
14
12
|
|
15
13
|
def as_json(options=nil)
|
16
|
-
|
14
|
+
serializable_hash
|
17
15
|
end
|
18
16
|
|
19
17
|
def to_json(options=nil)
|
@@ -1,5 +1,3 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
module CarrierWave
|
4
2
|
module Uploader
|
5
3
|
module Store
|
@@ -54,35 +52,19 @@ module CarrierWave
|
|
54
52
|
#
|
55
53
|
def store!(new_file=nil)
|
56
54
|
cache!(new_file) if new_file && ((@cache_id != parent_cache_id) || @cache_id.nil?)
|
57
|
-
if @file and @cache_id
|
55
|
+
if !cache_only and @file and @cache_id
|
58
56
|
with_callbacks(:store, new_file) do
|
59
57
|
new_file = storage.store!(@file)
|
60
|
-
|
61
|
-
|
58
|
+
if delete_tmp_file_after_storage
|
59
|
+
@file.delete unless move_to_store
|
60
|
+
cache_storage.delete_dir!(cache_path(nil))
|
61
|
+
end
|
62
62
|
@file = new_file
|
63
63
|
@cache_id = nil
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
68
|
-
##
|
69
|
-
# Deletes a cache id (tmp dir in cache)
|
70
|
-
#
|
71
|
-
def delete_cache_id
|
72
|
-
if @cache_id
|
73
|
-
path = File.expand_path(File.join(cache_dir, @cache_id), CarrierWave.root)
|
74
|
-
begin
|
75
|
-
Dir.rmdir(path)
|
76
|
-
rescue Errno::ENOENT
|
77
|
-
# Ignore: path does not exist
|
78
|
-
rescue Errno::ENOTDIR
|
79
|
-
# Ignore: path is not a dir
|
80
|
-
rescue Errno::ENOTEMPTY, Errno::EEXIST
|
81
|
-
# Ignore: dir is not empty
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
85
|
-
|
86
68
|
##
|
87
69
|
# Retrieves the file from the storage.
|
88
70
|
#
|
@@ -1,5 +1,3 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
module CarrierWave
|
4
2
|
module Uploader
|
5
3
|
module Url
|
@@ -20,7 +18,7 @@ module CarrierWave
|
|
20
18
|
if file.respond_to?(:url) and not file.url.blank?
|
21
19
|
file.method(:url).arity == 0 ? file.url : file.url(options)
|
22
20
|
elsif file.respond_to?(:path)
|
23
|
-
path = encode_path(file.path.
|
21
|
+
path = encode_path(file.path.sub(File.expand_path(root), ''))
|
24
22
|
|
25
23
|
if host = asset_host
|
26
24
|
if host.respond_to? :call
|
@@ -1,5 +1,3 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
module CarrierWave
|
4
2
|
module Uploader
|
5
3
|
module Versions
|
@@ -8,12 +6,12 @@ module CarrierWave
|
|
8
6
|
include CarrierWave::Uploader::Callbacks
|
9
7
|
|
10
8
|
included do
|
11
|
-
class_attribute :versions, :version_names, :instance_reader => false, :instance_writer => false
|
9
|
+
class_attribute :versions, :version_names, :version_options, :instance_reader => false, :instance_writer => false
|
12
10
|
|
13
11
|
self.versions = {}
|
14
12
|
self.version_names = []
|
15
13
|
|
16
|
-
attr_accessor :parent_cache_id
|
14
|
+
attr_accessor :parent_cache_id, :parent_version
|
17
15
|
|
18
16
|
after :cache, :assign_parent_cache_id
|
19
17
|
after :cache, :cache_versions!
|
@@ -50,72 +48,74 @@ module CarrierWave
|
|
50
48
|
#
|
51
49
|
def version(name, options = {}, &block)
|
52
50
|
name = name.to_sym
|
53
|
-
build_version(name, options)
|
51
|
+
build_version(name, options)
|
54
52
|
|
55
|
-
versions[name]
|
53
|
+
versions[name].class_eval(&block) if block
|
56
54
|
versions[name]
|
57
55
|
end
|
58
56
|
|
59
57
|
def recursively_apply_block_to_versions(&block)
|
60
58
|
versions.each do |name, version|
|
61
|
-
version
|
62
|
-
version
|
59
|
+
version.class_eval(&block)
|
60
|
+
version.recursively_apply_block_to_versions(&block)
|
63
61
|
end
|
64
62
|
end
|
65
63
|
|
66
64
|
private
|
67
65
|
|
68
66
|
def build_version(name, options)
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
67
|
+
if !versions.has_key?(name)
|
68
|
+
uploader = Class.new(self)
|
69
|
+
const_set("Uploader#{uploader.object_id}".tr('-', '_'), uploader)
|
70
|
+
uploader.version_names += [name]
|
71
|
+
uploader.versions = {}
|
72
|
+
uploader.processors = []
|
73
|
+
uploader.version_options = options
|
74
|
+
|
75
|
+
uploader.class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
76
|
+
# Define the enable_processing method for versions so they get the
|
77
|
+
# value from the parent class unless explicitly overwritten
|
78
|
+
def self.enable_processing(value=nil)
|
79
|
+
self.enable_processing = value if value
|
80
|
+
if !@enable_processing.nil?
|
81
|
+
@enable_processing
|
82
|
+
else
|
83
|
+
superclass.enable_processing
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# Regardless of what is set in the parent uploader, do not enforce the
|
88
|
+
# move_to_cache config option on versions because it moves the original
|
89
|
+
# file to the version's target file.
|
90
|
+
#
|
91
|
+
# If you want to enforce this setting on versions, override this method
|
92
|
+
# in each version:
|
93
|
+
#
|
94
|
+
# version :thumb do
|
95
|
+
# def move_to_cache
|
96
|
+
# true
|
97
|
+
# end
|
98
|
+
# end
|
99
|
+
#
|
100
|
+
def move_to_cache
|
101
|
+
false
|
84
102
|
end
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
#
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
# end
|
99
|
-
#
|
100
|
-
def move_to_cache
|
101
|
-
false
|
102
|
-
end
|
103
|
-
RUBY
|
104
|
-
|
105
|
-
class_eval <<-RUBY
|
106
|
-
def #{name}
|
107
|
-
versions[:#{name}]
|
108
|
-
end
|
109
|
-
RUBY
|
103
|
+
RUBY
|
104
|
+
|
105
|
+
class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
106
|
+
def #{name}
|
107
|
+
versions[:#{name}]
|
108
|
+
end
|
109
|
+
RUBY
|
110
|
+
else
|
111
|
+
uploader = Class.new(versions[name])
|
112
|
+
const_set("Uploader#{uploader.object_id}".tr('-', '_'), uploader)
|
113
|
+
uploader.processors = []
|
114
|
+
uploader.version_options = uploader.version_options.merge(options)
|
115
|
+
end
|
110
116
|
|
111
117
|
# Add the current version hash to class attribute :versions
|
112
|
-
|
113
|
-
name => {
|
114
|
-
:uploader => uploader,
|
115
|
-
:options => options
|
116
|
-
}
|
117
|
-
}
|
118
|
-
self.versions = versions.merge(current_version)
|
118
|
+
self.versions = versions.merge(name => uploader)
|
119
119
|
end
|
120
120
|
|
121
121
|
end # ClassMethods
|
@@ -131,7 +131,8 @@ module CarrierWave
|
|
131
131
|
return @versions if @versions
|
132
132
|
@versions = {}
|
133
133
|
self.class.versions.each do |name, version|
|
134
|
-
@versions[name] = version
|
134
|
+
@versions[name] = version.new(model, mounted_as)
|
135
|
+
@versions[name].parent_version = self
|
135
136
|
end
|
136
137
|
@versions
|
137
138
|
end
|
@@ -160,7 +161,7 @@ module CarrierWave
|
|
160
161
|
|
161
162
|
return false unless self.class.versions.has_key?(name)
|
162
163
|
|
163
|
-
condition = self.class.versions[name][:
|
164
|
+
condition = self.class.versions[name].version_options[:if]
|
164
165
|
if(condition)
|
165
166
|
if(condition.respond_to?(:call))
|
166
167
|
condition.call(self, :version => name, :file => file)
|
@@ -241,6 +242,18 @@ module CarrierWave
|
|
241
242
|
end
|
242
243
|
end
|
243
244
|
|
245
|
+
def dependent_versions
|
246
|
+
active_versions.reject do |name, v|
|
247
|
+
v.class.version_options[:from_version]
|
248
|
+
end.to_a + sibling_versions.select do |name, v|
|
249
|
+
v.class.version_options[:from_version] == self.class.version_names.last
|
250
|
+
end.to_a
|
251
|
+
end
|
252
|
+
|
253
|
+
def sibling_versions
|
254
|
+
parent_version.try(:versions) || []
|
255
|
+
end
|
256
|
+
|
244
257
|
def full_filename(for_file)
|
245
258
|
[version_name, super(for_file)].compact.join('_')
|
246
259
|
end
|
@@ -250,29 +263,9 @@ module CarrierWave
|
|
250
263
|
end
|
251
264
|
|
252
265
|
def cache_versions!(new_file)
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
processed_parent = SanitizedFile.new :tempfile => self.file,
|
257
|
-
:filename => new_file.original_filename
|
258
|
-
|
259
|
-
active_versions.each do |name, v|
|
260
|
-
next if v.cached?
|
261
|
-
|
262
|
-
v.send(:cache_id=, cache_id)
|
263
|
-
# If option :from_version is present, create cache using cached file from
|
264
|
-
# version indicated
|
265
|
-
if self.class.versions[name][:options] && self.class.versions[name][:options][:from_version]
|
266
|
-
# Maybe the reference version has not been cached yet
|
267
|
-
unless versions[self.class.versions[name][:options][:from_version]].cached?
|
268
|
-
versions[self.class.versions[name][:options][:from_version]].cache!(processed_parent)
|
269
|
-
end
|
270
|
-
processed_version = SanitizedFile.new :tempfile => versions[self.class.versions[name][:options][:from_version]],
|
271
|
-
:filename => new_file.original_filename
|
272
|
-
v.cache!(processed_version)
|
273
|
-
else
|
274
|
-
v.cache!(processed_parent)
|
275
|
-
end
|
266
|
+
dependent_versions.each do |name, v|
|
267
|
+
v.send(:cache_id=, @cache_id)
|
268
|
+
v.cache!(new_file)
|
276
269
|
end
|
277
270
|
end
|
278
271
|
|
@@ -290,11 +283,11 @@ module CarrierWave
|
|
290
283
|
end
|
291
284
|
|
292
285
|
def retrieve_versions_from_cache!(cache_name)
|
293
|
-
|
286
|
+
active_versions.each { |name, v| v.retrieve_from_cache!(cache_name) }
|
294
287
|
end
|
295
288
|
|
296
289
|
def retrieve_versions_from_store!(identifier)
|
297
|
-
|
290
|
+
active_versions.each { |name, v| v.retrieve_from_store!(identifier) }
|
298
291
|
end
|
299
292
|
|
300
293
|
end # Versions
|
@@ -1,16 +1,13 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
module CarrierWave
|
4
2
|
module Utilities
|
5
3
|
module Uri
|
4
|
+
# based on Ruby < 2.0's URI.encode
|
5
|
+
SAFE_STRING = URI::REGEXP::PATTERN::UNRESERVED + '\/'
|
6
|
+
UNSAFE = Regexp.new("[^#{SAFE_STRING}]", false)
|
6
7
|
|
7
8
|
private
|
8
9
|
def encode_path(path)
|
9
|
-
|
10
|
-
safe_string = URI::REGEXP::PATTERN::UNRESERVED + '\/'
|
11
|
-
unsafe = Regexp.new("[^#{safe_string}]", false)
|
12
|
-
|
13
|
-
path.to_s.gsub(unsafe) do
|
10
|
+
path.to_s.gsub(UNSAFE) do
|
14
11
|
us = $&
|
15
12
|
tmp = ''
|
16
13
|
us.each_byte do |uc|
|
data/lib/carrierwave/version.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
1
|
class <%= class_name %>Uploader < CarrierWave::Uploader::Base
|
4
2
|
|
5
3
|
# Include RMagick or MiniMagick support:
|
@@ -25,7 +23,7 @@ class <%= class_name %>Uploader < CarrierWave::Uploader::Base
|
|
25
23
|
# end
|
26
24
|
|
27
25
|
# Process files as they are uploaded:
|
28
|
-
# process :
|
26
|
+
# process scale: [200, 300]
|
29
27
|
#
|
30
28
|
# def scale(width, height)
|
31
29
|
# # do something
|
@@ -33,12 +31,12 @@ class <%= class_name %>Uploader < CarrierWave::Uploader::Base
|
|
33
31
|
|
34
32
|
# Create different versions of your uploaded files:
|
35
33
|
# version :thumb do
|
36
|
-
# process :
|
34
|
+
# process resize_to_fit: [50, 50]
|
37
35
|
# end
|
38
36
|
|
39
37
|
# Add a white list of extensions which are allowed to be uploaded.
|
40
38
|
# For images you might use something like this:
|
41
|
-
# def
|
39
|
+
# def extension_whitelist
|
42
40
|
# %w(jpg jpeg gif png)
|
43
41
|
# end
|
44
42
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.beta
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Nicklas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,42 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activemodel
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 4.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: json
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.7'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.7'
|
40
|
+
version: 4.0.0
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: mime-types
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,20 +52,6 @@ dependencies:
|
|
66
52
|
- - ">="
|
67
53
|
- !ruby/object:Gem::Version
|
68
54
|
version: '1.16'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: mimemagic
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 0.3.0
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 0.3.0
|
83
55
|
- !ruby/object:Gem::Dependency
|
84
56
|
name: pg
|
85
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,44 +72,44 @@ dependencies:
|
|
100
72
|
requirements:
|
101
73
|
- - ">="
|
102
74
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
75
|
+
version: 4.0.0
|
104
76
|
type: :development
|
105
77
|
prerelease: false
|
106
78
|
version_requirements: !ruby/object:Gem::Requirement
|
107
79
|
requirements:
|
108
80
|
- - ">="
|
109
81
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
82
|
+
version: 4.0.0
|
111
83
|
- !ruby/object:Gem::Dependency
|
112
84
|
name: cucumber
|
113
85
|
requirement: !ruby/object:Gem::Requirement
|
114
86
|
requirements:
|
115
87
|
- - "~>"
|
116
88
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
89
|
+
version: 2.3.2
|
118
90
|
type: :development
|
119
91
|
prerelease: false
|
120
92
|
version_requirements: !ruby/object:Gem::Requirement
|
121
93
|
requirements:
|
122
94
|
- - "~>"
|
123
95
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
96
|
+
version: 2.3.2
|
125
97
|
- !ruby/object:Gem::Dependency
|
126
98
|
name: rspec
|
127
99
|
requirement: !ruby/object:Gem::Requirement
|
128
100
|
requirements:
|
129
101
|
- - "~>"
|
130
102
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
103
|
+
version: 3.4.0
|
132
104
|
type: :development
|
133
105
|
prerelease: false
|
134
106
|
version_requirements: !ruby/object:Gem::Requirement
|
135
107
|
requirements:
|
136
108
|
- - "~>"
|
137
109
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
110
|
+
version: 3.4.0
|
139
111
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
112
|
+
name: webmock
|
141
113
|
requirement: !ruby/object:Gem::Requirement
|
142
114
|
requirements:
|
143
115
|
- - ">="
|
@@ -152,46 +124,18 @@ dependencies:
|
|
152
124
|
version: '0'
|
153
125
|
- !ruby/object:Gem::Dependency
|
154
126
|
name: fog
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: 1.20.0
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: 1.20.0
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: unf
|
169
127
|
requirement: !ruby/object:Gem::Requirement
|
170
128
|
requirements:
|
171
129
|
- - ">="
|
172
130
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
131
|
+
version: 1.28.0
|
174
132
|
type: :development
|
175
133
|
prerelease: false
|
176
134
|
version_requirements: !ruby/object:Gem::Requirement
|
177
135
|
requirements:
|
178
136
|
- - ">="
|
179
137
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: net-ssh
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - "~>"
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: 2.9.0
|
188
|
-
type: :development
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - "~>"
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: 2.9.0
|
138
|
+
version: 1.28.0
|
195
139
|
- !ruby/object:Gem::Dependency
|
196
140
|
name: mini_magick
|
197
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -226,28 +170,28 @@ dependencies:
|
|
226
170
|
requirements:
|
227
171
|
- - "~>"
|
228
172
|
- !ruby/object:Gem::Version
|
229
|
-
version: 1.
|
173
|
+
version: 1.6.3
|
230
174
|
type: :development
|
231
175
|
prerelease: false
|
232
176
|
version_requirements: !ruby/object:Gem::Requirement
|
233
177
|
requirements:
|
234
178
|
- - "~>"
|
235
179
|
- !ruby/object:Gem::Version
|
236
|
-
version: 1.
|
180
|
+
version: 1.6.3
|
237
181
|
- !ruby/object:Gem::Dependency
|
238
182
|
name: timecop
|
239
183
|
requirement: !ruby/object:Gem::Requirement
|
240
184
|
requirements:
|
241
185
|
- - '='
|
242
186
|
- !ruby/object:Gem::Version
|
243
|
-
version: 0.
|
187
|
+
version: 0.7.1
|
244
188
|
type: :development
|
245
189
|
prerelease: false
|
246
190
|
version_requirements: !ruby/object:Gem::Requirement
|
247
191
|
requirements:
|
248
192
|
- - '='
|
249
193
|
- !ruby/object:Gem::Version
|
250
|
-
version: 0.
|
194
|
+
version: 0.7.1
|
251
195
|
- !ruby/object:Gem::Dependency
|
252
196
|
name: generator_spec
|
253
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -262,6 +206,20 @@ dependencies:
|
|
262
206
|
- - ">="
|
263
207
|
- !ruby/object:Gem::Version
|
264
208
|
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: pry
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
265
223
|
description: Upload files in your Ruby applications, map them to a range of ORMs,
|
266
224
|
store them on different backends.
|
267
225
|
email:
|
@@ -275,25 +233,11 @@ files:
|
|
275
233
|
- lib/carrierwave.rb
|
276
234
|
- lib/carrierwave/compatibility/paperclip.rb
|
277
235
|
- lib/carrierwave/error.rb
|
278
|
-
- lib/carrierwave/locale/cs.yml
|
279
|
-
- lib/carrierwave/locale/de.yml
|
280
|
-
- lib/carrierwave/locale/el.yml
|
281
236
|
- lib/carrierwave/locale/en.yml
|
282
|
-
- lib/carrierwave/locale/es.yml
|
283
|
-
- lib/carrierwave/locale/fr.yml
|
284
|
-
- lib/carrierwave/locale/ja.yml
|
285
|
-
- lib/carrierwave/locale/nb.yml
|
286
|
-
- lib/carrierwave/locale/nl.yml
|
287
|
-
- lib/carrierwave/locale/pl.yml
|
288
|
-
- lib/carrierwave/locale/pt-BR.yml
|
289
|
-
- lib/carrierwave/locale/pt-PT.yml
|
290
|
-
- lib/carrierwave/locale/ru.yml
|
291
|
-
- lib/carrierwave/locale/sk.yml
|
292
|
-
- lib/carrierwave/locale/tr.yml
|
293
237
|
- lib/carrierwave/mount.rb
|
238
|
+
- lib/carrierwave/mounter.rb
|
294
239
|
- lib/carrierwave/orm/activerecord.rb
|
295
240
|
- lib/carrierwave/processing.rb
|
296
|
-
- lib/carrierwave/processing/mime_types.rb
|
297
241
|
- lib/carrierwave/processing/mini_magick.rb
|
298
242
|
- lib/carrierwave/processing/rmagick.rb
|
299
243
|
- lib/carrierwave/sanitized_file.rb
|
@@ -312,6 +256,9 @@ files:
|
|
312
256
|
- lib/carrierwave/uploader/download.rb
|
313
257
|
- lib/carrierwave/uploader/extension_blacklist.rb
|
314
258
|
- lib/carrierwave/uploader/extension_whitelist.rb
|
259
|
+
- lib/carrierwave/uploader/file_size.rb
|
260
|
+
- lib/carrierwave/uploader/magic_mime_blacklist.rb
|
261
|
+
- lib/carrierwave/uploader/magic_mime_whitelist.rb
|
315
262
|
- lib/carrierwave/uploader/mountable.rb
|
316
263
|
- lib/carrierwave/uploader/processing.rb
|
317
264
|
- lib/carrierwave/uploader/proxy.rb
|
@@ -321,7 +268,6 @@ files:
|
|
321
268
|
- lib/carrierwave/uploader/url.rb
|
322
269
|
- lib/carrierwave/uploader/versions.rb
|
323
270
|
- lib/carrierwave/utilities.rb
|
324
|
-
- lib/carrierwave/utilities/deprecation.rb
|
325
271
|
- lib/carrierwave/utilities/uri.rb
|
326
272
|
- lib/carrierwave/validations/active_model.rb
|
327
273
|
- lib/carrierwave/version.rb
|
@@ -340,16 +286,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
340
286
|
requirements:
|
341
287
|
- - ">="
|
342
288
|
- !ruby/object:Gem::Version
|
343
|
-
version:
|
289
|
+
version: 2.0.0
|
344
290
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
345
291
|
requirements:
|
346
|
-
- - "
|
292
|
+
- - ">"
|
347
293
|
- !ruby/object:Gem::Version
|
348
|
-
version:
|
294
|
+
version: 1.3.1
|
349
295
|
requirements: []
|
350
|
-
rubyforge_project:
|
351
|
-
rubygems_version: 2.
|
296
|
+
rubyforge_project:
|
297
|
+
rubygems_version: 2.5.1
|
352
298
|
signing_key:
|
353
|
-
specification_version:
|
299
|
+
specification_version: 4
|
354
300
|
summary: Ruby file upload library
|
355
301
|
test_files: []
|