screengem 0.21.1 → 0.21.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/screengem/screen_element.rb +6 -3
- data/lib/screengem/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9321ae3c6f518999057e3cd9b38a62503563e07d7452e44a95c0afa5ac19f454
|
4
|
+
data.tar.gz: 84297d6336c9f0a2622dbdc7df87f9be41a6f46087c39558f34b20a0a596cb1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05e0ad92dd7d719e60ca00dcefeb68d820ddff726c63914ca3c833747fd623c400b6f7add86debe127aa09206a226ffb6c6453b71c8f986a7dfa25690dde503b
|
7
|
+
data.tar.gz: a1bb6537e3987f1881bd1ce73556411d88e1c9b4596fae3afb3f982ac17e3b37ae52fbd8273fab06b4834a0fd4b82702c51b2328f3155e93407a3c222024283e
|
data/CHANGELOG.md
CHANGED
@@ -25,14 +25,17 @@ module Screengem
|
|
25
25
|
|
26
26
|
#
|
27
27
|
# Screen elements may define a visit_path that includes these elements
|
28
|
-
# of a URI: the path, a query string, and a fragment.
|
29
|
-
#
|
28
|
+
# of a URI: the path, a query string, and a fragment. We consider only
|
29
|
+
# the path and the fragment when building the current_uri.
|
30
|
+
#
|
31
|
+
# This has the somewhat surprising consequence that a visit_path that contains
|
32
|
+
# a query string will never match the current_uri meaning that we will always
|
33
|
+
# auto visit. This preserves the behaviour in versions prior to 0.21.x.
|
30
34
|
#
|
31
35
|
def current_uri
|
32
36
|
uri = URI(page.current_url)
|
33
37
|
|
34
38
|
current_uri = uri.path
|
35
|
-
current_uri += "?#{uri.query}" if uri.query.present?
|
36
39
|
current_uri += "##{uri.fragment}" if uri.fragment.present?
|
37
40
|
|
38
41
|
current_uri
|
data/lib/screengem/version.rb
CHANGED