carrierwave 0.9.0 → 0.10.0

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.

Files changed (34) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +69 -9
  3. data/lib/carrierwave.rb +7 -0
  4. data/lib/carrierwave/compatibility/paperclip.rb +29 -19
  5. data/lib/carrierwave/locale/el.yml +11 -0
  6. data/lib/carrierwave/locale/es.yml +11 -0
  7. data/lib/carrierwave/locale/fr.yml +11 -0
  8. data/lib/carrierwave/locale/ja.yml +11 -0
  9. data/lib/carrierwave/locale/nb.yml +11 -0
  10. data/lib/carrierwave/locale/pl.yml +11 -0
  11. data/lib/carrierwave/locale/pt-BR.yml +11 -0
  12. data/lib/carrierwave/locale/pt-PT.yml +11 -0
  13. data/lib/carrierwave/locale/ru.yml +11 -0
  14. data/lib/carrierwave/locale/tr.yml +11 -0
  15. data/lib/carrierwave/mount.rb +39 -36
  16. data/lib/carrierwave/orm/activerecord.rb +1 -0
  17. data/lib/carrierwave/processing/mime_types.rb +1 -0
  18. data/lib/carrierwave/processing/mini_magick.rb +12 -5
  19. data/lib/carrierwave/processing/rmagick.rb +6 -18
  20. data/lib/carrierwave/sanitized_file.rb +6 -1
  21. data/lib/carrierwave/storage/fog.rb +6 -5
  22. data/lib/carrierwave/uploader/configuration.rb +8 -0
  23. data/lib/carrierwave/uploader/download.rb +16 -10
  24. data/lib/carrierwave/uploader/processing.rb +15 -17
  25. data/lib/carrierwave/uploader/proxy.rb +11 -0
  26. data/lib/carrierwave/uploader/serialization.rb +1 -1
  27. data/lib/carrierwave/uploader/versions.rb +45 -44
  28. data/lib/carrierwave/utilities.rb +2 -1
  29. data/lib/carrierwave/utilities/deprecation.rb +18 -0
  30. data/lib/carrierwave/validations/active_model.rb +0 -2
  31. data/lib/carrierwave/version.rb +1 -1
  32. data/lib/generators/templates/uploader.rb +1 -1
  33. data/lib/generators/uploader_generator.rb +1 -1
  34. metadata +100 -72
@@ -78,5 +78,3 @@ module CarrierWave
78
78
  end
79
79
  end
80
80
  end
81
-
82
- I18n.load_path << File.join(File.dirname(__FILE__), "..", "locale", 'en.yml')
@@ -1,3 +1,3 @@
1
1
  module CarrierWave
2
- VERSION = "0.9.0"
2
+ VERSION = "0.10.0"
3
3
  end
@@ -33,7 +33,7 @@ class <%= class_name %>Uploader < CarrierWave::Uploader::Base
33
33
 
34
34
  # Create different versions of your uploaded files:
35
35
  # version :thumb do
36
- # process :scale => [50, 50]
36
+ # process :resize_to_fit => [50, 50]
37
37
  # end
38
38
 
39
39
  # Add a white list of extensions which are allowed to be uploaded.
@@ -2,6 +2,6 @@ class UploaderGenerator < Rails::Generators::NamedBase
2
2
  source_root File.expand_path("../templates", __FILE__)
3
3
 
4
4
  def create_uploader_file
5
- template "uploader.rb", "app/uploaders/#{file_name}_uploader.rb"
5
+ template "uploader.rb", File.join('app/uploaders', class_path, "#{file_name}_uploader.rb")
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,206 +1,223 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
5
- prerelease:
4
+ version: 0.10.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jonas Nicklas
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-06 00:00:00.000000000 Z
11
+ date: 2014-02-26 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activesupport
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.2.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 3.2.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: activemodel
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: 3.2.0
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: 3.2.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: json
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '1.7'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '1.7'
55
+ - !ruby/object:Gem::Dependency
56
+ name: mime-types
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '1.16'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '1.16'
62
69
  - !ruby/object:Gem::Dependency
63
70
  name: mysql2
64
71
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
72
  requirements:
67
- - - ! '>='
73
+ - - ">="
68
74
  - !ruby/object:Gem::Version
69
75
  version: '0'
70
76
  type: :development
71
77
  prerelease: false
72
78
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
79
  requirements:
75
- - - ! '>='
80
+ - - ">="
76
81
  - !ruby/object:Gem::Version
77
82
  version: '0'
78
83
  - !ruby/object:Gem::Dependency
79
84
  name: rails
80
85
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
86
  requirements:
83
- - - ! '>='
87
+ - - ">="
84
88
  - !ruby/object:Gem::Version
85
89
  version: 3.2.0
86
90
  type: :development
87
91
  prerelease: false
88
92
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
93
  requirements:
91
- - - ! '>='
94
+ - - ">="
92
95
  - !ruby/object:Gem::Version
93
96
  version: 3.2.0
94
97
  - !ruby/object:Gem::Dependency
95
98
  name: cucumber
96
99
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
100
  requirements:
99
- - - ~>
101
+ - - "~>"
100
102
  - !ruby/object:Gem::Version
101
103
  version: 1.3.2
102
104
  type: :development
103
105
  prerelease: false
104
106
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
107
  requirements:
107
- - - ~>
108
+ - - "~>"
108
109
  - !ruby/object:Gem::Version
109
110
  version: 1.3.2
110
111
  - !ruby/object:Gem::Dependency
111
112
  name: rspec
112
113
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: 2.13.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
121
  requirements:
123
- - - ~>
122
+ - - "~>"
124
123
  - !ruby/object:Gem::Version
125
124
  version: 2.13.0
126
125
  - !ruby/object:Gem::Dependency
127
126
  name: sham_rack
128
127
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
128
  requirements:
131
- - - ! '>='
129
+ - - ">="
132
130
  - !ruby/object:Gem::Version
133
131
  version: '0'
134
132
  type: :development
135
133
  prerelease: false
136
134
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
135
  requirements:
139
- - - ! '>='
136
+ - - ">="
140
137
  - !ruby/object:Gem::Version
141
138
  version: '0'
142
139
  - !ruby/object:Gem::Dependency
143
- name: timecop
140
+ name: fog
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: 1.3.1
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: 1.3.1
153
+ - !ruby/object:Gem::Dependency
154
+ name: mini_magick
144
155
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
156
  requirements:
147
- - - ! '>='
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: 3.6.0
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: 3.6.0
167
+ - !ruby/object:Gem::Dependency
168
+ name: rmagick
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
148
172
  - !ruby/object:Gem::Version
149
173
  version: '0'
150
174
  type: :development
151
175
  prerelease: false
152
176
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
177
  requirements:
155
- - - ! '>='
178
+ - - ">="
156
179
  - !ruby/object:Gem::Version
157
180
  version: '0'
158
181
  - !ruby/object:Gem::Dependency
159
- name: fog
182
+ name: nokogiri
160
183
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
184
  requirements:
163
- - - ! '>='
185
+ - - "~>"
164
186
  - !ruby/object:Gem::Version
165
- version: 1.3.1
187
+ version: 1.5.10
166
188
  type: :development
167
189
  prerelease: false
168
190
  version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
191
  requirements:
171
- - - ! '>='
192
+ - - "~>"
172
193
  - !ruby/object:Gem::Version
173
- version: 1.3.1
194
+ version: 1.5.10
174
195
  - !ruby/object:Gem::Dependency
175
- name: mini_magick
196
+ name: timecop
176
197
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
198
  requirements:
179
- - - ! '>='
199
+ - - '='
180
200
  - !ruby/object:Gem::Version
181
- version: 3.6.0
201
+ version: 0.6.1
182
202
  type: :development
183
203
  prerelease: false
184
204
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
205
  requirements:
187
- - - ! '>='
206
+ - - '='
188
207
  - !ruby/object:Gem::Version
189
- version: 3.6.0
208
+ version: 0.6.1
190
209
  - !ruby/object:Gem::Dependency
191
- name: rmagick
210
+ name: generator_spec
192
211
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
212
  requirements:
195
- - - ! '>='
213
+ - - ">="
196
214
  - !ruby/object:Gem::Version
197
215
  version: '0'
198
216
  type: :development
199
217
  prerelease: false
200
218
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
219
  requirements:
203
- - - ! '>='
220
+ - - ">="
204
221
  - !ruby/object:Gem::Version
205
222
  version: '0'
