plupload-rails 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -29,10 +29,11 @@ Add to your application.js:
29
29
 
30
30
 
31
31
  Add to your application.scss:
32
+
32
33
  @import "jquery.plupload.queue";
33
34
 
34
35
 
35
- Simple example haml for your viwws:
36
+ Simple example haml for your views:
36
37
 
37
38
  div#uploader
38
39
  javascript:
@@ -41,8 +42,8 @@ Simple example haml for your viwws:
41
42
  runtimes: 'gears,flash,silverlight,browserplus,html5',
42
43
  url: '#{images_path}',
43
44
  multipart_params: {
44
- '#{{request_forgery_protection_token}}': '#{{form_authenticity_token}}',
45
- '#{{request.session_options[:key]}}': '#{{request.session_options[:id]}}'
45
+ '#{request_forgery_protection_token}': '#{form_authenticity_token}',
46
+ '#{request.session_options[:key]}': '#{request.session_options[:id]}'
46
47
  }
47
48
  });
48
49
  });
@@ -0,0 +1,14 @@
1
+ // Assigns default Plupload settings that work with the asset pipeline.
2
+ (function () {
3
+ var proxied = plupload.Uploader;
4
+
5
+ plupload.Uploader = function (settings) {
6
+ settings = $.extend({}, settings, {
7
+ multipart: true,
8
+ flash_swf_url: '<%=asset_path("plupload.flash.swf")%>',
9
+ silverlight_xap_url: '<%=asset_path("plupload.silverlight.xap")%>'
10
+ });
11
+
12
+ return proxied.apply(this, [settings]);
13
+ };
14
+ }());
@@ -1,7 +1,7 @@
1
1
  module Plupload
2
2
  VERSION = "1.5.1.1"
3
3
  module Rails
4
- VERSION = "1.0.3"
4
+ VERSION = "1.0.4"
5
5
  end
6
6
  end
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plupload-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-17 00:00:00.000000000Z
12
+ date: 2011-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &14195200 !ruby/object:Gem::Requirement
16
+ requirement: &18671700 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *14195200
24
+ version_requirements: *18671700
25
25
  description: This gem integrates Plupload 1.5.1.1 with the Rails 3.1 asset pipeline.
26
26
  email:
27
27
  - info@corinlangosch.com
@@ -33,7 +33,7 @@ files:
33
33
  - Gemfile
34
34
  - README.md
35
35
  - Rakefile
36
- - app/assets/javascripts/plupload.settings.js.coffee.erb
36
+ - app/assets/javascripts/plupload.settings.js.erb
37
37
  - lib/plupload-rails.rb
38
38
  - lib/plupload/rails.rb
39
39
  - lib/plupload/rails/engine.rb
@@ -1,9 +0,0 @@
1
- # sadly there doesn't seem to be any other way to set global settings for plupload...
2
- proxied = plupload.Uploader
3
- plupload.Uploader = ->
4
- settings = $.extend {}, arguments[0],
5
- multipart: true
6
- flash_swf_url: '<%=asset_path("plupload.flash.swf")%>'
7
- silverlight_xap_url: '<%=asset_path("plupload.silverlight.xap")%>'
8
- proxied.apply(this, [settings])
9
-