gorp 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/gorp.gemspec +1 -1
  2. data/lib/gorp.rb +2 -2
  3. data/lib/version.rb +1 -1
  4. metadata +1 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{gorp}
5
- s.version = "0.11.0"
5
+ s.version = "0.11.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Sam Ruby"]
@@ -445,8 +445,8 @@ def post path, form
445
445
  # if page isn't one big form, find matching button on page instead
446
446
  require 'cgi'
447
447
  query = form.map{|key,val| /[&?]#{key}=#{CGI.escape(val.to_s)}(&|$)/}
448
- xform = body.search('form').find do |element|
449
- query.all? {|kv| element['action'] =~ kv}
448
+ xform = body.search('//form').find do |element|
449
+ query.all? {|kv| element.attribute('action').to_s =~ kv}
450
450
  end
451
451
  end
452
452
 
@@ -2,7 +2,7 @@ module Gorp
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 11
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gorp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Ruby