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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6b4c078b97fc4b4e6cf6ac6dda661a3bf73f88cb08a29bd9c0b0a977a0b50d2
4
- data.tar.gz: cf0273fa194c0caa400f5293ece40c85337a8f501961a7d177506e5f14b63463
3
+ metadata.gz: d3f9d2cb795727614dcdf1d51ca8ff449048230fb5e57af203060729b9b715c5
4
+ data.tar.gz: 00c0706ab9bc3c8069c77db8e46fd70eca231f0eca5abc96ec6c001c61735278
5
5
  SHA512:
6
- metadata.gz: c96d0d5b3d62d7a671d14936101f81ce6eea580e3de307b88ccbd25140c2dac66758b8cbd0ffaa18d9c934845160b458c7389c9292e298109c4fa52502658756
7
- data.tar.gz: b1c3b14781cbc6f20530dcd89e470bd8b2571bd717845b457934347e74da154018658e5b5355a4ba56396ba2a7f7102d680b2c32dfe277f5542f7b18f87f629d
6
+ metadata.gz: 75fa91d5261a1c21189a058cad7cfebae4cfe9b0d0505c1c29633db92554fe4e280e42054f3ca7846ad81d9f848f27f58e8a31d407856541445f20c4b7ac2c11
7
+ data.tar.gz: 776d4632ab8cf478129ecdd40fc8e8470650dc831b67e60bea307c22a73bbf53703c40f909df5daa10f6d4bf26b17f98308e23484fb3945ac5b20fece35afaeb
data/.travis.yml CHANGED
@@ -6,3 +6,8 @@ rvm:
6
6
  - 2.3
7
7
  before_install:
8
8
  - gem install bundler -v 1.16.2
9
+ deploy:
10
+ provider: rubygems
11
+ api_key: $RUBYGEMS_API_KEY
12
+ on:
13
+ branch: master
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- superbot (0.1.23)
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.17)
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.17)
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.8)
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 "click_on '#{action[:selector]}'"
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(',')})"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Superbot
4
- VERSION = "0.1.23"
4
+ VERSION = "0.1.24"
5
5
  end
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.17"
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.23
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-27 00:00:00.000000000 Z
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.17
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.17
110
+ version: 0.1.18
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: selenium-webdriver
113
113
  requirement: !ruby/object:Gem::Requirement