dekiru 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dekiru/capybara/matchers.rb +5 -5
- data/lib/dekiru/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52638cf1b48eda2cccf9bc53435a8c361e17a43a3145457eba5fbfdd68b5f9ac
|
4
|
+
data.tar.gz: 5ced1fe987c0999fdff91eeef663cd664c3bdafd58a466dd40dd21c6e8b64bda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dc00bbe336a2381355d72b5da39a398a36640af30a425696c9f145773b1c7c0fe3844d985d533af8f2336dc2e0591cc1cb2f6980fddbacfa587e1b50c759d94
|
7
|
+
data.tar.gz: 0f81e7e83a43ac4a335b89e42a5c08cf5f3573792a4afd958aa5744fe3ef3b59546ba82195c36e60f2ec420f52b5bc7dd484c41747e908dc81ff7274f7402027
|
@@ -2,14 +2,14 @@ module Dekiru
|
|
2
2
|
module Capybara
|
3
3
|
module Matchers
|
4
4
|
class JsNoErrorMatcher
|
5
|
-
def matches?(
|
6
|
-
|
7
|
-
|
5
|
+
def matches?(page_or_logs)
|
6
|
+
logs = page_or_logs.respond_to?(:driver) ? page.driver.browser.manage.logs.get(:browser) : page_or_logs
|
7
|
+
logs.find_all { |log| log.level == 'WARNING' }.each do |log|
|
8
8
|
STDERR.puts 'WARN: javascript warning'
|
9
|
-
STDERR.puts
|
9
|
+
STDERR.puts log.message
|
10
10
|
end
|
11
11
|
|
12
|
-
@severe_errors =
|
12
|
+
@severe_errors = logs.find_all { |log| log.level == 'SEVERE' }
|
13
13
|
@severe_errors.empty?
|
14
14
|
end
|
15
15
|
|
data/lib/dekiru/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dekiru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akihiro Matsumura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http_accept_language
|