automation_helpers 7.1 → 7.1.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 604c0422d74aa3ea2292df3181c88d5c4e81e452614feb2841964a804369bb64
|
|
4
|
+
data.tar.gz: 83d7e1cb0f0f735eaab6417f5b36bcf98eca9c920bacdcf0fcdfd713fa47aff0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c2f734788ff56b4c52bdfc2524032c08412fb5fa3b2ec012d45c1dabd68508083adb1dffbe9f5931d4859fcbae290ebbe6440eccd620641086e8289c6290bac
|
|
7
|
+
data.tar.gz: 1cd800b3a56dfea8c10707718ed5c4c44bab58147a03362b440ae2b0761c999501080ce5a82e1448b2a6cf7e4e1731ea9e9b45d7b8db1adf9ce4336e7d86bbff
|
|
@@ -20,13 +20,9 @@ module Selenium
|
|
|
20
20
|
def write_log_to_file(type, file = default_file_path)
|
|
21
21
|
get(type) unless cached_logs.key?(type)
|
|
22
22
|
|
|
23
|
-
cached_logs[type].
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
else
|
|
27
|
-
File.write(file, log_entry)
|
|
28
|
-
end
|
|
29
|
-
end
|
|
23
|
+
content = cached_logs[type].join("\n")
|
|
24
|
+
|
|
25
|
+
file == $stdout ? file << content : File.write(file, content)
|
|
30
26
|
end
|
|
31
27
|
|
|
32
28
|
private
|
|
@@ -29,7 +29,7 @@ module AutomationHelpers
|
|
|
29
29
|
#
|
|
30
30
|
def deprecate?
|
|
31
31
|
if defined?(deprecation_notice_date)
|
|
32
|
-
Time.
|
|
32
|
+
Time.now >= deprecation_notice_date
|
|
33
33
|
elsif defined?(deprecate_from)
|
|
34
34
|
Gem::Version.new(gem_version) >= Gem::Version.new(deprecate_from)
|
|
35
35
|
end
|
|
@@ -45,7 +45,7 @@ module AutomationHelpers
|
|
|
45
45
|
#
|
|
46
46
|
def prevent_usage?
|
|
47
47
|
if defined?(prevent_usage_date)
|
|
48
|
-
Time.
|
|
48
|
+
Time.now >= prevent_usage_date
|
|
49
49
|
elsif defined?(prevent_usage_from)
|
|
50
50
|
Gem::Version.new(gem_version) >= Gem::Version.new(prevent_usage_from)
|
|
51
51
|
end
|
|
@@ -10,6 +10,16 @@ module AutomationHelpers
|
|
|
10
10
|
|
|
11
11
|
def description
|
|
12
12
|
<<~DESCRIPTION
|
|
13
|
+
UPDATE: 12/11/2026
|
|
14
|
+
This patch should in theory be redundant now since 2 additional features have been merged into
|
|
15
|
+
the gem proper
|
|
16
|
+
|
|
17
|
+
As such this patch is now considered a deprecated patch from the subsequent version (1.1.1), with a 2 year
|
|
18
|
+
expiration date for removal
|
|
19
|
+
|
|
20
|
+
~~~~~~~~~~~~~~~~~~~~~
|
|
21
|
+
|
|
22
|
+
ORIGINAL ISSUE:
|
|
13
23
|
There is a bug/missing piece of functionality in the #expires= writer in HTTP::Cookie
|
|
14
24
|
Selenium cookies (And by default w3c cookies), come with a DateTime class for the expiry
|
|
15
25
|
|
|
@@ -20,6 +30,18 @@ module AutomationHelpers
|
|
|
20
30
|
def perform
|
|
21
31
|
::HTTP::Cookie.prepend HTTPCookiePatch
|
|
22
32
|
end
|
|
33
|
+
|
|
34
|
+
def deprecate_from
|
|
35
|
+
'1.1.1'
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def prevent_usage_date
|
|
39
|
+
Time.new(2027, 9, 26)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def gem_version
|
|
43
|
+
::HTTP::Cookie::VERSION
|
|
44
|
+
end
|
|
23
45
|
end
|
|
24
46
|
|
|
25
47
|
#
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: automation_helpers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 7.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Luke Hill
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2026-
|
|
12
|
+
date: 2026-11-13 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: capybara
|
|
@@ -99,28 +99,28 @@ dependencies:
|
|
|
99
99
|
requirements:
|
|
100
100
|
- - "~>"
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version: 1.
|
|
102
|
+
version: 1.92.2
|
|
103
103
|
type: :development
|
|
104
104
|
prerelease: false
|
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
106
106
|
requirements:
|
|
107
107
|
- - "~>"
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: 1.
|
|
109
|
+
version: 1.92.2
|
|
110
110
|
- !ruby/object:Gem::Dependency
|
|
111
111
|
name: rubocop-performance
|
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
|
113
113
|
requirements:
|
|
114
114
|
- - "~>"
|
|
115
115
|
- !ruby/object:Gem::Version
|
|
116
|
-
version: 1.
|
|
116
|
+
version: 1.27.0
|
|
117
117
|
type: :development
|
|
118
118
|
prerelease: false
|
|
119
119
|
version_requirements: !ruby/object:Gem::Requirement
|
|
120
120
|
requirements:
|
|
121
121
|
- - "~>"
|
|
122
122
|
- !ruby/object:Gem::Version
|
|
123
|
-
version: 1.
|
|
123
|
+
version: 1.27.0
|
|
124
124
|
- !ruby/object:Gem::Dependency
|
|
125
125
|
name: rubocop-rspec
|
|
126
126
|
requirement: !ruby/object:Gem::Requirement
|