remotipart 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,10 @@
1
1
  = History
2
2
 
3
+ === 1.0.2 / 2012-02-03
4
+
5
+ * Minor Enhancements
6
+ * Fixed rendering when JS response contains `textarea` tag
7
+
3
8
  === 1.0.1 / 2011-11-27
4
9
 
5
10
  * Minor Enhancements
@@ -1,6 +1,6 @@
1
1
  module Remotipart
2
2
  module Rails
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  IFRAMETRANSPORT_VERSION = "07.05.2011"
5
5
  end
6
6
  end
@@ -1,16 +1,16 @@
1
1
  module Remotipart
2
-
3
- #Responder used to automagically wrap any non-xml replies in a text-area
4
- # as expected by iframe-transport
2
+ # Responder used to automagically wrap any non-xml replies in a text-area
3
+ # as expected by iframe-transport.
5
4
  module RenderOverrides
5
+ include ActionView::Helpers::TagHelper
6
+
6
7
  def render *args
7
8
  super
8
9
  if remotipart_submitted?
9
- response.body = %{<textarea data-type=\"#{content_type}\" response-code=\"#{response.response_code}\">#{response.body}</textarea>}
10
+ response.body = %{<textarea data-type=\"#{content_type}\" response-code=\"#{response.response_code}\">#{escape_once(response.body)}</textarea>}
10
11
  response.content_type = Mime::HTML
11
12
  end
12
13
  response_body
13
14
  end
14
15
  end
15
16
  end
16
-
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "remotipart"
8
- s.version = "1.0.1"
8
+ s.version = "1.0.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 = "2011-11-27"
12
+ s.date = "2012-02-03"
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 = [
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.1
4
+ version: 1.0.2
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: 2011-11-27 00:00:00.000000000Z
13
+ date: 2012-02-03 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thoughtbot-shoulda
17
- requirement: &2152392700 !ruby/object:Gem::Requirement
17
+ requirement: &2152349360 !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: *2152392700
25
+ version_requirements: *2152349360
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