206
223
  description: Upload files in your Ruby applications, map them to a range of ORMs,
@@ -212,25 +229,38 @@ extensions: []
212
229
  extra_rdoc_files:
213
230
  - README.md
214
231
  files:
232
+ - README.md
233
+ - lib/carrierwave.rb
215
234
  - lib/carrierwave/compatibility/paperclip.rb
216
235
  - lib/carrierwave/error.rb
217
236
  - lib/carrierwave/locale/cs.yml
218
237
  - lib/carrierwave/locale/de.yml
238
+ - lib/carrierwave/locale/el.yml
219
239
  - lib/carrierwave/locale/en.yml
240
+ - lib/carrierwave/locale/es.yml
241
+ - lib/carrierwave/locale/fr.yml
242
+ - lib/carrierwave/locale/ja.yml
243
+ - lib/carrierwave/locale/nb.yml
220
244
  - lib/carrierwave/locale/nl.yml
245
+ - lib/carrierwave/locale/pl.yml
246
+ - lib/carrierwave/locale/pt-BR.yml
247
+ - lib/carrierwave/locale/pt-PT.yml
248
+ - lib/carrierwave/locale/ru.yml
221
249
  - lib/carrierwave/locale/sk.yml
250
+ - lib/carrierwave/locale/tr.yml
222
251
  - lib/carrierwave/mount.rb
223
252
  - lib/carrierwave/orm/activerecord.rb
253
+ - lib/carrierwave/processing.rb
224
254
  - lib/carrierwave/processing/mime_types.rb
225
255
  - lib/carrierwave/processing/mini_magick.rb
226
256
  - lib/carrierwave/processing/rmagick.rb
227
- - lib/carrierwave/processing.rb
228
257
  - lib/carrierwave/sanitized_file.rb
258
+ - lib/carrierwave/storage.rb
229
259
  - lib/carrierwave/storage/abstract.rb
230
260
  - lib/carrierwave/storage/file.rb
231
261
  - lib/carrierwave/storage/fog.rb
232
- - lib/carrierwave/storage.rb
233
262
  - lib/carrierwave/test/matchers.rb
263
+ - lib/carrierwave/uploader.rb
234
264
  - lib/carrierwave/uploader/cache.rb
235
265
  - lib/carrierwave/uploader/callbacks.rb
236
266
  - lib/carrierwave/uploader/configuration.rb
@@ -246,37 +276,35 @@ files:
246
276
  - lib/carrierwave/uploader/store.rb
247
277
  - lib/carrierwave/uploader/url.rb
248
278
  - lib/carrierwave/uploader/versions.rb
249
- - lib/carrierwave/uploader.rb
250
- - lib/carrierwave/utilities/uri.rb
251
279
  - lib/carrierwave/utilities.rb
280
+ - lib/carrierwave/utilities/deprecation.rb
281
+ - lib/carrierwave/utilities/uri.rb
252
282
  - lib/carrierwave/validations/active_model.rb
253
283
  - lib/carrierwave/version.rb
254
- - lib/carrierwave.rb
255
284
  - lib/generators/templates/uploader.rb
256
285
  - lib/generators/uploader_generator.rb
257
- - README.md
258
286
  homepage: https://github.com/carrierwaveuploader/carrierwave
259
- licenses: []
287
+ licenses:
288
+ - MIT
289
+ metadata: {}
260
290
  post_install_message:
261
291
  rdoc_options:
262
- - --main
292
+ - "--main"
263
293
  require_paths:
264
294
  - lib
265
295
  required_ruby_version: !ruby/object:Gem::Requirement
266
- none: false
267
296
  requirements:
268
- - - ! '>='
297
+ - - ">="
269
298
  - !ruby/object:Gem::Version
270
299
  version: '0'
271
300
  required_rubygems_version: !ruby/object:Gem::Requirement
272
- none: false
273
301
  requirements:
274
- - - ! '>='
302
+ - - ">="
275
303
  - !ruby/object:Gem::Version
276
304
  version: '0'
277
305
  requirements: []
278
306
  rubyforge_project: carrierwave
279
- rubygems_version: 1.8.23
307
+ rubygems_version: 2.2.0
280
308
  signing_key:
281
309
  specification_version: 3
282
310
  summary: Ruby file upload library