capybara-slow_finder_errors 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/capybara-slow_finder_errors.gemspec +2 -2
- data/lib/capybara/slow_finder_errors.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ce36307cee7746e4fafa92087bffca0eeff4d85
|
4
|
+
data.tar.gz: 92002cd4ed5e83f08f0e668e6b5bc2fc996e304f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 470bd8ffc3d5b3d072fbbb076f821509d3506e0d11d076abdec878d4270ca173c361fc5cc0a908edda6bf9e002548f08c4625ad32d34267d1cc019328ba936ca
|
7
|
+
data.tar.gz: 29ef8d0202285a7d1222d06242b0fe48b6cf0e8357a4856bbf9ca1ee4adf950b8557283e36ebdc883fe9c512959228f4ddbbc281edabb3232d7776fd648d86c1
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "capybara-slow_finder_errors"
|
5
|
-
spec.version = "0.1.
|
5
|
+
spec.version = "0.1.3"
|
6
6
|
spec.authors = ["Nick Gauthier"]
|
7
7
|
spec.email = ["ngauthier@gmail.com"]
|
8
8
|
spec.summary = %q{Raises an error when you use a Capybara finder improperly}
|
@@ -17,5 +17,5 @@ Gem::Specification.new do |spec|
|
|
17
17
|
|
18
18
|
spec.add_development_dependency "bundler", "~> 1.7"
|
19
19
|
spec.add_development_dependency "rake", "~> 10.0"
|
20
|
-
spec.add_dependency "capybara", "~> 2.
|
20
|
+
spec.add_dependency "capybara", "~> 2.5"
|
21
21
|
end
|
@@ -8,7 +8,7 @@ module Capybara
|
|
8
8
|
start_time = Time.now
|
9
9
|
synchronize_without_timeout_error(*args, &block)
|
10
10
|
rescue Capybara::ElementNotFound => e
|
11
|
-
seconds = args.first || Capybara.
|
11
|
+
seconds = args.first || Capybara.default_max_wait_time
|
12
12
|
if seconds > 0 && Time.now-start_time > seconds
|
13
13
|
raise SlowFinderError, "Timeout reached while running a *waiting* Capybara finder...perhaps you wanted to return immediately? Use a non-waiting Capybara finder. More info: http://blog.codeship.com/faster-rails-tests?utm_source=gem_exception"
|
14
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-slow_finder_errors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Gauthier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '2.
|
47
|
+
version: '2.5'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2.
|
54
|
+
version: '2.5'
|
55
55
|
description: If you use a finder that reaches capybara's timeout, and error is raised.
|
56
56
|
email:
|
57
57
|
- ngauthier@gmail.com
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.4.
|
89
|
+
rubygems_version: 2.4.8
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Raises an error when you use a Capybara finder improperly
|