turbograft 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/assets/javascripts/turbograft/remote.coffee +2 -1
- data/lib/turbograft/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 162a4e5cbd1a2e3e811dbdc2ec28924af612a221
|
4
|
+
data.tar.gz: 6ec6f20017bb47580ba5bdfeff2f24b0c5612f5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09a4a0ffc527f89b0eca473b66f24316508eed295fc216fc7ec37dd86f047ac69eb168e40bb277a501fcfc518f5eec758542fdec13cc3740df5334b172595eab
|
7
|
+
data.tar.gz: 5857f7123cfa70f38e3a45037cb2e788bb2724384337d7fdd6d2d366bf8e6e56ab6bbc6ab8cb430ae4c8cbc04c996083a67529be40283c69fd53ae6475491a5c
|
@@ -4,6 +4,7 @@ class TurboGraft.Remote
|
|
4
4
|
@initiator = form || target
|
5
5
|
|
6
6
|
@actualRequestType = if @opts.httpRequestType?.toLowerCase() == 'get' then 'GET' else 'POST'
|
7
|
+
@useNativeEncoding = @opts.useNativeEncoding
|
7
8
|
|
8
9
|
@formData = @createPayload(form)
|
9
10
|
|
@@ -52,7 +53,7 @@ class TurboGraft.Remote
|
|
52
53
|
|
53
54
|
createPayload: (form) ->
|
54
55
|
if form
|
55
|
-
if form.querySelectorAll("[type='file'][name]").length > 0
|
56
|
+
if @useNativeEncoding || form.querySelectorAll("[type='file'][name]").length > 0
|
56
57
|
formData = @nativeEncodeForm(form)
|
57
58
|
else # for much smaller payloads
|
58
59
|
formData = @uriEncodeForm(form)
|
data/lib/turbograft/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbograft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kristian Plettenberg-Dussault
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2015-
|
16
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: coffee-rails
|