http-cookie 1.1.1 → 1.1.2
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/http/cookie/version.rb +1 -1
- data/lib/http/cookie_jar/mozilla_store.rb +18 -11
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a54011678448308cb23a11e27ab9d76a5aa007ccdaec33f2e9a4bebe5333b9b5
|
|
4
|
+
data.tar.gz: ee6087b85f1e8bd5f347b31d1ae40ddd15a3b9a03b7304ebc2b0996918a0e1be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a735b62c638155c3d10d21eca458bcc5c9396b08b36dded4aaf25cd2321c1a2f9c8b7595d169f4cc9999822cd84eb2324805d6b5ab93868e5e3218fe5045d81
|
|
7
|
+
data.tar.gz: 0b0a2b5e4e69e3b7a8526e14f891bb8053f32c9c1a24ead5df38bf82e4cbfa62efc0cdc05103bc79eee3c3e40c32506e840c96dc5e88a288c7ed21bec478456f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
## 1.1.2 (2026-04-06)
|
|
2
|
+
|
|
3
|
+
- Stop requiring sqlite3 at load time by changing `MozillaStore::Database` from inheritance to composition.
|
|
4
|
+
|
|
5
|
+
|
|
1
6
|
## 1.1.1 (2026-04-06)
|
|
2
7
|
|
|
3
8
|
- Fix thread-unsafe runtime requires. (#43 by @brasic, #57)
|
|
4
9
|
- Replace `require 'cgi'` with `require 'cgi/escape'` to suppress Ruby 4.0 warning. (#56 by @dominion525)
|
|
5
10
|
- Do not define `MozillaStore` on JRuby; leave the constant undefined instead.
|
|
11
|
+
- Relax sqlite3 development dependency to `>= 1.3`.
|
|
6
12
|
|
|
7
13
|
|
|
8
14
|
## 1.1.0 (2025-09-26)
|
data/lib/http/cookie/version.rb
CHANGED
|
@@ -37,20 +37,15 @@ class HTTP::CookieJar
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
class Database
|
|
41
|
-
def initialize(file
|
|
40
|
+
class Database
|
|
41
|
+
def initialize(file)
|
|
42
|
+
@db = SQLite3::Database.new(file, results_as_hash: true)
|
|
42
43
|
@stmts = []
|
|
43
|
-
options = {
|
|
44
|
-
:results_as_hash => true,
|
|
45
|
-
}.update(options)
|
|
46
|
-
super
|
|
47
44
|
end
|
|
48
45
|
|
|
49
46
|
def prepare(sql)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
@stmts << st
|
|
53
|
-
end
|
|
47
|
+
st = @db.prepare(sql)
|
|
48
|
+
@stmts << st if st.is_a?(SQLite3::Statement)
|
|
54
49
|
st
|
|
55
50
|
end
|
|
56
51
|
|
|
@@ -59,7 +54,19 @@ class HTTP::CookieJar
|
|
|
59
54
|
@stmts.reject! { |st|
|
|
60
55
|
st.closed? || st.close
|
|
61
56
|
}
|
|
62
|
-
|
|
57
|
+
@db.close
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def closed?
|
|
61
|
+
@db.closed?
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
def execute(...)
|
|
65
|
+
@db.execute(...)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
def create_function(...)
|
|
69
|
+
@db.create_function(...)
|
|
63
70
|
end
|
|
64
71
|
end
|
|
65
72
|
# :startdoc:
|