tapestry 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +1 -1
- data/lib/tapestry/interface.rb +2 -1
- data/lib/tapestry/ready.rb +4 -2
- data/lib/tapestry/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68b465baaf9d831d1f067031f5999deee3439f20
|
4
|
+
data.tar.gz: 211309e2dbcc81525ea8e944881cfa1a9e978636
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47bbf673a52f8dff464ee2400a4ba409cde5c3df0673f5b2d48c0ed466c59361379da8fde85a290a633bfbf7b8becf6ddac09f5529bbf57c78b337842a5c66e4
|
7
|
+
data.tar.gz: c2eda1d93599f92dedea535b456712773d0407fc2656113c9dec240fafda9a5875bee50df70c444d15a6b5c67ff58644fcbf0a10cb007b108cb9be0f1d3eb2ac
|
data/.hound.yml
CHANGED
data/lib/tapestry/interface.rb
CHANGED
@@ -8,10 +8,11 @@ module Tapestry
|
|
8
8
|
# The `visit` method provides navigation to a specific page by passing
|
9
9
|
# in the URL. If no URL is passed in, this method will attempt to use
|
10
10
|
# the `url_is` attribute from the interface it is being called on.
|
11
|
-
def visit(url = nil)
|
11
|
+
def visit(url = nil, &block)
|
12
12
|
no_url_provided if url.nil? && url_attribute.nil?
|
13
13
|
@browser.goto(url) unless url.nil?
|
14
14
|
@browser.goto(url_attribute) if url.nil?
|
15
|
+
when_ready(&block) if block_given?
|
15
16
|
self
|
16
17
|
end
|
17
18
|
|
data/lib/tapestry/ready.rb
CHANGED
@@ -55,15 +55,17 @@ module Tapestry
|
|
55
55
|
def when_ready(&_block)
|
56
56
|
already_marked_ready = ready
|
57
57
|
|
58
|
-
no_ready_check_possible unless block_given?
|
58
|
+
# no_ready_check_possible unless block_given?
|
59
59
|
|
60
60
|
self.ready = ready?
|
61
61
|
not_ready_validation(ready_error || 'NO REASON PROVIDED') unless ready
|
62
|
-
yield self
|
62
|
+
yield self if block_given?
|
63
63
|
ensure
|
64
64
|
self.ready = already_marked_ready
|
65
65
|
end
|
66
66
|
|
67
|
+
alias check_if_ready when_ready
|
68
|
+
|
67
69
|
# The `ready?` method is used to check if the page has been loaded
|
68
70
|
# successfully, which means that none of the ready validations have
|
69
71
|
# indicated failure.
|
data/lib/tapestry/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tapestry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Nyman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -151,7 +151,7 @@ licenses:
|
|
151
151
|
- MIT
|
152
152
|
metadata: {}
|
153
153
|
post_install_message: "\n(::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::)\n
|
154
|
-
\ Tapestry 0.
|
154
|
+
\ Tapestry 0.6.0 has been installed.\n(::) (::) (::) (::) (::) (::) (::) (::) (::)
|
155
155
|
(::) (::) (::)\n "
|
156
156
|
rdoc_options: []
|
157
157
|
require_paths:
|