remotipart 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +4 -0
- data/README.rdoc +1 -1
- data/lib/remotipart/rails/version.rb +1 -1
- data/remotipart.gemspec +3 -3
- data/vendor/assets/javascripts/jquery.remotipart.js +10 -1
- metadata +5 -5
data/History.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -13,7 +13,7 @@ This gem augments the native Rails jQuery remote form functionality enabling asy
|
|
13
13
|
|
14
14
|
== Installation
|
15
15
|
|
16
|
-
<b>Your app should be using jquery-rails gem v1.0.12 or above.</b>
|
16
|
+
<b>Your app should be using jquery-rails gem v1.0.12 or above (except jquery-rails v2.0.3 and v2.1.0; there was a {bug in jquery-rails}[https://github.com/rails/jquery-ujs/issues/271] which causes remotiarpt to not work for those versions).</b>
|
17
17
|
|
18
18
|
If you're using an old version of the jquery-rails gem,
|
19
19
|
make sure you have a supported jquery-ujs (rails.js or jquery_ujs.js) version from {VERSION_COMPATIBILITY}[https://github.com/JangoSteve/remotipart/blob/master/VERSION_COMPATIBILITY.rdoc].
|
data/remotipart.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "remotipart"
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Greg Leppert", "Steve Schwartz"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2013-02-08"
|
13
13
|
s.description = "Remotipart is a Ruby on Rails gem enabling remote multipart forms (AJAX style file uploads) with jQuery.\n This gem augments the native Rails 3 jQuery-UJS remote form function enabling asynchronous file uploads with little to no modification to your application.\n "
|
14
14
|
s.email = ["greg@formasfunction.com", "steve@alfajango.com"]
|
15
15
|
s.extra_rdoc_files = [
|
@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
|
|
41
41
|
]
|
42
42
|
s.homepage = "http://www.alfajango.com/blog/remotipart-rails-gem/"
|
43
43
|
s.require_paths = ["lib"]
|
44
|
-
s.rubygems_version = "1.8.
|
44
|
+
s.rubygems_version = "1.8.15"
|
45
45
|
s.summary = "Remotipart is a Ruby on Rails gem enabling remote multipart forms (AJAX style file uploads) with jQuery."
|
46
46
|
|
47
47
|
if s.respond_to? :specification_version then
|
@@ -20,6 +20,15 @@
|
|
20
20
|
settings.iframe = true;
|
21
21
|
settings.files = $($.rails.fileInputSelector, form);
|
22
22
|
settings.data = form.serializeArray();
|
23
|
+
|
24
|
+
// jQuery 1.9 serializeArray() contains input:file entries
|
25
|
+
// so exclude them from settings.data, otherwise files will not be sent
|
26
|
+
settings.files.each(function(i, file){
|
27
|
+
for (var j = settings.data.length - 1; j >= 0; j--)
|
28
|
+
if (settings.data[j].name == file.name)
|
29
|
+
settings.data.splice(j, 1);
|
30
|
+
})
|
31
|
+
|
23
32
|
settings.processData = false;
|
24
33
|
|
25
34
|
// Modify some settings to integrate JS request with rails helpers and middleware
|
@@ -51,7 +60,7 @@
|
|
51
60
|
}
|
52
61
|
};
|
53
62
|
|
54
|
-
$(
|
63
|
+
$(document).on('ajax:aborted:file', 'form', function(){
|
55
64
|
var form = $(this);
|
56
65
|
|
57
66
|
remotipart.setup(form);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remotipart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-02-08 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: thoughtbot-shoulda
|
17
|
-
requirement: &
|
17
|
+
requirement: &70134904117000 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70134904117000
|
26
26
|
description: ! "Remotipart is a Ruby on Rails gem enabling remote multipart forms
|
27
27
|
(AJAX style file uploads) with jQuery.\n This gem augments the native Rails 3
|
28
28
|
jQuery-UJS remote form function enabling asynchronous file uploads with little to
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
79
|
rubyforge_project:
|
80
|
-
rubygems_version: 1.8.
|
80
|
+
rubygems_version: 1.8.15
|
81
81
|
signing_key:
|
82
82
|
specification_version: 3
|
83
83
|
summary: Remotipart is a Ruby on Rails gem enabling remote multipart forms (AJAX style
|