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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 578f9f3f76f9351996f91dd40accca1e841e880c
4
- data.tar.gz: 7e245bf818e9f376bcb70f5250dc78b8726eea1d
3
+ metadata.gz: 68b465baaf9d831d1f067031f5999deee3439f20
4
+ data.tar.gz: 211309e2dbcc81525ea8e944881cfa1a9e978636
5
5
  SHA512:
6
- metadata.gz: 1e4ad0a68ac0a23cb2065e6fb0e10c9da2795d84c9034e2ef30bdad822fe844501dc474260a082b47f31ee3f03c865fbccd6d07a11cd185433dd25b185a11bf4
7
- data.tar.gz: a196ad112052ccd331562735055d7c36df245299fb2a1f32249959eda056cf9f596a4cf375bb9c38bcfbb7446d8eccb8e365ad4775970d3f40023cd5ca4cd85d
6
+ metadata.gz: 47bbf673a52f8dff464ee2400a4ba409cde5c3df0673f5b2d48c0ed466c59361379da8fde85a290a633bfbf7b8becf6ddac09f5529bbf57c78b337842a5c66e4
7
+ data.tar.gz: c2eda1d93599f92dedea535b456712773d0407fc2656113c9dec240fafda9a5875bee50df70c444d15a6b5c67ff58644fcbf0a10cb007b108cb9be0f1d3eb2ac
data/.hound.yml CHANGED
@@ -59,7 +59,7 @@ Metrics/MethodLength:
59
59
 
60
60
  # Encourage short (as possible) modules.
61
61
  Metrics/ModuleLength:
62
- Max: 105
62
+ Max: 110
63
63
 
64
64
  # Encourage fewer parameters.
65
65
  Metrics/ParameterLists:
@@ -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
 
@@ -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.
@@ -1,7 +1,7 @@
1
1
  module Tapestry
2
2
  module_function
3
3
 
4
- VERSION = "0.5.0".freeze
4
+ VERSION = "0.6.0".freeze
5
5
 
6
6
  def version
7
7
  """
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.5.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-12 00:00:00.000000000 Z
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.5.0 has been installed.\n(::) (::) (::) (::) (::) (::) (::) (::) (::)
154
+ \ Tapestry 0.6.0 has been installed.\n(::) (::) (::) (::) (::) (::) (::) (::) (::)
155
155
  (::) (::) (::)\n "
156
156
  rdoc_options: []
157
157
  require_paths: