mechanize 2.8.3 → 2.8.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of mechanize might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.github/workflows/ci-test.yml +3 -3
- data/CHANGELOG.md +7 -0
- data/lib/mechanize/cookie_jar.rb +13 -1
- data/lib/mechanize/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8b4e424716d3f5d8fdc1fe82efca4412eee6b414c0cafee9cdced96023e632d
|
4
|
+
data.tar.gz: b4450930235cb304ced9e63cede8fd3abe3bc7c7f38530ef6127be8208de3c93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb936d26c46330432cd5d230b5e54b3792de5a2e39d3aa3a09a4904e5cf0f4bd9547c489772f3cd8d989e171022a18943bf4d09f0420038ed36d941978605a4f
|
7
|
+
data.tar.gz: 3b8103cfa2759f937b43384ac13ae0b8be9d22505841199fd0acd8fc0f4c4d86e0844571bbcd930da2d55e54f2178bbe222f9876959851ee694988bd5b874668
|
@@ -16,7 +16,7 @@ jobs:
|
|
16
16
|
- uses: actions/checkout@v2
|
17
17
|
- uses: ruby/setup-ruby@v1
|
18
18
|
with:
|
19
|
-
ruby-version: "3.
|
19
|
+
ruby-version: "3.1"
|
20
20
|
bundler-cache: true
|
21
21
|
- run: bundle exec rake rubocop
|
22
22
|
|
@@ -25,7 +25,7 @@ jobs:
|
|
25
25
|
strategy:
|
26
26
|
fail-fast: false
|
27
27
|
matrix:
|
28
|
-
ruby-version: ["2.5", "2.6", "2.7", "3.0", "jruby", "truffleruby-head"]
|
28
|
+
ruby-version: ["2.5", "2.6", "2.7", "3.0", "3.1", "head", "jruby", "truffleruby-head"]
|
29
29
|
|
30
30
|
runs-on: ubuntu-latest
|
31
31
|
steps:
|
@@ -48,6 +48,6 @@ jobs:
|
|
48
48
|
- uses: actions/checkout@v2
|
49
49
|
- uses: ruby/setup-ruby@v1
|
50
50
|
with:
|
51
|
-
ruby-version: "3.
|
51
|
+
ruby-version: "3.1"
|
52
52
|
bundler-cache: true
|
53
53
|
- run: bundle exec rake test
|
data/CHANGELOG.md
CHANGED
data/lib/mechanize/cookie_jar.rb
CHANGED
@@ -149,7 +149,7 @@ class Mechanize
|
|
149
149
|
return super(input, opthash) if opthash[:format] != :yaml
|
150
150
|
|
151
151
|
begin
|
152
|
-
data =
|
152
|
+
data = load_yaml(input)
|
153
153
|
rescue ArgumentError
|
154
154
|
@logger.warn "unloadable YAML cookie data discarded" if @logger
|
155
155
|
return self
|
@@ -174,6 +174,18 @@ class Mechanize
|
|
174
174
|
return self
|
175
175
|
end
|
176
176
|
end
|
177
|
+
|
178
|
+
private
|
179
|
+
|
180
|
+
if YAML.name == "Psych" && Gem::Requirement.new(">= 3.1").satisfied_by?(Gem::Version.new(Psych::VERSION))
|
181
|
+
def load_yaml(yaml)
|
182
|
+
YAML.safe_load(yaml, aliases: true, permitted_classes: ["Mechanize::Cookie", "Time"])
|
183
|
+
end
|
184
|
+
else
|
185
|
+
def load_yaml(yaml)
|
186
|
+
YAML.load(yaml) # rubocop:disable Security/YAMLLoad
|
187
|
+
end
|
188
|
+
end
|
177
189
|
end
|
178
190
|
|
179
191
|
class ::HTTP::CookieJar
|
data/lib/mechanize/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mechanize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.8.
|
4
|
+
version: 2.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Hodel
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2022-01-17 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: addressable
|
@@ -502,7 +502,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
502
502
|
- !ruby/object:Gem::Version
|
503
503
|
version: '0'
|
504
504
|
requirements: []
|
505
|
-
rubygems_version: 3.
|
505
|
+
rubygems_version: 3.3.5
|
506
506
|
signing_key:
|
507
507
|
specification_version: 4
|
508
508
|
summary: The Mechanize library is used for automating interaction with websites
|