carrierwave_direct 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -163,30 +163,6 @@ Note if you're using Rails 3.0.x you'll also need to disable forgery protection
163
163
 
164
164
  Once you've uploaded your file directly to the cloud you'll probably need a way to reference it with an ORM and process it.
165
165
 
166
- ## Content-Type / Mime
167
-
168
- The default amazon content-type is "binary/octet-stream" and for many cases this will work just fine. But if you are trying to stream video or audio you will need to set the mime type manually as Amazon will not calculate it for you. All mime types are supported: [http://en.wikipedia.org/wiki/Internet_media_type](http://en.wikipedia.org/wiki/Internet_media_type).
169
-
170
- Just add a content-type element to the form.
171
-
172
- <%= direct_upload_form_for @uploader do |f| %>
173
- <%= text_field_tag 'Content-Type', 'video/mpeg' %><br>
174
- <%= f.file_field :avatar %>
175
- <%= f.submit %>
176
- <% end %>
177
-
178
- You could use a select as well.
179
-
180
- <%= direct_upload_form_for @uploader do |f| %>
181
- <%= select_tag 'Content-Type', options_for_select([
182
- ['Video','video/mpeg'],
183
- ['Audio','audio/mpeg'],
184
- ['Image','image/jpeg']
185
- ], 'video/mpeg') %><br>
186
- <%= f.file_field :avatar %>
187
- <%= f.submit %>
188
- <% end %>
189
-
190
166
  ## Processing and referencing files in a background process
191
167
 
192
168
  Processing and saving file uploads are typically long running tasks and should be done in a background process. CarrierWaveDirect gives you a few methods to help you do this with your favorite background processor such as [DelayedJob](https://github.com/collectiveidea/delayed_job) or [Resque](https://github.com/defunkt/resque).
@@ -435,7 +411,6 @@ You should now be able to run the tests
435
411
  * [nicknovitski (Nick Novitski)](https://github.com/nicknovitski) - Update old link in README
436
412
  * [gabrielengel (Gabriel Engel)](https://github.com/gabrielengel) - Refactor I18n not to use procs
437
413
  * [evanlok](https://github.com/evanlok) - Don't be case sensitive with filename extension validation
438
- * [jkamenik (John Kamenik)](https://github.com/jkamenik) - Support for Content-Type
439
414
  * [davesherratt (Dave Sherratt)](https://github.com/davesherratt) - Initial support for Rails 4 strong parameters
440
415
  * [kylecrum (Kyle Crum)](https://github.com/kylecrum) - Fix double url encoding bug
441
416
  * [rsniezynski](https://github.com/rsniezynski) - Add min file size configuration
@@ -66,7 +66,6 @@ module CarrierWaveDirect
66
66
  {
67
67
  'expiration' => Time.now.utc + options[:expiration],
68
68
  'conditions' => [
69
- ["starts-with", "$Content-Type", ""],
70
69
  ["starts-with", "$utf8", ""],
71
70
  ["starts-with", "$key", store_dir],
72
71
  {"bucket" => fog_directory},
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module CarrierwaveDirect
4
- VERSION = "0.0.9"
4
+ VERSION = "0.0.10"
5
5
  end
6
6
 
@@ -435,12 +435,7 @@ describe CarrierWaveDirect::Uploader do
435
435
  conditions.should have_condition("success_action_redirect" => "http://example.com/some_url")
436
436
  end
437
437
 
438
- it "'content-type'" do
439
- conditions.should have_condition('Content-Type')
440
- end
441
-
442
438
  context "'content-length-range of'" do
443
-
444
439
  def have_content_length_range(options = {})
445
440
  include([
446
441
  "content-length-range",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave_direct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-13 00:00:00.000000000 Z
12
+ date: 2013-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: carrierwave
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  version: '0'
203
203
  segments:
204
204
  - 0
205
- hash: 353468527
205
+ hash: -382049357
206
206
  requirements: []
207
207
  rubyforge_project: carrierwave_direct
208
208
  rubygems_version: 1.8.24