http-cookie 1.1.4 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9646a8e61d3bd1af54f1b8c942c1d760816ca2d50f65d3e1a178f93410ddfc3
4
- data.tar.gz: 4480a1a64080ff763b3b86aefce79343b9c43d3191753b6f03d7788d9110a5d0
3
+ metadata.gz: 72ef3493437238f93258320d1e8bdfea5d155e731ed6e88d55b284bff3c7a3a0
4
+ data.tar.gz: ecf432149b7b13a7437ad6c8a8433b85fbe4cf223ba07016831c2da3a8598de2
5
5
  SHA512:
6
- metadata.gz: 405648352cb955f1f8a709879cac04a8984d14658634cf9fb9f88104d2761e4431c8f60c546f7ae79a61dad34f2875d635c2df1920423bca1d3dfdcb7693f8e8
7
- data.tar.gz: 43f69d3a18c4b5e066cb7caed32a02e14ba68cfda9008832a1de6f066b74704e6866ba3f063fa9f640ffb1f03111ac881787c6e8dfaf373cac79a31e2f3fbe18
6
+ metadata.gz: 110ace005f635800820a73c4c4955cdd0d80fdfddf781949957f2738e0bd7d78068c5d03537f9defa7eba25b7f8156e823897460cd3bf84db8fd7dff55550cd2
7
+ data.tar.gz: c20f7c2409b86773bcf93367d135058dea7bf52f7fe3ef240161be0b137d2dce9ced8fc4e8398353b876c469edaebcdecc2e7cba77f92795972e6472a8f13959
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 1.1.6 (2026-04-20)
2
+
3
+ - Use `autoload` to avoid "circular require" warnings between `http/cookie` and `http/cookie_jar`. (#65)
4
+
5
+
6
+ ## 1.1.5 (2026-04-19)
7
+
8
+ - Fix `NameError: uninitialized constant HTTP::Cookie::MAX_COOKIES_TOTAL` when `http/cookie_jar` is required without `http/cookie`, as done by the `http` gem. (#62)
9
+
10
+
1
11
  ## 1.1.4 (2026-04-07)
2
12
 
3
13
  - Fix `require "http/cookie_jar"` raising `NameError: uninitialized constant HTTP`. (#61)
@@ -1,5 +1,5 @@
1
1
  module HTTP
2
2
  class Cookie
3
- VERSION = "1.1.4"
3
+ VERSION = "1.1.6"
4
4
  end
5
5
  end
data/lib/http/cookie.rb CHANGED
@@ -7,7 +7,10 @@ require 'uri'
7
7
  require 'domain_name'
8
8
  require 'http/cookie/ruby_compat'
9
9
  require 'cgi/escape'
10
- require 'http/cookie_jar'
10
+
11
+ module HTTP
12
+ autoload :CookieJar, 'http/cookie_jar'
13
+ end
11
14
 
12
15
  # This class is used to represent an HTTP Cookie.
13
16
  class HTTP::Cookie
@@ -1,6 +1,8 @@
1
1
  # :markup: markdown
2
2
 
3
- require "http/cookie/version"
3
+ module HTTP
4
+ autoload :Cookie, "http/cookie"
5
+ end
4
6
 
5
7
  ##
6
8
  # This class is used to manage the Cookies that have been returned from
data/lib/http-cookie.rb CHANGED
@@ -1 +1,4 @@
1
- require 'http/cookie'
1
+ module HTTP
2
+ autoload :Cookie, 'http/cookie'
3
+ autoload :CookieJar, 'http/cookie_jar'
4
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http-cookie
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akinori MUSHA
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  - !ruby/object:Gem::Version
161
161
  version: '0'
162
162
  requirements: []
163
- rubygems_version: 4.0.9
163
+ rubygems_version: 4.0.6
164
164
  specification_version: 4
165
165
  summary: A Ruby library to handle HTTP Cookies based on RFC 6265
166
166
  test_files: []