Permalink
Commits on Apr 18, 2011
  1. Update manifest

    drbrain committed Apr 18, 2011
  2. Fix warnings

    drbrain committed Apr 18, 2011
  3. Clarify documentation

    drbrain committed Apr 18, 2011
  4. Note accept-charset in CHANGELOG

    drbrain committed Apr 18, 2011
  5. Merge branch 'form_accept_charset' of https://github.com/kitamomonga/…

    …mechanize into kitamomonga-form_accept_charset
    
    * 'form_accept_charset' of https://github.com/kitamomonga/mechanize:
      Form#ignore_encoding_error, Util::ENCODING_ERRORS, Util::NEW_RUBY_ENCODING, new tests for Util.from_native_charset
      Mechanize 2.0.0 on Ruby 1.9.2 sends forms properly.
    drbrain committed Apr 18, 2011
  6. Simplify 404 checking

    drbrain committed Apr 18, 2011
  7. Merge branch 'webrobots_when_404' of https://github.com/kitamomonga/m…

    …echanize into kitamomonga-webrobots_when_404
    
    * 'webrobots_when_404' of https://github.com/kitamomonga/mechanize:
      Mechanize#webrobots_http_get now handles 404 Not Found
    drbrain committed Apr 18, 2011
Commits on Apr 17, 2011
  1. Cleanup Mechanize::Page comment

    drbrain committed Apr 17, 2011
Commits on Apr 16, 2011
Commits on Apr 14, 2011
  1. Form#ignore_encoding_error, Util::ENCODING_ERRORS, Util::NEW_RUBY_ENC…

    …ODING, new tests for Util.from_native_charset
    
    Util::ENCODING_ERRORS. Array including encoding errors to rescue/ignore
    Util::NEW_RUBY_ENCODING. returns true if RUBY_VERSION is 1.9.0 or later
    Util.encode_to(). inner convert method (private)
    Form#ignore_encoding_error=. (was #enable_encoding_error=) default is false, every error raises
    add test for Util.from_native_charset to test/test_mechanize_util.rb
    remove some test from test/test_mechanize_form_encoding
    remove encoding option setting. it was not so useful for sending forms
    change Iconv.iconv().join to Iconv.conv(). It works in the same way
    loglevel of encoding error is now Logger::DEBUG
    Form#encoding is logged at Form#build_query in Logger::INFO
    
    Changes of this branch from tenderlove/mechanize/master:
      accept-charset support. If form has accept-charset="enc1", the form contents are encoded in enc1.
      Form#encoding=. change/set encoding of contents (i.e. UTF-8). default is accept-charset or Page#encoding.
      Form#encoding is logged on sending forms.
      all encoding errors raise and are logged on sending forms.
      Form#ignore_encoding_error=. set true if you want to suppress encoding errors on forms anyway.
      Util::ENCODING_ERRORS. includes encoding error classes to rescue/ignore.
      Util::NEW_RUBY_ENCODING. returns true if RUBY_VERSION is 1.9.0 or later.
      Util.encode_to(). inner convert method (private).
    kitamomonga committed Apr 14, 2011
Commits on Apr 13, 2011
  1. Mechanize 2.0.0 on Ruby 1.9.2 sends forms properly.

    support of <form accept-charset="enc">. Mechanize encodes form data string from UTF-8 to enc.
    Form#encoding= overwrites or sets accept-charset. Default is Page#encoding.
    All Encoding class error raises on Ruby 1.9.2. Set the correct data if you do not want errors.
    Form#encoding= accepts String#encode option on Ruby 1.9.2.
    Iconv::InvalidEncoding on Ruby 1.9.1 or earlier is logged and ignored.
    Iconv::IllegalSequence on Ruby 1.9.1 or earlier raises.
    kitamomonga committed Apr 13, 2011
Commits on Apr 11, 2011
  1. Update manifest

    drbrain committed Apr 11, 2011
  2. Remove require of uri_resolver

    drbrain committed Apr 11, 2011