angular_webdriver 1.0.6 → 1.0.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6829782ca6512691c1fa8aa453514eb3b7b94f1
|
4
|
+
data.tar.gz: 6f6b57ffdaf0c6545a246e0bd2f15bc5aa41d975
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47c41a020d9c4073e6819e219104f2cc2bcb9fcca8127bafe12f136d0fab3aafa3d6f2463fcae0885f387848a6808eddb40a1ffd172567ec1404346563be57be
|
7
|
+
data.tar.gz: 453690e0340486b15ad7c19e6575aee4572067ad35ccfd8ee202de7af8ae1d0e6aab34bda9e2bc1a2559c37c39f48370c4aaff5852320aa98ae323a3230ded23
|
@@ -64,7 +64,11 @@ class Protractor
|
|
64
64
|
# @return [String] url
|
65
65
|
def base_url= url
|
66
66
|
# Allow resetting base_url with falsey value
|
67
|
-
return @base_url = nil unless url
|
67
|
+
return @base_url = nil unless url && !url.empty?
|
68
|
+
|
69
|
+
# Note: can't use URI.regexp because 'localhost:8081' will pass
|
70
|
+
# 'localhost:8081' =~ URI.regexp # 0
|
71
|
+
# when really it should fail because we need to prepend it with http://
|
68
72
|
|
69
73
|
uri = URI.parse(url) rescue false
|
70
74
|
fail ArgumentError, "Invalid URL #{url.inspect}. Must contain scheme and host." unless uri && uri.scheme && uri.host
|
@@ -27,6 +27,17 @@ module AngularWebdriver
|
|
27
27
|
# should not make any server requests
|
28
28
|
#
|
29
29
|
|
30
|
+
::Watir::Browser.class_eval do
|
31
|
+
# avoid prepending 'http://' to non-urls because protractor handles
|
32
|
+
# the prepending at the driver level.
|
33
|
+
def goto(uri)
|
34
|
+
@driver.navigate.to uri
|
35
|
+
run_checkers
|
36
|
+
|
37
|
+
url
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
30
41
|
::Watir::HTMLElementCollection.class_eval do
|
31
42
|
# Return original selector.
|
32
43
|
# Method added for protractor compatibility
|
@@ -1,4 +1,4 @@
|
|
1
1
|
module AngularWebdriver
|
2
|
-
VERSION = '1.0.
|
3
|
-
DATE = '2015-06-
|
2
|
+
VERSION = '1.0.7' unless defined? ::AngularWebdriver::VERSION
|
3
|
+
DATE = '2015-06-23' unless defined? ::AngularWebdriver::DATE
|
4
4
|
end
|
data/release_notes.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
#### v1.0.7 2015-06-23
|
2
|
+
|
3
|
+
- [deb38c6](https://github.com/bootstraponline/angular_webdriver/commit/deb38c6a60e5d3fefc746beeeb4af19b95a7963a) Release 1.0.7
|
4
|
+
- [a198f27](https://github.com/bootstraponline/angular_webdriver/commit/a198f276c3948fe13bdc9a571a22bc62a0b0a1b7) Fix watir goto prepending
|
5
|
+
|
6
|
+
|
1
7
|
#### v1.0.6 2015-06-22
|
2
8
|
|
3
9
|
- [6e3002f](https://github.com/bootstraponline/angular_webdriver/commit/6e3002f8d54b6147c7c327a9e48fe288bdfa9fd8) Release 1.0.6
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: angular_webdriver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- code@bootstraponline.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|