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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b11fa25652b962c446a8022e3d9cfce067110ac2c6c6509995533449942ad70
4
- data.tar.gz: e487524c0b613f6a1aea2872faccc520106cd57bbfbee5f9725504467c219e51
3
+ metadata.gz: 8013b78b7811e2a20b4af98c5790ae95c45476d378128b8d31ac6901367b5966
4
+ data.tar.gz: 50f9410288e51618ba32c4fbeb31254ac84a7bedfd5c16c5d6749a2fdf5e7ade
5
5
  SHA512:
6
- metadata.gz: fd67b1f378008cfb07e86fec087a1ce3344f5df905bde152d447b731d9936d3e26240932cf68a1a837acf10338ffbe22f689af378939e19cb2f42a47d112f7ab
7
- data.tar.gz: a098e1b6ae39a3c5dc0dcfc35250a14993036ec4907e28cc9e3027d0ab3c259043086f5d177424abca3517cb58b59649a15487d68d93098abc6305d4459e3fee
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(filepath)
51
+ def load_cookies(raws)
52
52
 
53
- rawcookies = YAML.load(File.read(filepath))
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.7
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.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-03-30 00:00:00.000000000 Z
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