turbograft 0.1.7 → 0.1.8

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: b38137db9d35f02cbed6e6d55e1f124e13af469d
4
- data.tar.gz: d2326dc875641530e5210b6c544f8516015bd592
3
+ metadata.gz: 32b31520529d838a4c5045f602072c593e2934d7
4
+ data.tar.gz: 2e4a8c36bfe9f8a1160611f3fc43e869b9c42d4f
5
5
  SHA512:
6
- metadata.gz: 4eb09f2ecafb1d673b13c66163ca8548910486b6db719dd86c476d2e1cbf62d9abfa9fd648ecf49e2d1dbb1bdfeb5a9cd469b0ef1215780c90bb06dc2f353cf6
7
- data.tar.gz: c81a4e66ce51febe91a32c163db7079203be7ea6f1ea66f04dd8b7aeae5a41346745a700aff1c70c5985b2b8f7bdd01c4ffa2b8ccccefee92d1644dd91c6c01e
6
+ metadata.gz: 7a3d5f7aa1f4ae0f8d09eb21db59baf3389af2b19859df422a53049ebae852a8af73d211ae940bc227ee457153a7a9ead49be1182ab08b78002fd82948adcb23
7
+ data.tar.gz: 694571fbbecaf72f7d8e1d0b2ac13d8531916e9bb5d41036e8363735d8e3636c8ba0bb949bc813fdeabbd57aea87fec55751a0f71d28cd3527db99c22607ff8e
@@ -58,9 +58,7 @@ class TurboGraft.Remote
58
58
  else
59
59
  formData = ''
60
60
 
61
- if formData instanceof FormData
62
- formData.append("_method", @opts.httpRequestType) if @opts.httpRequestType
63
- else
61
+ if formData not instanceof FormData
64
62
  @contentType = "application/x-www-form-urlencoded; charset=UTF-8"
65
63
  formData = @formAppend(formData, "_method", @opts.httpRequestType) if formData.indexOf("_method") == -1 && @opts.httpRequestType && @actualRequestType != 'GET'
66
64
 
@@ -1,3 +1,3 @@
1
1
  module TurboGraft
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.8'
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kristian Plettenberg-Dussault