remotipart 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.rdoc CHANGED
@@ -1,5 +1,23 @@
1
1
  = History
2
2
 
3
+ === 0.4.2 / 2011-26-08
4
+
5
+ * Minor Enhancements
6
+ * Updated to jquery.form.js v2.84
7
+
8
+ === 0.4.1 / 2011-07-12
9
+
10
+ * Minor Enhancements
11
+ * Updated README and docs
12
+
13
+ === 0.4.0 / 2011-07-12
14
+
15
+ * New Features
16
+ * Added `remotipart_submitted?` helper method for controllers and views
17
+ * Added railtie and engine support to add remotipart and dependencies to Rails 3.0 (in the js :defaults) and 3.1 (in the asset pipeline) apps automatically
18
+ * Enhancements
19
+ * Restructured gem to integrate better with Rails apps
20
+
3
21
  === 0.3.0 / 2011-02-24
4
22
 
5
23
  * New Features
@@ -1,6 +1,6 @@
1
1
  module Remotipart
2
2
  module Rails
3
- VERSION = "0.4.1"
4
- FORMJS_VERSION = "2.82"
3
+ VERSION = "0.4.2"
4
+ FORMJS_VERSION = "2.84"
5
5
  end
6
6
  end
data/remotipart.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{remotipart}
8
- s.version = "0.4.1"
8
+ s.version = "0.4.2"
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 = %q{2011-07-12}
12
+ s.date = %q{2011-08-26}
13
13
  s.description = %q{Remotipart is a Ruby on Rails gem enabling remote multipart forms (AJAX style file uploads) with jQuery.
14
14
  This gem augments the native Rails 3 jQuery-UJS remote form function enabling asynchronous file uploads with little to no modification to your application.
15
15
  }
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * jQuery Form Plugin
3
- * version: 2.82 (15-JUN-2011)
3
+ * version: 2.84 (12-AUG-2011)
4
4
  * @requires jQuery v1.3.2 or later
5
5
  *
6
6
  * Examples and documentation at: http://malsup.com/jquery/form/
@@ -50,7 +50,7 @@ $.fn.ajaxSubmit = function(options) {
50
50
  return this;
51
51
  }
52
52
 
53
- var method, action, url, $form = this;;
53
+ var method, action, url, $form = this;
54
54
 
55
55
  if (typeof options == 'function') {
56
56
  options = { success: options };
@@ -91,7 +91,7 @@ $.fn.ajaxSubmit = function(options) {
91
91
  if (options.data) {
92
92
  options.extraData = options.data;
93
93
  for (n in options.data) {
94
- if(options.data[n] instanceof Array) {
94
+ if( $.isArray(options.data[n]) ) {
95
95
  for (var k in options.data[n]) {
96
96
  a.push( { name: n, value: options.data[n][k] } );
97
97
  }
@@ -188,12 +188,14 @@ $.fn.ajaxSubmit = function(options) {
188
188
 
189
189
  // private function for handling file uploads (hat tip to YAHOO!)
190
190
  function fileUpload(a) {
191
- var form = $form[0], i, s, g, id, $io, io, xhr, sub, n, timedOut, timeoutHandle;
191
+ var form = $form[0], el, i, s, g, id, $io, io, xhr, sub, n, timedOut, timeoutHandle;
192
+ var useProp = !!$.fn.prop;
192
193
 
193
194
  if (a) {
194
195
  // ensure that every serialized input is still enabled
195
196
  for (i=0; i < a.length; i++) {
196
- $(form[a[i].name]).attr('disabled', false);
197
+ el = $(form[a[i].name]);
198
+ el[ useProp ? 'prop' : 'attr' ]('disabled', false);
197
199
  }
198
200
  }
199
201
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remotipart
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Greg Leppert
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-07-12 00:00:00 -04:00
19
+ date: 2011-08-26 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency