site-object 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e9c2b68768327a3c3326758bfcb4dda2e2a6053
4
- data.tar.gz: 9e5e09142d95c72198f1284b9e67a629d57ae0a4
3
+ metadata.gz: 15f2ae6c537d2795043ea16f265246f365686990
4
+ data.tar.gz: 4045598a63be0d5de8cfa22a3f73be9c8a2966aa
5
5
  SHA512:
6
- metadata.gz: 428e7397bf0b470fbbb2fb5ec8ea8f88f8d7b389ea84c82620d2f902620f4d28b4a741657b98f46b9c1284ce9f681c5a0921ea983832430f19a35fc00fd7e80d
7
- data.tar.gz: 8f94d616f180cc1cbfcf10f527d7798e47c5ea727e360e7d699c5a3b91018f7d4cf9ce174c485cb78d362b8646c922d4f4998b54d69c8e9c6b5f6a0dce4e2a2c
6
+ metadata.gz: 902911293f6c86fdb7ef2db1684b8c301050ef2852edb42e8af2e9704cc4edd1172b74c1c40134515923beeb594cdc18713dd0819e8b731bf37b2ba29829a173
7
+ data.tar.gz: 8787cbcd6c9a25efb261d434aeacd0d6a7a91502e0fe937b5eb8d12baf6f9d72dc3204431b060074effac8f46bad95fb931a60cc34e49a07c1898ee500315109
@@ -449,9 +449,9 @@ module PageObject
449
449
  end
450
450
  else # There's no fragment in the URL template, strip the fragment out of the URL so that template matching works better.
451
451
  if @browser.is_a? Watir::Browser
452
- url = @browser.url.split('#')[0]
452
+ url = @browser.url.split(/(\?|#)/)[0]
453
453
  elsif @browser.is_a? Selenium::WebDriver::Driver
454
- url = @browser.current_url.split('#')[0]
454
+ url = @browser.current_url.split(/(\?|#)/)[0]
455
455
  else
456
456
  raise SiteObject::BrowserLibraryNotSupportedError, "Unsupported browser library: #{@browser.class}"
457
457
  end
@@ -213,7 +213,7 @@ module SiteObject
213
213
  @pages.each do |p|
214
214
  if p.url_matcher && p.url_matcher =~ url
215
215
  found_page = p
216
- elsif p.url_template.match url
216
+ elsif p.url_template.match url.split(/(\?|#)/)[0]
217
217
  found_page = p
218
218
  end
219
219
 
@@ -1,3 +1,3 @@
1
1
  module SiteObject
2
- VERSION = '0.4.4'
2
+ VERSION = '0.4.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site-object
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Fitisoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-06 00:00:00.000000000 Z
11
+ date: 2016-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -81,3 +81,4 @@ summary: Wraps page objects up into a site object, which provides some introspec
81
81
  and navigation capabilities that page objects don't provide. Works with Watir and
82
82
  Selenium.
83
83
  test_files: []
84
+ has_rdoc: