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 |
|
Akinori MUSHA
|
cd9571615a
|
Update examples.
|
2013-04-15 08:54:48 +09:00 |
|
Akinori MUSHA
|
28458101b6
|
HTTP::Cookie.set_cookie_value: Don't take an origin argument.
|
2013-04-15 08:54:09 +09:00 |
|
Akinori MUSHA
|
88e3f28591
|
Directly define String#try_convert and Hash#try_convert in ruby 1.8.
|
2013-04-14 18:22:30 +09:00 |
|
Akinori MUSHA
|
39861d2dbb
|
Fix time value validation.
|
2013-04-14 13:47:49 +09:00 |
|
Akinori MUSHA
|
1a05bb4dd0
|
Add more tests.
|
2013-04-14 13:40:49 +09:00 |
|
Akinori MUSHA
|
9a6b18463b
|
scan_name never returns nil because RE_NAME matches an empty string.
|
2013-04-14 13:29:08 +09:00 |
|
Akinori MUSHA
|
028b77987c
|
Gain more coverage.
|
2013-04-14 13:02:04 +09:00 |
|
Akinori MUSHA
|
6ec66d11ed
|
Restore and improve compatibility with ruby 1.8.
|
2013-04-14 13:01:37 +09:00 |
|
Akinori MUSHA
|
655fc9eb56
|
Add tests for the constructor & store.
|
2013-04-14 12:19:11 +09:00 |
|
Akinori MUSHA
|
c9a8e29202
|
Fix a typo.
|
2013-04-14 12:19:10 +09:00 |
|
Akinori MUSHA
|
a1a130f156
|
CookieJar#parse: Use the block's return values to decide whether to add a cookie.
|
2013-04-14 12:10:28 +09:00 |
|
Akinori MUSHA
|
5478f3d9c9
|
Improve rdoc.
|
2013-04-14 11:49:40 +09:00 |
|
Akinori MUSHA
|
6fcc298b80
|
MozillaStore saves timestamps in seconds, so use a session cookie for testing.
|
2013-04-13 13:35:54 +09:00 |
|
Akinori MUSHA
|
9fec000a29
|
Slightly fix the timestamp tests.
|
2013-04-13 13:27:09 +09:00 |
|
Akinori MUSHA
|
2e8fcb4a76
|
yaml_initialize: Initialize @origin to reduce warnings.
|
2013-04-13 13:04:54 +09:00 |
|
Akinori MUSHA
|
17a3cbc970
|
Remove an unsupported keyword: session.
|
2013-04-13 12:57:13 +09:00 |
|
Akinori MUSHA
|
02587d67e0
|
Cookie.new: Deprecate un-downcased keywords.
|
2013-04-13 12:56:33 +09:00 |
|
Akinori MUSHA
|
75267e8002
|
Use assert_send for comparison tests to see what is going on.
|
2013-04-12 23:18:06 +09:00 |
|
Akinori MUSHA
|
e1857d76a4
|
Add Cookie.cookie_value and Cookie.cookie_value_to_hash.
|
2013-04-12 02:15:13 +09:00 |
|
Akinori MUSHA
|
82e65b4a9b
|
Allow assigning nil to the cookie value to make an expiration cookie.
Cookie.new(): Make the value parameter can be omittable.
|
2013-04-12 02:13:08 +09:00 |
|
Akinori MUSHA
|
8c30527293
|
Update rdoc and comments.
|
2013-04-12 20:22:50 +09:00 |
|
Akinori MUSHA
|
f1fe763007
|
CookieJar#cookie(): Allow call without an argument.
|
2013-04-12 01:40:17 +09:00 |
|
Akinori MUSHA
|
53758d0a77
|
Omit expiration check in cookies(). Remove an unused variable.
|
2013-04-12 15:41:18 +09:00 |
|
Akinori MUSHA
|
917adc1abb
|
Add a test for Cookie#accessed_at.
|
2013-04-12 01:25:04 +09:00 |
|
Akinori MUSHA
|
a485e83ad9
|
Simply use cookie.domain instead of cookie.domain_name.hostname.
|
2013-04-12 01:19:49 +09:00 |
|
Akinori MUSHA
|
f3b8abdd8e
|
Add CookieJar#delete().
|
2013-04-12 01:19:39 +09:00 |
|
Akinori MUSHA
|
2ef3e42067
|
Add a note about the for_domain flag in the rdoc for CookieJar#add().
|
2013-04-12 01:19:03 +09:00 |
|