Permalink
Browse files

merging REL-0.9.0 -> trunk 308:HEAD

git-svn-id: svn+ssh://rubyforge.org/var/svn/mechanize/trunk@451 f1cf478b-080f-0410-abad-959bfeec9ea8
  • Loading branch information...
1 parent 7af819f commit 63d4e1539fdd02e128b4ace7d346806d355deaa2 aaronp committed Dec 5, 2007
Showing with 3,018 additions and 725 deletions.
  1. +0 −156 CHANGELOG
  2. +297 −0 CHANGELOG.txt
  3. 0 EXAMPLES → EXAMPLES.txt
  4. +11 −0 FAQ.txt
  5. +4 −4 GUIDE → GUIDE.txt
  6. 0 LICENSE → LICENSE.txt
  7. +125 −0 Manifest.txt
  8. +58 −0 NOTES → NOTES.txt
  9. +18 −4 README → README.txt
  10. +53 −94 Rakefile
  11. +351 −121 lib/mechanize.rb
  12. +29 −16 lib/mechanize/cookie.rb
  13. +10 −2 lib/mechanize/errors.rb
  14. +69 −31 lib/mechanize/form.rb
  15. +12 −8 lib/mechanize/form_elements.rb
  16. +67 −0 lib/mechanize/history.rb
  17. +0 −12 lib/mechanize/hpricot.rb
  18. +6 −0 lib/mechanize/inspect.rb
  19. +9 −5 lib/mechanize/list.rb
  20. +0 −5 lib/mechanize/mech_version.rb
  21. +15 −0 lib/mechanize/monkey_patch.rb
  22. +2 −2 lib/mechanize/net-overrides/net/http.rb
  23. +1 −0 lib/mechanize/net-overrides/net/https.rb
  24. +1 −1 lib/mechanize/net-overrides/net/protocol.rb
  25. +55 −46 lib/mechanize/page.rb
  26. +24 −11 lib/mechanize/page_elements.rb
  27. +35 −0 lib/mechanize/parsers/rexml_page.rb
  28. +50 −4 lib/mechanize/pluggable_parsers.rb
  29. +236 −0 lib/mechanize/rexml.rb
  30. +0 −7 test/README
  31. +1 −0 test/htdocs/alt_text.html
  32. +6 −0 test/htdocs/empty_form.html
  33. +1 −0 test/htdocs/find_link.html
  34. +1 −0 test/htdocs/form_select_none.html
  35. +5 −0 test/htdocs/link with space.html
  36. +20 −0 test/htdocs/relative/tc_relative_links.html
  37. +8 −0 test/htdocs/tc_base_link.html
  38. +11 −0 test/htdocs/tc_blank_form.html
  39. +5 −0 test/htdocs/tc_encoded_links.html
  40. +8 −0 test/htdocs/tc_follow_meta.html
  41. +48 −0 test/htdocs/tc_form_action.html
  42. +16 −0 test/htdocs/tc_links.html
  43. +10 −0 test/htdocs/tc_referer.html
  44. +19 −0 test/htdocs/tc_relative_links.html
  45. +5 −0 test/htdocs/unusual______.html
  46. +0 −30 test/proxy.rb
  47. +0 −42 test/server.rb
  48. +12 −3 test/tc_authenticate.rb
  49. +23 −0 test/tc_blank_form.rb
  50. +1 −1 test/tc_checkboxes.rb
  51. +77 −12 test/tc_cookie_class.rb
  52. +55 −0 test/tc_cookie_jar.rb
  53. +3 −3 test/tc_cookies.rb
  54. +27 −0 test/tc_encoded_links.rb
  55. +8 −0 test/tc_errors.rb
  56. +32 −0 test/tc_follow_meta.rb
  57. +52 −0 test/tc_form_action.rb
  58. +69 −0 test/tc_form_as_hash.rb
  59. +36 −0 test/tc_form_button.rb
  60. +2 −2 test/tc_form_no_inputname.rb
  61. +61 −14 test/tc_forms.rb
  62. +149 −0 test/tc_history.rb
  63. +46 −0 test/tc_html_unscape_forms.rb
  64. +25 −0 test/tc_if_modified_since.rb
  65. +38 −0 test/tc_keep_alive.rb
  66. +62 −5 test/tc_links.rb
  67. +57 −0 test/tc_mech.rb
  68. +1 −1 test/tc_no_attributes.rb
  69. +2 −2 test/tc_pluggable_parser.rb
  70. +46 −0 test/tc_referer.rb
  71. +47 −0 test/tc_relative_links.rb
  72. +20 −0 test/tc_response_code.rb
  73. +31 −0 test/tc_save_file.rb
  74. +28 −0 test/tc_subclass.rb
  75. +39 −44 test/tc_upload.rb
  76. +1 −1 test/tc_watches.rb
  77. +30 −31 test/{ts_mech.rb → test_all.rb}
  78. +116 −0 test/test_includes.rb
  79. +52 −0 test/test_mechanize_file.rb
  80. +68 −5 test/{servlets.rb → test_servlets.rb}
