http-cookie 1.1.5 → 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: cee8102244e13cc21f70ae293cd86a7041b4f9d80f1938af1b75e43c132529ef
4
- data.tar.gz: '018cea8d124fc781651229000a955f43d78cfb5022d843d5f4a09dd6c9bae2d0'
3
+ metadata.gz: 72ef3493437238f93258320d1e8bdfea5d155e731ed6e88d55b284bff3c7a3a0
4
+ data.tar.gz: ecf432149b7b13a7437ad6c8a8433b85fbe4cf223ba07016831c2da3a8598de2
5
5
  SHA512:
6
- metadata.gz: e74a4eab20889a2f52cc19348ac9e4cfeb62e31b9987ef4c469835654184d000ebfe9550308162ddd97d389420597471bf57a6b9d313f93b521f9ffb86fcae26
7
- data.tar.gz: c0fa2fe8224c168ffedb940baa6f83b8f7f15585d80bd84ef64b1f4a5f14d311b86ea72b1b1e2c93d9d444ad8499a4cb2def2de7c10cba77f54cbd4701591a91
6
+ metadata.gz: 110ace005f635800820a73c4c4955cdd0d80fdfddf781949957f2738e0bd7d78068c5d03537f9defa7eba25b7f8156e823897460cd3bf84db8fd7dff55550cd2
7
+ data.tar.gz: c20f7c2409b86773bcf93367d135058dea7bf52f7fe3ef240161be0b137d2dce9ced8fc4e8398353b876c469edaebcdecc2e7cba77f92795972e6472a8f13959
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
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
+
1
6
  ## 1.1.5 (2026-04-19)
2
7
 
3
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)
@@ -1,5 +1,5 @@
1
1
  module HTTP
2
2
  class Cookie
3
- VERSION = "1.1.5"
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"
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.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akinori MUSHA