autoup 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/autoup.yml +1 -1
- data/lib/autoup.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21e583b96fa94cb3873f12d6f66e23580ff6c210
|
4
|
+
data.tar.gz: 1975f181868c51c9fb4fbc2fbdf409fa450f1a9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 625847ed04be68574b10bb9506610b39ebfa1881016abdc58eb2222a6253d323f3c223d59794a4cfcafe8174b7cc96b2aae22ddc8dcfb500110ff75f4f2c5824
|
7
|
+
data.tar.gz: 70812642bdf9b0418f8b28c06fec4d4c2d48e4e4e2c015ac72d819a8364d4eaa033630e08ecee70033ec7888c907f79878243c4ef233a9bc08c7b8b4ef67d152
|
data/examples/autoup.yml
CHANGED
data/lib/autoup.rb
CHANGED
@@ -39,7 +39,7 @@ class AutoUp
|
|
39
39
|
return
|
40
40
|
end
|
41
41
|
# Optional settings
|
42
|
-
cfg['timeout'] ||=
|
42
|
+
cfg['timeout'] ||= 10
|
43
43
|
cfg['find'] ||= 'Find all threads started by'
|
44
44
|
cfg['stats'] ||= 'Show All Statistics'
|
45
45
|
cfg['up'] ||= 'Bump the thread!'
|
@@ -59,7 +59,7 @@ class AutoUp
|
|
59
59
|
|
60
60
|
begin
|
61
61
|
login = web.find_element(:name, 'vb_login_username')
|
62
|
-
login.clear
|
62
|
+
login.clear
|
63
63
|
login.send_keys(cfg['user'])
|
64
64
|
rescue Selenium::WebDriver::Error::NoSuchElementError
|
65
65
|
puts("ERROR: unable to load #{cfg['forum']} (does not load or does not contain vb_login_username)")
|
@@ -67,7 +67,7 @@ class AutoUp
|
|
67
67
|
end
|
68
68
|
|
69
69
|
pass = web.find_element(:name, 'vb_login_password')
|
70
|
-
pass.clear
|
70
|
+
pass.clear
|
71
71
|
pass.send_keys(cfg['pass'])
|
72
72
|
pass.submit
|
73
73
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autoup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vasily Korytov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|