superbot-capybara 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 59e54894398eff6d53e2a1ae932fd3835472adb7d7ce1f0c97122029818e31e4
4
+ data.tar.gz: e7d48b1881cbe2f522a9897302310912144dd8b73b483f5a55b9350ea9b7ce31
5
+ SHA512:
6
+ metadata.gz: f2d0ae4f11b51baea81f37e708d3f8745f1957fc8624920bd37d74692631d93fdb1b1577c62b94985b007391952fc6255f9f6ad4d5853e90a5aa41e6f81ae7b6
7
+ data.tar.gz: 489986b01398f03c76acd6ee5f00b191336c710bb373875a563ea9fdecddff4444d1dffdb9774165126b074c61921de682b5d2dbb69727b831a9ddc0ce9bcafc
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1 @@
1
+ superbot-capybara
@@ -0,0 +1 @@
1
+ 2.5.1
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.5.0
5
+ before_install: gem install bundler -v 1.16.0
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in superbot-capybara.gemspec
6
+ gemspec
7
+
@@ -0,0 +1,96 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ superbot-capybara (1.0.0)
5
+ capybara (= 3.12.0)
6
+ cjsonci (= 0.2.0)
7
+ superbot-selenium-webdriver (= 1.0.0)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ addressable (2.5.2)
13
+ public_suffix (>= 2.0.2, < 4.0)
14
+ archive-zip (0.11.0)
15
+ io-like (~> 0.3.0)
16
+ capybara (3.12.0)
17
+ addressable
18
+ mini_mime (>= 0.1.3)
19
+ nokogiri (~> 1.8)
20
+ rack (>= 1.6.0)
21
+ rack-test (>= 0.6.3)
22
+ regexp_parser (~> 1.2)
23
+ xpath (~> 3.2)
24
+ childprocess (0.9.0)
25
+ ffi (~> 1.0, >= 1.0.11)
26
+ chromedriver-helper (2.1.0)
27
+ archive-zip (~> 0.10)
28
+ nokogiri (~> 1.8)
29
+ cjsonci (0.2.0)
30
+ coderay (1.1.2)
31
+ diff-lcs (1.3)
32
+ ffi (1.9.25)
33
+ io-like (0.3.0)
34
+ kommando (0.1.2)
35
+ method_source (0.9.2)
36
+ mini_mime (1.0.1)
37
+ mini_portile2 (2.3.0)
38
+ mustermann (1.0.3)
39
+ nokogiri (1.8.5)
40
+ mini_portile2 (~> 2.3.0)
41
+ pry (0.12.2)
42
+ coderay (~> 1.1.0)
43
+ method_source (~> 0.9.0)
44
+ public_suffix (3.0.3)
45
+ rack (2.0.5)
46
+ rack-protection (2.0.3)
47
+ rack
48
+ rack-test (1.1.0)
49
+ rack (>= 1.0, < 3)
50
+ rake (11.3.0)
51
+ regexp_parser (1.3.0)
52
+ rspec (3.8.0)
53
+ rspec-core (~> 3.8.0)
54
+ rspec-expectations (~> 3.8.0)
55
+ rspec-mocks (~> 3.8.0)
56
+ rspec-core (3.8.0)
57
+ rspec-support (~> 3.8.0)
58
+ rspec-expectations (3.8.1)
59
+ diff-lcs (>= 1.2.0, < 2.0)
60
+ rspec-support (~> 3.8.0)
61
+ rspec-mocks (3.8.0)
62
+ diff-lcs (>= 1.2.0, < 2.0)
63
+ rspec-support (~> 3.8.0)
64
+ rspec-support (3.8.0)
65
+ rubyzip (1.2.2)
66
+ selenium-webdriver (3.141.0)
67
+ childprocess (~> 0.5)
68
+ rubyzip (~> 1.2, >= 1.2.2)
69
+ sinatra (2.0.3)
70
+ mustermann (~> 1.0)
71
+ rack (~> 2.0)
72
+ rack-protection (= 2.0.3)
73
+ tilt (~> 2.0)
74
+ sinatra-silent (0.0.1)
75
+ superbot-selenium-webdriver (1.0.0)
76
+ chromedriver-helper (= 2.1.0)
77
+ selenium-webdriver (= 3.141.0)
78
+ tilt (2.0.8)
79
+ xpath (3.2.0)
80
+ nokogiri (~> 1.8)
81
+
82
+ PLATFORMS
83
+ ruby
84
+
85
+ DEPENDENCIES
86
+ bundler (~> 1.17)
87
+ kommando
88
+ pry
89
+ rake (~> 11.2)
90
+ rspec (~> 3.8)
91
+ sinatra
92
+ sinatra-silent
93
+ superbot-capybara!
94
+
95
+ BUNDLED WITH
96
+ 1.17.1
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Matti Paksula
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,9 @@
1
+ # Superbot::Capybara
2
+
3
+ test:
4
+
5
+ echo "{\"eval\": \"visit 'http://google.com'\"}" | exe/sb-capybara
6
+
7
+ leave STDIN open:
8
+
9
+ (echo "{\"eval\": \"visit 'http://google.com'\"}" && cat) | exe/sb-capybara
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "superbot/capybara"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+
15
+ Capybara.visit "about:blank"
16
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ STDOUT.sync = true
5
+
6
+ require_relative "../lib/superbot/capybara"
7
+ CJSONCI::Servant.run!
@@ -0,0 +1,24 @@
1
+ require "selenium/webdriver"
2
+ require "capybara"
3
+ require "capybara/dsl"
4
+
5
+ require "superbot/selenium/webdriver"
6
+ require "cjsonci"
7
+ require_relative "capybara/version"
8
+
9
+ module Capybara
10
+ module DSL
11
+ def self.included(base)
12
+ #warn "including Capybara::DSL in the global scope is not recommended!" if base == Object
13
+ #super
14
+ end
15
+ def self.extended(base)
16
+ #warn "extending the main object with Capybara::DSL is not recommended!" if base == Object
17
+ #super
18
+ end
19
+ end
20
+ end
21
+
22
+ Capybara.current_driver = :selenium_chrome
23
+
24
+ TOPLEVEL_BINDING.eval "include Capybara::DSL"
@@ -0,0 +1,5 @@
1
+ module Superbot
2
+ module Capybara
3
+ VERSION = "1.0.0"
4
+ end
5
+ end
@@ -0,0 +1,33 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "superbot/capybara/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "superbot-capybara"
8
+ spec.version = Superbot::Capybara::VERSION
9
+ spec.authors = ["Superbot HQ"]
10
+
11
+ spec.summary = %q{superbot verified capybara}
12
+ spec.homepage = "http://github.com/superbothq/superbot-capybara"
13
+ spec.license = "MIT"
14
+
15
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
16
+ f.match(%r{^(test|spec|features)/})
17
+ end
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ spec.add_runtime_dependency "superbot-selenium-webdriver", "1.0.0"
23
+ spec.add_runtime_dependency "capybara", "3.12.0"
24
+ spec.add_runtime_dependency "cjsonci", "0.2.0"
25
+
26
+ spec.add_development_dependency "bundler", "~> 1.17"
27
+ spec.add_development_dependency "rake", "~> 11.2"
28
+ spec.add_development_dependency "rspec", "~> 3.8"
29
+ spec.add_development_dependency "kommando"
30
+ spec.add_development_dependency "sinatra"
31
+ spec.add_development_dependency "sinatra-silent"
32
+ spec.add_development_dependency "pry"
33
+ end
metadata ADDED
@@ -0,0 +1,200 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: superbot-capybara
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Superbot HQ
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-12-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: superbot-selenium-webdriver
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 1.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 1.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: capybara
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 3.12.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 3.12.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: cjsonci
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 0.2.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 0.2.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.17'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.17'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '11.2'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '11.2'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.8'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.8'
97
+ - !ruby/object:Gem::Dependency
98
+ name: kommando
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: sinatra
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: sinatra-silent
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: pry
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description:
154
+ email:
155
+ executables:
156
+ - sb-capybara
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - ".gitignore"
161
+ - ".rspec"
162
+ - ".ruby-gemset"
163
+ - ".ruby-version"
164
+ - ".travis.yml"
165
+ - Gemfile
166
+ - Gemfile.lock
167
+ - LICENSE.txt
168
+ - README.md
169
+ - Rakefile
170
+ - bin/console
171
+ - bin/setup
172
+ - exe/sb-capybara
173
+ - lib/superbot/capybara.rb
174
+ - lib/superbot/capybara/version.rb
175
+ - superbot-capybara.gemspec
176
+ homepage: http://github.com/superbothq/superbot-capybara
177
+ licenses:
178
+ - MIT
179
+ metadata: {}
180
+ post_install_message:
181
+ rdoc_options: []
182
+ require_paths:
183
+ - lib
184
+ required_ruby_version: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
189
+ required_rubygems_version: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ version: '0'
194
+ requirements: []
195
+ rubyforge_project:
196
+ rubygems_version: 2.7.7
197
+ signing_key:
198
+ specification_version: 4
199
+ summary: superbot verified capybara
200
+ test_files: []