Dan Duvall
69154b11dd
Fix host-only cookies for unqualified hostnames
...
Removed comparison against `DomainName#cookie_domain?` during filtering
of jar cookies. It was redundant considering the later call to
`HTTP::Cookie#valid_for_url?` and prevented valid host-only cookies from
being considered for unqualified hostnames (e.g. "localhost").
RFC 6265 (5.4) does not restrict host-only cookies from being used with
such unqualified names as it does for cookies with the domain attribute
set.
2015-09-02 12:57:11 -07:00
Akinori MUSHA
405a48bcb4
Add jruby-18mode to allow_failures.
...
It is broken with Dir.mktmpdir which is used in tests.
2013-09-19 02:31:24 +09:00
Akinori MUSHA
d3d4f0dafe
Bump VERSION 1.0.2.
2013-09-10 14:52:55 +09:00
Akinori MUSHA
7afb9c6cf2
Update.
2013-09-10 14:52:45 +09:00
Akinori MUSHA
391ada20d0
HTTP::Cookie.parse() should not raise an exception if it finds a bad name or value.
2013-09-10 14:48:29 +09:00
Akinori MUSHA
9bfbc065cc
The ruby-head environment on Travis is still so broken.
2013-08-12 17:54:34 +09:00
Akinori MUSHA
e5d655fc99
Drop ruby 1.9.2.
2013-07-26 21:23:10 +09:00
Akinori MUSHA
36fe49c0ba
Add license to gemspec.
2013-07-26 19:56:57 +09:00
Lee Jarvis
5319f88dc2
fix unused variable warning in LoadError rescue
2013-05-25 10:17:13 +01:00
Akinori MUSHA
b934db8e77
Bump VERSION to 1.0.1 and add CHANGELOG.md.
2013-04-21 21:46:31 +09:00
Akinori MUSHA
40aba54618
Accept a class object where a symbol addressing a class is accepted.
...
Convert IndexError to ArgumentError, and ArgumentError to TypeError as
appropriate.
2013-04-21 20:35:17 +09:00
Akinori MUSHA
17d5a128d7
Fix error messages.
2013-04-21 19:32:57 +09:00
Akinori MUSHA
1dd16745e3
Update a comment.
2013-04-21 19:28:12 +09:00
Akinori MUSHA
90e19a2ac0
Update the summary and description.
2013-04-21 12:28:18 +09:00
Akinori MUSHA
0725376200
Mention another security feature.
2013-04-20 21:51:03 +09:00
Akinori MUSHA
b5702afb4c
Mention the eTLD support.
2013-04-20 21:36:54 +09:00
Akinori MUSHA
30b57fb2c2
List selling points.
2013-04-20 20:43:17 +09:00
Akinori MUSHA
3d4f0a65ff
Cookie#origin=: Add a comment to explain why @origin is set the last.
2013-04-18 22:23:30 +09:00
Akinori MUSHA
a0202e2192
Cookie#max_age= should not reset #expires when it fails.
2013-04-18 22:22:11 +09:00
Akinori MUSHA
640ea1b297
Omit calling #expires= when #max_age= is going to be called.
2013-04-18 21:42:22 +09:00
Akinori MUSHA
d2eb1289f5
Bump VERSION to 1.0.0.
2013-04-17 10:28:17 +09:00
Akinori MUSHA
892c07024d
Add rdoc markups.
2013-04-17 01:14:45 +09:00
Akinori MUSHA
a1cfe6bb70
Remove unused code.
2013-04-17 01:14:22 +09:00
Akinori MUSHA
0d5e666642
Improve rdoc.
2013-04-16 22:37:19 +09:00
Akinori MUSHA
bf9bbe3da8
Move Array#sort_by! to http/cookie/ruby_compat.
2013-04-16 22:15:29 +09:00
Akinori MUSHA
4ef2147138
Fix $LOADED_FEATURES comparison with Ruby 1.8.
2013-04-16 21:56:29 +09:00
Akinori MUSHA
bafb83fc06
Let AbstractStore & AbstractSaver autoloaded and add tests for autoloading.
2013-04-16 16:49:27 +09:00
Akinori MUSHA
04950f6796
Cookie#new: Reject a mixed case symbol as keyword for simplicity.
...
This fixes error with Ruby 1.8.
2013-04-16 16:39:55 +09:00
Akinori MUSHA
20cb22bbb0
Increase GC threshold for shorter test time.
2013-04-16 10:21:52 +09:00
Akinori MUSHA
a3ab578671
Fix *Store#empty?.
2013-04-16 15:05:00 +09:00
Akinori MUSHA
2bb7485460
Add tests for CookieJar#clone, #cleanup, expiration by #each and #empty?.
2013-04-16 15:05:00 +09:00
Akinori MUSHA
5bdb8f41ae
Cookie#new prefers downcased symbols for keywords.
...
Test warnings.
2013-04-16 08:44:48 +09:00
Akinori MUSHA
c293005676
Bump VERSION to 1.0.0.pre12.
2013-04-16 02:44:26 +09:00
Akinori MUSHA
8abf3483e8
Travis-CI keeps reporting SEGV in ruby 1.9.3p327, so disuse at_exit.
2013-04-16 02:20:54 +09:00
Akinori MUSHA
18dc77af9f
Replace assert_send in at_exit with a simple message output.
2013-04-16 02:04:59 +09:00
Akinori MUSHA
b8170fb7e2
Increase the chance of having a finalizer called.
2013-04-16 01:52:59 +09:00
Akinori MUSHA
8ae076d9ea
Fix the compatibility code to support Syck.
2013-04-16 01:39:09 +09:00
Akinori MUSHA
fcdaddcbe6
Emit a proper message when try_convert() fails.
2013-04-16 01:38:05 +09:00
Akinori MUSHA
b02e800dfa
Comment out unused/advisory bits to gain coverage.
2013-04-16 00:54:56 +09:00
Akinori MUSHA
10ddb688df
Inhibit cloning MozillaStore.
2013-04-16 00:38:47 +09:00
Akinori MUSHA
d806955f57
Fix hand-made autoloading to allow directly referencing MozillaStore.
2013-04-16 00:37:10 +09:00
Akinori MUSHA
ded02f8327
Make MozillaStore#close actually "work" by closing open statements.
...
Add a finalizer to MozillaStore also, which automatically closes the
SQLite3 database.
2013-04-16 00:04:54 +09:00
Akinori MUSHA
db58d2c8ab
silently(): Use ensure.
2013-04-16 00:04:15 +09:00
Akinori MUSHA
e9230a00c1
Add tests for MozillaStore#upgrade_database and fix its bugs.
2013-04-16 00:03:03 +09:00
Akinori MUSHA
25dd32219f
MozillaStore#close: Do not call SQLite3::Database#close if already closed.
2013-04-15 23:57:35 +09:00
Akinori MUSHA
8e40fc3028
Test compatibility with a YAML file saved by Mechanize::Cookie.
2013-04-15 14:15:46 +09:00
Akinori MUSHA
d44218c2e2
Cookie#acceptable? should not raise ArgumentError when it takes no argument.
...
Let CookieJar#add convert RuntimeError raised by acceptable? to
ArgumentError.
2013-04-15 10:29:07 +09:00
Akinori MUSHA
ea45ee3b38
Bump the version to 1.0.0.pre11.
2013-04-15 10:16:28 +09:00
Akinori MUSHA
03627aa42a
Fix Hash.try_convert.
2013-04-15 09:33:47 +09:00
Akinori MUSHA
94d28bdfbb
Update examples again.
2013-04-15 09:09:04 +09:00