flammarion_rails 0.2.4 → 0.2.5

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: df684ca972ceadcfd8ba88c0de8dc4e65520c2c0
4
- data.tar.gz: 8b10df8911f348542977936537ea9c28686a61c8
3
+ metadata.gz: 5e17f91f8eb5639a53a6a9f03642a49ccbcfe0a2
4
+ data.tar.gz: 1f85752e952ca289b0a3ccd2db44ee2fe08bb50d
5
5
  SHA512:
6
- metadata.gz: 685a4c6e53a633457c0bd1951e24486a543e3191ffb510979b626d04077dec2c6a0a8e102e4a4222709bbea6ea5ed7bd65e8c35dd2a676da195ca8c18c75398e
7
- data.tar.gz: 01d083fc1f0011bfeeb6fb8645824ed6e3bb5e59f8e9572a5e3c906b4976f12e16809d0daf73d950aeee237d4ded6eac91eeb8729dcf7c3728ba24bdea84e706
6
+ metadata.gz: 636cdec1da26ec512246d0480a601590d6144d76d69b2786f4ffccaa0821df837515eccdc0992b727e30be8bfb010c7a88e9de00b6c40d259ff3ed2773f82793
7
+ data.tar.gz: 1c00c217a28ed7c990d9048da02d94783c0bbfb85580d6a430a5390d937a68d25c1630f9a6deb623893c92dbf3823245872f179876f8465a846312aa5194e2d1
@@ -66,15 +66,12 @@ module Flammarion
66
66
  url = params.delete(:url)
67
67
  uri = URI.parse(url)
68
68
  query_params = Rack::Utils.parse_nested_query(uri.query)
69
- request_params = {}
70
69
 
70
+ request_params = {}
71
71
  if params.key?(:form)
72
- params[:method] = 'post'
73
72
  request_params = Rack::Utils.parse_nested_query(params.delete(:form))
74
73
  request_params[params.delete(:button)] = ''
75
- end
76
- if params.key?(:_method)
77
- params[:method] = params[:_method]
74
+ params[:method] = request_params[:_method] || 'post'
78
75
  end
79
76
  http_method = (params[:method] ||= :get).to_s.upcase!
80
77
 
@@ -1,3 +1,3 @@
1
1
  module FlammarionRails
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flammarion_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrice Lebel