autoup 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/examples/autoup.yml +1 -1
  3. data/lib/autoup.rb +3 -3
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be36d0611b82c196286c2e6f3e0d3cb82289d33f
4
- data.tar.gz: 662474639cf646c9ddb284eb01f67645f161ac5d
3
+ metadata.gz: 21e583b96fa94cb3873f12d6f66e23580ff6c210
4
+ data.tar.gz: 1975f181868c51c9fb4fbc2fbdf409fa450f1a9c
5
5
  SHA512:
6
- metadata.gz: d547b4079d74d11856d52fa85450bfd50507eb2428a70fa60c891569e6f03e55b2b3e8103b3941b2006af103343870588e4043d89891fe375e3b4d3e71b03fc7
7
- data.tar.gz: 91a254ba2095c5af3edf9a25b64451c94be8d21103c9432c360159f3def30269750ffd0823efccb725963b91aeb9c3fcd2340a74fa1fc0e404a4dbd0aa0ddc78
6
+ metadata.gz: 625847ed04be68574b10bb9506610b39ebfa1881016abdc58eb2222a6253d323f3c223d59794a4cfcafe8174b7cc96b2aae22ddc8dcfb500110ff75f4f2c5824
7
+ data.tar.gz: 70812642bdf9b0418f8b28c06fec4d4c2d48e4e4e2c015ac72d819a8364d4eaa033630e08ecee70033ec7888c907f79878243c4ef233a9bc08c7b8b4ef67d152
@@ -15,7 +15,7 @@
15
15
  find: Find all threads started by
16
16
  stats: Show All Statistics
17
17
  up: Bump the thread!
18
- timeout: 5
18
+ timeout: 10
19
19
 
20
20
  # Russian board example:
21
21
  - forum: http://localhost/forum-ru/
@@ -39,7 +39,7 @@ class AutoUp
39
39
  return
40
40
  end
41
41
  # Optional settings
42
- cfg['timeout'] ||= 5
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.3
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 00:00:00.000000000 Z
11
+ date: 2015-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver