intentmedia-capybara-webkit 0.7.2.2 → 0.7.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +4 -4
- data/capybara-webkit.gemspec +1 -1
- data/lib/capybara/driver/webkit/browser.rb +2 -1
- data/src/SetProxy.cpp +12 -6
- metadata +232 -206
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
intentmedia-capybara-webkit (0.7.2.
|
4
|
+
intentmedia-capybara-webkit (0.7.2.3)
|
5
5
|
capybara (>= 1.0.0, < 1.2)
|
6
6
|
|
7
7
|
GEM
|
@@ -20,12 +20,12 @@ GEM
|
|
20
20
|
childprocess (0.2.2)
|
21
21
|
ffi (~> 1.0.6)
|
22
22
|
diff-lcs (1.1.2)
|
23
|
-
ffi (1.0.
|
23
|
+
ffi (1.0.9)
|
24
24
|
json_pure (1.6.1)
|
25
25
|
mime-types (1.16)
|
26
26
|
mini_magick (3.2.1)
|
27
27
|
subexec (~> 0.0.4)
|
28
|
-
nokogiri (1.5.0
|
28
|
+
nokogiri (1.5.0)
|
29
29
|
rack (1.3.2)
|
30
30
|
rack-test (0.6.1)
|
31
31
|
rack (>= 1.0)
|
@@ -39,7 +39,7 @@ GEM
|
|
39
39
|
diff-lcs (~> 1.1.2)
|
40
40
|
rspec-mocks (2.6.0)
|
41
41
|
rubyzip (0.9.4)
|
42
|
-
selenium-webdriver (2.
|
42
|
+
selenium-webdriver (2.7.0)
|
43
43
|
childprocess (>= 0.2.1)
|
44
44
|
ffi (>= 1.0.7)
|
45
45
|
json_pure
|
data/capybara-webkit.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "intentmedia-capybara-webkit"
|
3
|
-
s.version = "0.7.2.
|
3
|
+
s.version = "0.7.2.3"
|
4
4
|
s.authors = ["thoughtbot", "Joe Ferris", "Jason Morrison", "Tristan Dunn",
|
5
5
|
"Joshua Clayton", "Yuichi Tateno", "Aaron Gibralter",
|
6
6
|
"Vasily Reys", "petrushka", "John Bintz", "Chad Pytel",
|
@@ -101,7 +101,7 @@ class Capybara::Driver::Webkit
|
|
101
101
|
|
102
102
|
def set_proxy(options = {})
|
103
103
|
options = default_proxy_options.merge(options)
|
104
|
-
command("SetProxy", options[:host], options[:port], options[:user], options[:pass])
|
104
|
+
command("SetProxy", options[:type], options[:host], options[:port], options[:user], options[:pass])
|
105
105
|
end
|
106
106
|
|
107
107
|
def clear_proxy
|
@@ -206,6 +206,7 @@ class Capybara::Driver::Webkit
|
|
206
206
|
|
207
207
|
def default_proxy_options
|
208
208
|
{
|
209
|
+
:type => "http",
|
209
210
|
:host => "localhost",
|
210
211
|
:port => "0",
|
211
212
|
:user => "",
|
data/src/SetProxy.cpp
CHANGED
@@ -12,12 +12,18 @@ void SetProxy::start(QStringList &arguments)
|
|
12
12
|
// default to empty proxy
|
13
13
|
QNetworkProxy proxy;
|
14
14
|
|
15
|
-
if (arguments.size() > 0)
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
15
|
+
if (arguments.size() > 0) {
|
16
|
+
QNetworkProxy::ProxyType proxyType = QNetworkProxy::HttpProxy;
|
17
|
+
|
18
|
+
if (arguments[0] == "socks5")
|
19
|
+
proxyType = QNetworkProxy::Socks5Proxy;
|
20
|
+
|
21
|
+
proxy = QNetworkProxy(proxyType,
|
22
|
+
arguments[1],
|
23
|
+
(quint16)(arguments[2].toInt()),
|
24
|
+
arguments[3],
|
25
|
+
arguments[4]);
|
26
|
+
}
|
21
27
|
|
22
28
|
page()->networkAccessManager()->setProxy(proxy);
|
23
29
|
emit finished(new Response(true));
|
metadata
CHANGED
@@ -1,207 +1,239 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: intentmedia-capybara-webkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 121
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 7
|
9
|
+
- 2
|
10
|
+
- 3
|
11
|
+
version: 0.7.2.3
|
6
12
|
platform: ruby
|
7
13
|
authors:
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
14
|
+
- thoughtbot
|
15
|
+
- Joe Ferris
|
16
|
+
- Jason Morrison
|
17
|
+
- Tristan Dunn
|
18
|
+
- Joshua Clayton
|
19
|
+
- Yuichi Tateno
|
20
|
+
- Aaron Gibralter
|
21
|
+
- Vasily Reys
|
22
|
+
- petrushka
|
23
|
+
- John Bintz
|
24
|
+
- Chad Pytel
|
25
|
+
- Christopher Meiklejohn
|
26
|
+
- John Barker
|
27
|
+
- Jeremy Wells
|
28
|
+
- Chris Griego
|
29
|
+
- Shigeya Suzuki
|
24
30
|
autorequire:
|
25
31
|
bindir: bin
|
26
32
|
cert_chain: []
|
27
33
|
|
28
|
-
date: 2011-
|
34
|
+
date: 2011-12-31 00:00:00 -05:00
|
29
35
|
default_executable:
|
30
36
|
dependencies:
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
type: :runtime
|
39
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 23
|
45
|
+
segments:
|
46
|
+
- 1
|
47
|
+
- 0
|
48
|
+
- 0
|
49
|
+
version: 1.0.0
|
50
|
+
- - <
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
hash: 11
|
53
|
+
segments:
|
54
|
+
- 1
|
55
|
+
- 2
|
56
|
+
version: "1.2"
|
57
|
+
name: capybara
|
58
|
+
version_requirements: *id001
|
59
|
+
prerelease: false
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
type: :development
|
62
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ~>
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
hash: 23
|
68
|
+
segments:
|
69
|
+
- 2
|
70
|
+
- 6
|
71
|
+
- 0
|
72
|
+
version: 2.6.0
|
73
|
+
name: rspec
|
74
|
+
version_requirements: *id002
|
75
|
+
prerelease: false
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
type: :development
|
78
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
79
|
+
none: false
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
hash: 3
|
84
|
+
segments:
|
85
|
+
- 0
|
86
|
+
version: "0"
|
87
|
+
name: sinatra
|
88
|
+
version_requirements: *id003
|
89
|
+
prerelease: false
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
type: :development
|
92
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
hash: 3
|
98
|
+
segments:
|
99
|
+
- 0
|
100
|
+
version: "0"
|
101
|
+
name: mini_magick
|
102
|
+
version_requirements: *id004
|
103
|
+
prerelease: false
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
type: :development
|
106
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
hash: 3
|
112
|
+
segments:
|
113
|
+
- 0
|
114
|
+
version: "0"
|
115
|
+
name: rake
|
116
|
+
version_requirements: *id005
|
117
|
+
prerelease: false
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
type: :development
|
120
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
hash: 3
|
126
|
+
segments:
|
127
|
+
- 0
|
128
|
+
version: "0"
|
129
|
+
name: appraisal
|
130
|
+
version_requirements: *id006
|
131
|
+
prerelease: false
|
100
132
|
description:
|
101
133
|
email: support@thoughtbot.com
|
102
134
|
executables: []
|
103
135
|
|
104
136
|
extensions:
|
105
|
-
|
137
|
+
- extconf.rb
|
106
138
|
extra_rdoc_files: []
|
107
139
|
|
108
140
|
files:
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
141
|
+
- .gitignore
|
142
|
+
- .rspec
|
143
|
+
- Appraisals
|
144
|
+
- CONTRIBUTING.md
|
145
|
+
- Gemfile
|
146
|
+
- Gemfile.lock
|
147
|
+
- LICENSE
|
148
|
+
- README.md
|
149
|
+
- Rakefile
|
150
|
+
- bin/Info.plist
|
151
|
+
- capybara-webkit.gemspec
|
152
|
+
- extconf.rb
|
153
|
+
- gemfiles/1.0.gemfile
|
154
|
+
- gemfiles/1.0.gemfile.lock
|
155
|
+
- gemfiles/1.1.gemfile
|
156
|
+
- gemfiles/1.1.gemfile.lock
|
157
|
+
- lib/capybara-webkit.rb
|
158
|
+
- lib/capybara/driver/webkit.rb
|
159
|
+
- lib/capybara/driver/webkit/browser.rb
|
160
|
+
- lib/capybara/driver/webkit/node.rb
|
161
|
+
- lib/capybara/driver/webkit/socket_debugger.rb
|
162
|
+
- lib/capybara/webkit.rb
|
163
|
+
- lib/capybara_webkit_builder.rb
|
164
|
+
- spec/browser_spec.rb
|
165
|
+
- spec/driver_rendering_spec.rb
|
166
|
+
- spec/driver_spec.rb
|
167
|
+
- spec/integration/driver_spec.rb
|
168
|
+
- spec/integration/session_spec.rb
|
169
|
+
- spec/self_signed_ssl_cert.rb
|
170
|
+
- spec/spec_helper.rb
|
171
|
+
- src/Body.h
|
172
|
+
- src/ClearCookies.cpp
|
173
|
+
- src/ClearCookies.h
|
174
|
+
- src/Command.cpp
|
175
|
+
- src/Command.h
|
176
|
+
- src/CommandFactory.cpp
|
177
|
+
- src/CommandFactory.h
|
178
|
+
- src/CommandParser.cpp
|
179
|
+
- src/CommandParser.h
|
180
|
+
- src/Connection.cpp
|
181
|
+
- src/Connection.h
|
182
|
+
- src/Evaluate.cpp
|
183
|
+
- src/Evaluate.h
|
184
|
+
- src/Execute.cpp
|
185
|
+
- src/Execute.h
|
186
|
+
- src/Find.cpp
|
187
|
+
- src/Find.h
|
188
|
+
- src/FrameFocus.cpp
|
189
|
+
- src/FrameFocus.h
|
190
|
+
- src/GetCookies.cpp
|
191
|
+
- src/GetCookies.h
|
192
|
+
- src/Header.cpp
|
193
|
+
- src/Header.h
|
194
|
+
- src/Headers.cpp
|
195
|
+
- src/Headers.h
|
196
|
+
- src/JavascriptInvocation.cpp
|
197
|
+
- src/JavascriptInvocation.h
|
198
|
+
- src/NetworkAccessManager.cpp
|
199
|
+
- src/NetworkAccessManager.h
|
200
|
+
- src/NetworkCookieJar.cpp
|
201
|
+
- src/NetworkCookieJar.h
|
202
|
+
- src/Node.cpp
|
203
|
+
- src/Node.h
|
204
|
+
- src/Render.cpp
|
205
|
+
- src/Render.h
|
206
|
+
- src/Reset.cpp
|
207
|
+
- src/Reset.h
|
208
|
+
- src/Response.cpp
|
209
|
+
- src/Response.h
|
210
|
+
- src/Server.cpp
|
211
|
+
- src/Server.h
|
212
|
+
- src/SetCookie.cpp
|
213
|
+
- src/SetCookie.h
|
214
|
+
- src/SetProxy.cpp
|
215
|
+
- src/SetProxy.h
|
216
|
+
- src/Source.cpp
|
217
|
+
- src/Source.h
|
218
|
+
- src/Status.cpp
|
219
|
+
- src/Status.h
|
220
|
+
- src/UnsupportedContentHandler.cpp
|
221
|
+
- src/UnsupportedContentHandler.h
|
222
|
+
- src/Url.cpp
|
223
|
+
- src/Url.h
|
224
|
+
- src/Visit.cpp
|
225
|
+
- src/Visit.h
|
226
|
+
- src/WebPage.cpp
|
227
|
+
- src/WebPage.h
|
228
|
+
- src/body.cpp
|
229
|
+
- src/capybara.js
|
230
|
+
- src/find_command.h
|
231
|
+
- src/main.cpp
|
232
|
+
- src/webkit_server.pro
|
233
|
+
- src/webkit_server.qrc
|
234
|
+
- templates/Command.cpp
|
235
|
+
- templates/Command.h
|
236
|
+
- webkit_server.pro
|
205
237
|
has_rdoc: true
|
206
238
|
homepage: http://github.com/thoughtbot/capybara-webkit
|
207
239
|
licenses: []
|
@@ -210,37 +242,31 @@ post_install_message:
|
|
210
242
|
rdoc_options: []
|
211
243
|
|
212
244
|
require_paths:
|
213
|
-
|
245
|
+
- lib
|
214
246
|
required_ruby_version: !ruby/object:Gem::Requirement
|
215
247
|
none: false
|
216
248
|
requirements:
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
249
|
+
- - ">="
|
250
|
+
- !ruby/object:Gem::Version
|
251
|
+
hash: 3
|
252
|
+
segments:
|
253
|
+
- 0
|
254
|
+
version: "0"
|
223
255
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
224
256
|
none: false
|
225
257
|
requirements:
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
258
|
+
- - ">="
|
259
|
+
- !ruby/object:Gem::Version
|
260
|
+
hash: 3
|
261
|
+
segments:
|
262
|
+
- 0
|
263
|
+
version: "0"
|
232
264
|
requirements: []
|
233
265
|
|
234
266
|
rubyforge_project:
|
235
|
-
rubygems_version: 1.
|
267
|
+
rubygems_version: 1.6.2
|
236
268
|
signing_key:
|
237
269
|
specification_version: 3
|
238
270
|
summary: Headless Webkit driver for Capybara
|
239
|
-
test_files:
|
240
|
-
|
241
|
-
- spec/driver_rendering_spec.rb
|
242
|
-
- spec/driver_spec.rb
|
243
|
-
- spec/integration/driver_spec.rb
|
244
|
-
- spec/integration/session_spec.rb
|
245
|
-
- spec/self_signed_ssl_cert.rb
|
246
|
-
- spec/spec_helper.rb
|
271
|
+
test_files: []
|
272
|
+
|