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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f60fc04a714620e05aa698969d262fb5d73d14e0
4
- data.tar.gz: f90a6eb06c5934f6df39f4effc4ec6cc7e630a00
3
+ metadata.gz: 162a4e5cbd1a2e3e811dbdc2ec28924af612a221
4
+ data.tar.gz: 6ec6f20017bb47580ba5bdfeff2f24b0c5612f5a
5
5
  SHA512:
6
- metadata.gz: 3565f2df608377abec798bab1b4aeecbf554c93913c6554a150b659e0ff15a5059c5614a985b3a6f0b4b00bffe5f6bdf7deefac6b6c79901334375fc377b305a
7
- data.tar.gz: 75fab37719b676e4b0b52c800ad472f097bb80d96c64a599e49057f9447ae1ef707b1c1ff3e97c2dc181d4be2b7c4fe32dd209bb45a937ff26ab26731e838370
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)
@@ -1,3 +1,3 @@
1
1
  module TurboGraft
2
- VERSION = '0.1.17'
2
+ VERSION = '0.1.18'
3
3
  end
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.17
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-03-20 00:00:00.000000000 Z
16
+ date: 2015-04-22 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: coffee-rails