watir_drops 0.7.1 → 0.7.2

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: 171e38eba96f09a57de7f7f73916693ad11cb93e
4
- data.tar.gz: 0f6423ac9a41c06557839fe334e796f3ffd0e532
3
+ metadata.gz: 36c020abc7c078237e3e6a209d142db544b5e4f2
4
+ data.tar.gz: 58da3f3f9d0570f2f7724bcc0f18804dc11cead4
5
5
  SHA512:
6
- metadata.gz: 8b277848895d85656e8e400ae1e3edce263f55e028acc46d837cc5a9a538816aa8e4427403061fb31ec9387cd322a27691cd7b9cceb71aa9599571b218b2e9f8
7
- data.tar.gz: cc7bf3e2b873a2a74a87c53ca5342c8917235401fd79e21651ee75c4c056fda9d124a2898914913f7510f2eb0d61e660c9004275b2d704d7bf70ca8975b5e23a
6
+ metadata.gz: e50f636c26827d0e1571d6b6353ab0b5552a3f2013c99c5a2400e036869008730a2134f380bf1a9c1ae5edcf7c09163b9770b96f46f488f11ea0b3921beb720f
7
+ data.tar.gz: 3bc3588c64388e2d8d3248a700398b3ea53fb3a650c350d6647a0a85a102dcc29f839c4f867e5bac72b02b911633f2dc2bf2828f1a02401fc782b4e06b3314f8
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.7.2 (2017-12-27)
2
+
3
+ * `#on_page?` ignores trailing slashes for verification by url
4
+
1
5
  ### 0.7.1 (2017-05-19)
2
6
 
3
7
  * `#on_page?` evaluates immediately
@@ -127,8 +127,10 @@ module WatirDrops
127
127
  message = "Can not verify page without any requirements set"
128
128
  raise exception, message unless page_verifiable?
129
129
 
130
- if self.class.require_url && page_url.gsub("#{URI.parse(page_url).scheme}://", '') != browser.url.gsub("#{URI.parse(browser.url).scheme}://", '')
131
- return false
130
+ if self.class.require_url
131
+ expected = page_url.gsub("#{URI.parse(page_url).scheme}://", '').chomp('/')
132
+ actual = browser.url.gsub("#{URI.parse(browser.url).scheme}://", '').chomp('/')
133
+ return false unless expected == actual
132
134
  end
133
135
 
134
136
  if self.respond_to?(:page_title) && browser.title != page_title
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'watir_drops'
5
- spec.version = '0.7.1'
5
+ spec.version = '0.7.2'
6
6
  spec.authors = ['Titus Fortner']
7
7
  spec.email = ['titusfortner@gmail.com']
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir_drops
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Fortner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-20 00:00:00.000000000 Z
11
+ date: 2017-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: watir
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  requirements: []
151
151
  rubyforge_project:
152
- rubygems_version: 2.6.8
152
+ rubygems_version: 2.6.11
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: Page Object Framework for use with Watir