Commit graph

  • 2a9476707c HTTP::CookieJar#load: Use File.open() instead of Kernel#open(). Akinori MUSHA 2012-10-22 15:10:34 +0900
  • 7fa5b10df6 HTTP::CookieJar#each: Take an optional URL/URI which is used as a scope. Akinori MUSHA 2012-10-22 15:08:08 +0900
  • 7c5ac21d0f HTTP::CookieJar#cleanup: Use delete_if. Akinori MUSHA 2012-10-22 15:03:36 +0900
  • b7254599bd Try not to expose @jar in normal methods. Akinori MUSHA 2012-10-22 14:52:30 +0900
  • c7247cf965 HTTP::CookieJar#empty?: Optimize. Akinori MUSHA 2012-10-22 14:51:59 +0900
  • 1731b155e6 HTTP::CookieJar#add: Check if both the domain and path of the cookie are set. Akinori MUSHA 2012-10-22 14:50:49 +0900
  • 82deac2f19 HTTP::Cookie#origin=: Acceptability check must be performed after setting the domain and path. Akinori MUSHA 2012-10-22 14:50:13 +0900
  • fa45e028a7 Treat an empty path as '/'. Akinori MUSHA 2012-10-22 13:08:28 +0900
  • 24e9b26004 HTTP::CookieJar#add: Use the hostname of domain_name. Akinori MUSHA 2012-10-22 12:59:08 +0900
  • a47a849387 Define HTTP::Cookie#name= with validation. Akinori MUSHA 2012-10-22 03:52:25 +0900
  • e18013e25e Each record in cookies.txt must have seven columns at most. Akinori MUSHA 2012-10-22 03:51:10 +0900
  • c727d39076 Move cookies.txt parser and serializer from HTTP::CookieJar to HTTP::Cookie. Akinori MUSHA 2012-10-22 03:30:01 +0900
  • fdcdae34be Make test_save_and_read_cookiestxt better. Akinori MUSHA 2012-10-22 03:29:32 +0900
  • 95c702f99b Rename HTTP::CookieJar#add! to HTTP::CookieJar#add removing the original #add. Akinori MUSHA 2012-10-22 02:39:20 +0900
  • a342680e4e Fix and move some tests from test_http_cookie_jar.rb to test_http_cookie.rb. Akinori MUSHA 2012-10-22 02:38:08 +0900
  • d2f31d90b5 HTTP::Cookie.new: Delay setting of origin. Akinori MUSHA 2012-10-22 02:20:43 +0900
  • ae4a9d8d40 Make HTTP::Cookie Comparable. Akinori MUSHA 2012-10-22 00:56:06 +0900
  • d59a0ee5ca Define a custom YAML encoder and decoder. Akinori MUSHA 2012-10-22 00:50:05 +0900
  • 53e5b270ee Improve test_save_cookies_yaml(). Akinori MUSHA 2012-10-22 00:04:53 +0900
  • aa64d3d98b Rename HTTP::Cookie#clear! to clear. Akinori MUSHA 2012-10-21 23:48:57 +0900
  • fe65dbfb89 Add HTTP::Cookie#domain_name. Akinori MUSHA 2012-10-21 23:48:21 +0900
  • 232906e0c3 Remove obsolete instance variables. Akinori MUSHA 2012-10-21 23:05:21 +0900
  • 39d6965ed9 Use String.try_convert if available. Akinori MUSHA 2012-10-21 19:12:13 +0900
  • dd3ca9a0f1 Inhibit a domain-less cookie from being used for checking validity. Akinori MUSHA 2012-10-18 19:00:33 +0900
  • c3e4fae60c Refer to the instance variable @domain instead of the accessor. Akinori MUSHA 2012-10-18 18:59:37 +0900
  • 75f7ee6505 Make valid_for_uri? and acceptable_from_uri? accept a URL string also. Akinori MUSHA 2012-10-18 18:57:46 +0900
  • e010e8f30e Add tests for valid_for_uri?. Akinori MUSHA 2012-10-18 18:46:42 +0900
  • 79ab0ffabf Oops, fix infinite recursive calls of URI(). Akinori MUSHA 2012-10-18 18:40:39 +0900
  • 3d7b39ff86 Update the example code. Akinori MUSHA 2012-10-17 22:40:20 +0900
  • 1a471513de Disallow changing the origin of a cookie once it is set. Akinori MUSHA 2012-10-17 22:28:57 +0900
  • 532101a102 Introduce a new cookie object attribute "origin". Akinori MUSHA 2012-10-17 22:13:03 +0900
  • a1e5e1628a Prepare for using URI(url_or_uri). Akinori MUSHA 2012-10-17 21:48:36 +0900
  • c23dafe8c3 Document that HTTP::Cookie.parse takes an optional block. Akinori MUSHA 2012-10-17 22:11:44 +0900
  • 905cd2bc26 HTTP::Cookie.parse now returns an compacted array. Akinori MUSHA 2012-10-17 22:00:13 +0900
  • 6110545ff9 Drop HTTP::Cookie#set_domain. Akinori MUSHA 2012-10-17 21:50:24 +0900
  • 0cf86222f6 Booleanize the value if the key name is suffixed with a "?". Akinori MUSHA 2012-10-17 20:26:40 +0900
  • ad42622d3b Fix a bad example that blindly eats a cookie without checking the origin. Akinori MUSHA 2012-10-14 22:19:59 +0900
  • 2b96f2317d Class name paranoia. Akinori MUSHA 2012-10-14 22:10:44 +0900
  • 731f2b8c9a Add bundler >= 1.2.0 as development dependency. Akinori MUSHA 2012-10-14 22:09:04 +0900
  • 060fc63c2a Import cookie related stuff from Mechanize. Akinori MUSHA 2012-10-14 18:52:52 +0900