superbot 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/Gemfile.lock +4 -4
- data/lib/superbot/capybara/convert.rb +1 -1
- data/lib/superbot/version.rb +1 -1
- data/superbot.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3f9d2cb795727614dcdf1d51ca8ff449048230fb5e57af203060729b9b715c5
|
4
|
+
data.tar.gz: 00c0706ab9bc3c8069c77db8e46fd70eca231f0eca5abc96ec6c001c61735278
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75fa91d5261a1c21189a058cad7cfebae4cfe9b0d0505c1c29633db92554fe4e280e42054f3ca7846ad81d9f848f27f58e8a31d407856541445f20c4b7ac2c11
|
7
|
+
data.tar.gz: 776d4632ab8cf478129ecdd40fc8e8470650dc831b67e60bea307c22a73bbf53703c40f909df5daa10f6d4bf26b17f98308e23484fb3945ac5b20fece35afaeb
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
superbot (0.1.
|
4
|
+
superbot (0.1.24)
|
5
5
|
clamp (= 1.2.1)
|
6
6
|
kommando (~> 0.1)
|
7
7
|
launchy (= 2.4.3)
|
8
8
|
selenium-webdriver (~> 3.14, >= 3.14.0)
|
9
9
|
sinatra (= 2.0.3)
|
10
10
|
sinatra-silent (= 0.0.1)
|
11
|
-
superbot-cloud (~> 0.1.
|
11
|
+
superbot-cloud (~> 0.1.18)
|
12
12
|
zaru (= 0.2.0)
|
13
13
|
|
14
14
|
GEM
|
@@ -118,11 +118,11 @@ GEM
|
|
118
118
|
rack-protection (= 2.0.3)
|
119
119
|
tilt (~> 2.0)
|
120
120
|
sinatra-silent (0.0.1)
|
121
|
-
superbot-cloud (0.1.
|
121
|
+
superbot-cloud (0.1.18)
|
122
122
|
marcel (= 0.3.3)
|
123
123
|
multipart-post (= 2.0.0)
|
124
124
|
thor (0.20.0)
|
125
|
-
tilt (2.0.
|
125
|
+
tilt (2.0.9)
|
126
126
|
unicode-display_width (1.3.3)
|
127
127
|
zaru (0.2.0)
|
128
128
|
|
@@ -22,7 +22,7 @@ module Superbot
|
|
22
22
|
def convert_action(action)
|
23
23
|
case action[:type]
|
24
24
|
when 'visit' then "visit '#{action[:url]}'"
|
25
|
-
when 'click' then "
|
25
|
+
when 'click' then "find('#{action[:selector]}').click"
|
26
26
|
when 'scroll' then
|
27
27
|
"page.execute_script('window.scrollBy(0,' + (page.execute_script('return document.body.scrollHeight') * #{action[:amountPercent]} / 100).to_s + ')')"
|
28
28
|
when 'resolution' then "page.driver.browser.manage.window.resize_to(#{action[:resolution].join(',')})"
|
data/lib/superbot/version.rb
CHANGED
data/superbot.gemspec
CHANGED
@@ -38,7 +38,7 @@ Gem::Specification.new do |spec|
|
|
38
38
|
spec.add_runtime_dependency "launchy", "2.4.3"
|
39
39
|
spec.add_runtime_dependency "sinatra-silent", "0.0.1"
|
40
40
|
spec.add_runtime_dependency "kommando", "~> 0.1"
|
41
|
-
spec.add_runtime_dependency "superbot-cloud", "~> 0.1.
|
41
|
+
spec.add_runtime_dependency "superbot-cloud", "~> 0.1.18"
|
42
42
|
spec.add_runtime_dependency "selenium-webdriver", "~> 3.14", ">= 3.14.0"
|
43
43
|
|
44
44
|
spec.add_development_dependency "bundler", "~> 1.16"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: superbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Superbots
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.1.
|
103
|
+
version: 0.1.18
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.1.
|
110
|
+
version: 0.1.18
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: selenium-webdriver
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|