ferrumwizard 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/ferrumwizard.rb +5 -3
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8013b78b7811e2a20b4af98c5790ae95c45476d378128b8d31ac6901367b5966
|
4
|
+
data.tar.gz: 50f9410288e51618ba32c4fbeb31254ac84a7bedfd5c16c5d6749a2fdf5e7ade
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b13345e5b6b413926d6ef3e5dc0312d22683b1e04eac42822f6064d04550294fd70cc373b234d273363e826bcb68e18ea3d2b6022683d0bdc47b62f8420a726
|
7
|
+
data.tar.gz: b584c4e9b189c1fa3cb22de1a0e6e2198972487be7082efb2dd0c81df7770fe594d89bcd5efc3fb6be781cbae0f49bb7ccbeb3dae6034c51d57b45ae68858868
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/ferrumwizard.rb
CHANGED
@@ -48,16 +48,18 @@ class FerrumWizard
|
|
48
48
|
# url='https://somewebsite.com'
|
49
49
|
# fw.browser.goto(url)
|
50
50
|
#
|
51
|
-
def load_cookies(
|
51
|
+
def load_cookies(raws)
|
52
52
|
|
53
|
-
|
53
|
+
s = raws.lines.length > 1 ? raws : File.read(raws)
|
54
|
+
|
55
|
+
rawcookies = YAML.load(s)
|
54
56
|
|
55
57
|
rawcookies.each do |h|
|
56
58
|
|
57
59
|
if @debug then
|
58
60
|
puts 'name: ' + h['name']
|
59
61
|
puts 'h: ' + h.inspect
|
60
|
-
sleep 0.
|
62
|
+
sleep 0.4
|
61
63
|
end
|
62
64
|
|
63
65
|
browser.cookies.set(name: h['name'], value: h['value'],
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ferrumwizard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
FK+cyrQNA9DLJYJuz6uO7Z+gXZWjwAO38LUwF01w49asSv/5ZH2HH/EauX5xWpe+
|
36
36
|
ry6lYQlb8j50Iys5elAy1p0i
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2022-
|
38
|
+
date: 2022-04-13 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rexle
|
metadata.gz.sig
CHANGED
Binary file
|