View
156 CHANGELOG
@@ -1,156 +0,0 @@
-= Mechanize CHANGELOG
-
-== 0.6.0
-
-* Changed main parser to use hpricot
-* Made WWW::Mechanize::Page class searchable like hpricot
-* Updated WWW::Mechanize#click to support hpricot links like this:
- @agent.click (page/"a").first
-* Clicking a Frame is now possible:
- @agent.click (page/"frame").first
-* Removed deprecated attr_finder
-* Removed REXML helper methods since the main parser is now hpricot
-* Overhauled cookie parser to use WEBrick::Cookie
-
-== 0.5.4
-
-* Added WWW::Mechanize#trasact for saving history state between in a
- transaction. See the EXAMPLES file. Thanks Johan Kiviniemi.
-* Added support for gzip compressed pages
-* Forms can now be accessed like a hash. For example, to set the value
- of an input field named 'name' to "Aaron", you can do this:
- form['name'] = "Aaron"
- Or to get the value of a field named 'name', do this:
- puts form['name']
-* File uploads will now read the file specified in FileUpload#file_name
-* FileUpload can use an IO object in FileUpload#file_data
-* Fixed a bug with saving files on windows
-* Fixed a bug with the filename being set in forms
-
-== 0.5.3
-
-* Mechanize#click will now act on the first element of an array. So if an
- array of links is passed to WWW::Mechanize#click, the first link is clicked.
- That means the syntax for clicking links is shortened and still supports
- selecting a link. The following are equivalent:
- agent.click page.links.first
- agent.click page.links
-* Fixed a bug with spaces in href's and get's
-* Added a tick, untick, and click method to radio buttons so that
- radiobuttons can be "clicked"
-* Added a tick, untick, and click method to check boxes so that
- checkboxes can be "clicked"
-* Options on Select lists can now be "tick"ed, and "untick"ed.
-* Fixed a potential bug conflicting with rails. Thanks Eric Kolve
-* Updated log4r support for a speed increase. Thanks Yinon Bentor
-* Added inspect methods and pretty printing
-
-== 0.5.2
-
-* Fixed a bug with input names that are nil
-* Added a warning when using attr_finder because attr_finder will be deprecated
- in 0.6.0 in favor of method calls. So this syntax:
- @agent.links(:text => 'foo')
- should be changed to this:
- @agent.links.text('foo')
-* Added support for selecting multiple options in select tags that support
- multiple options. See WWW::Mechanize::MultiSelectList.
-* New select list methods have been added, select_all, select_none.
-* Options for select lists can now be "clicked" which toggles their selection,
- they can be "selected" and "unselected". See WWW::Mechanize::Option
-* Added a method to set multiple fields at the same time,
- WWW::Mechanize::Form#set_fields. Which can be used like so:
- form.set_fields( :foo => 'bar', :name => 'Aaron' )
-
-== 0.5.1
-
-* Fixed bug with file uploads
-* Added performance tweaks to the cookie class
-
-== 0.5.0
-
-* Added pluggable parsers. (Thanks to Eric Kolve for the idea)
-* Changed namespace so all classes are under WWW::Mechanize.
-* Updating Forms so that fields can be used as accessors (Thanks Gregory Brown)
-* Added WWW::Mechanize::File as default object used for unknown content types.
-* Added 'save_as' method to Mechanize::File, so any page can be saved.
-* Adding 'save_as' and 'load' to CookieJar so that cookies can be saved
- between sessions.
-* Added WWW::Mechanize::FileSaver pluggable parser to automatically save files.
-* Added WWW::Mechanize::Page#title for page titles
-* Added OpenSSL certificate support (Thanks Mike Dalessio)
-* Removed support for body filters in favor of pluggable parsers.
-* Fixed cookie bug adding a '/' when the url is missing one (Thanks Nick Dainty)
-
-== 0.4.7
-
-* Fixed bug with no action in forms. Thanks to Adam Wiggins
-* Setting a default user-agent string
-* Added house cleaning to the cookie jar so expired cookies don't stick around.
-* Added new method WWW::Form#field to find the first field with a given name.
- (thanks to Gregory Brown)
-* Added WWW::Mechanize#get_file for fetching non text/html files
-
-== 0.4.6
-
-* Added support for proxies
-* Added a uri field to WWW::Link
-* Added a error class WWW::Mechanize::ContentTypeError
-* Added image alt text to link text
-* Added an visited? method to WWW::Mechanize
-* Added Array#value= which will set the first value to the argument. That
- allows syntax as such: form.fields.name('q').value = 'xyz'
- Before it was like this: form.fields.name('q').first.value = 'xyz'
-
-== 0.4.5
-
-* Added support for multiple values of the same name
-* Updated build_query_string to take an array of arrays (Thanks Michal Janeczek)
-* Added WWW::Mechanize#body_filter= so that response bodies can be preprocessed
-* Added WWW::Page#body_filter= so that response bodies can be preprocessed
-* Added support for more date formats in the cookie parser
-* Fixed a bug with empty select lists
-* Fixing a problem with cookies not handling no spaces after semicolons
-
-== 0.4.4
-
-* Fixed error in method signature, basic_authetication is now basic_auth
-* Fixed bug with encoding names in file uploads (Big thanks to Alex Young)
-* Added options to the select list
-
-== 0.4.3
-
-* Added syntactic sugar for finding things
-* Fixed bug with HttpOnly option in cookies
-* Fixed a bug with cookie date parsing
-* Defaulted dropdown lists to the first element
-* Added unit tests
-
-== 0.4.2
-
-* Added support for iframes
-* Made mechanize dependant on ruby-web rather than narf
-* Added unit tests
-* Fixed a bunch of warnings
-
-== 0.4.1
-
-* Added support for file uploading
-* Added support for frames (Thanks Gabriel[mailto:leerbag@googlemail.com])
-* Added more unit tests
-* Fixed some bugs
-
-== 0.4.0
-
-* Added more unit tests
-* Added a cookie jar with better cookie support, included expiration of cookies
- and general cookie security.
-* Updated mechanize to use built in net/http if ruby version is new enough.
-* Added support for meta refresh tags
-* Defaulted form actions to 'GET'
-* Fixed various bugs
-* Added more unit tests
-* Added a response code exception
-* Thanks to Brian Ellin (brianellin@gmail.com) for:
- Added support for CA files, and support for 301 response codes
-
Oops, something went wrong.

0 comments on commit 63d4e15

Please sign in to comment.