Commit graph

302 commits

Author SHA1 Message Date
Akinori MUSHA
e8b7de0c54 Update the ruby versions to test this gem with 2022-05-25 11:23:16 +09:00
Akinori MUSHA
c4b73bfa4f Relax the version constraints on sqlite3 2022-05-25 11:21:26 +09:00
Akinori MUSHA
b4b240b31a
Merge pull request #35 from ShockwaveNN/patch-1
Add 1.0.4 version to CHANGELOG
2022-05-25 09:32:52 +09:00
Pavel Lobashov
be89614f46
Add 1.0.4 version to CHANGELOG
I've received update of `http-cookie` to 1.0.4 via dependabot, but seem there is no CHANGELOG entry for this release

Judging by changes between tag - unreleased changes is actually v1.0.4
2021-06-08 09:38:24 +03:00
Akinori MUSHA
2578ebb536 Add a missing branches key 2021-06-07 17:11:23 +09:00
Akinori MUSHA
47acf91edf Migrate from Travis CI to GitHub Actions 2021-06-07 17:05:24 +09:00
Akinori MUSHA
28a7478d83 Improve tests with $LOADED_FEATURES 2021-06-07 16:05:23 +09:00
Akinori MUSHA
11b9108daa
Merge pull request #34 from sparklemotion/safe_yaml
Use safe_load when using Psych >=3.1
2021-06-07 15:35:10 +09:00
Akinori MUSHA
2c220f44dd Allow aliases because YAML.dump generates aliases when it sees multiple occurrences of an object 2021-06-07 14:45:58 +09:00
Akinori MUSHA
7a1bf4fbb3 Use safe_load when using Psych >=3.1 2021-06-07 13:41:45 +09:00
Akinori MUSHA
9eb68dcce5 Merge pull request #14 from wrzasa/master
More informative error message when cannot load a store (rebased on current master)
2016-12-09 21:52:51 +09:00
Akinori MUSHA
24b5d407d9 Merge pull request #10 from marxarelli/fix/host-only-cookie-domain-comparison
Fix host-only cookies for unqualified hostnames
2016-12-09 21:48:59 +09:00
Akinori MUSHA
8091569f55 Add a change log 2016-12-09 21:45:52 +09:00
Akinori MUSHA
80e855fdf2 Merge branch 'fix_time_representation' 2016-12-09 21:43:47 +09:00
Akinori MUSHA
56e0fd5175 Add 1.8 compatibility 2016-12-09 21:38:35 +09:00
Akinori MUSHA
96b9edd7c8 Merge branch 'github0013-microseconds' into fix_time_representation 2016-12-09 21:17:46 +09:00
Akinori MUSHA
9f5a0d65da MozillaStore: creationTime and lastAccessed are in usec, not seconds
This was pointed out by #8.  I decided not to add extra code for
backwards compatibility of their values.
2016-12-09 21:12:32 +09:00
Akinori MUSHA
27a9027102 Use rdoc 2.4 for rubies < 1.9 2016-12-09 01:08:59 +09:00
Akinori MUSHA
c9904d1ed4 Use json < 2 for rubies < 2.0 2016-12-09 00:14:26 +09:00
Akinori MUSHA
5d7fbde318 Avoid warnings 2016-12-08 23:49:44 +09:00
Akinori MUSHA
40d988ab92 Set the originAttributes column when inserting a record 2016-12-08 23:42:40 +09:00
Akinori MUSHA
930d8242cf Bump VERSION to 1.0.4 2016-11-25 01:54:53 +09:00
Akinori MUSHA
11f568a021 Add an entry for the previous commit 2016-11-25 01:54:29 +09:00
Akinori MUSHA
67630ac6be Support Mozilla's cookie storage format up to version 7 2016-11-25 01:52:52 +09:00
Akinori MUSHA
f4a18a76ca Bump VERSION to 1.0.3 2016-09-30 20:01:40 +09:00
Akinori MUSHA
6a4688fdb1 Add an entry for the previous change 2016-09-30 19:26:31 +09:00
Akinori MUSHA
7f94a9e5d9 Treat comma as normal character in HTTP::Cookie.cookie_value_to_hash
As pointed out in CVE-2016-7401, treating comma in a Cookie header value
as separator may cause security problems.
2016-09-30 19:20:39 +09:00
wrzasa
f828cf0319 More informative error message when cannot load a store
I tried to use `mozilla` store, but got the following message, that gave me no clue what's wrong:

          ArgumentError: cookie store unavailable: :mozilla

After some debugging I found that I have no `sqlite3` gem installed. But the error message should tell mi that. 

This change should help.
2016-03-18 17:24:56 +01:00
Akinori MUSHA
1c4a7bbe4b Merge branch 'update-travis' 2016-03-17 21:46:15 +09:00
Akinori MUSHA
7395ec4b44 Use test-unit 2.x for Ruby 1.8 2016-03-17 20:15:32 +09:00
Akinori MUSHA
43e88a5a32 Update bundler before install 2016-03-17 20:15:21 +09:00
Akinori MUSHA
4a4de1dac4 Cache bundler 2016-03-17 20:09:20 +09:00
Akinori MUSHA
2fa786ad99 Update the list of rubies 2016-03-17 20:09:17 +09:00
Akinori MUSHA
c724dec152 Depend on Rake <11 if Ruby < 1.9 2016-03-17 19:10:20 +09:00
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
ore
c015791311 fix lastAccessed and creationTime
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsICookie2
creationTime	PRInt64	The creation time of the cookie, in microseconds since midnight (00:00:00), January 1, 1970 UTC.
lastAccessed	PRInt64	The last time the cookie was accessed, in microseconds since midnight (00:00:00) on January 1, 1970 UTC.
2015-07-25 10:49:35 +09: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