ferrumwizard 0.2.2 → 0.3.1

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: 138f77d111207f978a986515188afd1b8fa19c570dba80b5bb9c9e4e8dd4692d
4
+ data.tar.gz: 62931555c44ce301d9b596c0d2c9b27298490c8b178ead98e2da019a85d8a80f
5
5
  SHA512:
6
- metadata.gz: fd67b1f378008cfb07e86fec087a1ce3344f5df905bde152d447b731d9936d3e26240932cf68a1a837acf10338ffbe22f689af378939e19cb2f42a47d112f7ab
7
- data.tar.gz: a098e1b6ae39a3c5dc0dcfc35250a14993036ec4907e28cc9e3027d0ab3c259043086f5d177424abca3517cb58b59649a15487d68d93098abc6305d4459e3fee
6
+ metadata.gz: d96e4c5fcc5444887423396c8849957c90a5ae283c02897a3d5f6d7856a36eeb03d461dc7172c10f5549f6e4962310e1cbd18874af518bc8abeae973a7cfe121
7
+ data.tar.gz: ae8c245f5ee6abb4970735e5ca12174f8917d24369ba008ac9d9eacd2a060808d297fe5c26e3c54f4f53cb4bfb538a1f1ad8181acad1801edf1d0940e2ea2edb
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/ferrumwizard.rb CHANGED
@@ -5,9 +5,11 @@
5
5
  require 'yaml'
6
6
  require 'rexle'
7
7
  require 'ferrum'
8
+ require 'rxfhelper'
8
9
 
9
10
 
10
11
  class FerrumWizard
12
+ include RXFHelperModule
11
13
 
12
14
  attr_reader :browser, :links, :radio, :buttons, :js_methods
13
15
 
@@ -48,16 +50,19 @@ class FerrumWizard
48
50
  # url='https://somewebsite.com'
49
51
  # fw.browser.goto(url)
50
52
  #
51
- def load_cookies(filepath)
53
+ def load_cookies(raws)
52
54
 
53
- rawcookies = YAML.load(File.read(filepath))
55
+ s = raws.lines.length > 1 ? raws : FileX.read(raws)
56
+ puts 's: ' + s.inspect if @debug
57
+
58
+ rawcookies = YAML.load(s)
54
59
 
55
60
  rawcookies.each do |h|
56
61
 
57
62
  if @debug then
58
63
  puts 'name: ' + h['name']
59
64
  puts 'h: ' + h.inspect
60
- sleep 0.7
65
+ sleep 0.4
61
66
  end
62
67
 
63
68
  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.3.1
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
@@ -77,6 +77,26 @@ dependencies:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0.11'
80
+ - !ruby/object:Gem::Dependency
81
+ name: rxfhelper
82
+ requirement: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - "~>"
85
+ - !ruby/object:Gem::Version
86
+ version: '1.5'
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 1.5.2
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.5'
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: 1.5.2
80
100
  description:
81
101
  email: digital.robertson@gmail.com
82
102
  executables: []
metadata.gz.sig CHANGED
Binary file