site-object 0.4.3 → 0.4.4
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 +4 -4
- data/lib/site-object/page.rb +12 -1
- data/lib/site-object/version.rb +1 -1
- data/lib/site-object.rb +4 -1
- metadata +6 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e9c2b68768327a3c3326758bfcb4dda2e2a6053
|
4
|
+
data.tar.gz: 9e5e09142d95c72198f1284b9e67a629d57ae0a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 428e7397bf0b470fbbb2fb5ec8ea8f88f8d7b389ea84c82620d2f902620f4d28b4a741657b98f46b9c1284ce9f681c5a0921ea983832430f19a35fc00fd7e80d
|
7
|
+
data.tar.gz: 8f94d616f180cc1cbfcf10f527d7798e47c5ea727e360e7d699c5a3b91018f7d4cf9ce174c485cb78d362b8646c922d4f4998b54d69c8e9c6b5f6a0dce4e2a2c
|
data/lib/site-object/page.rb
CHANGED
@@ -62,7 +62,18 @@
|
|
62
62
|
module PageObject
|
63
63
|
|
64
64
|
module PageClassMethods
|
65
|
-
|
65
|
+
|
66
|
+
# Page features should be inheritable so that page templates work. So using cattr_accessor
|
67
|
+
# to allow that. Older versions of active_support were acting a little strange though --
|
68
|
+
# the cattr_accessor method wasn't getting recognized even though the requires were right.
|
69
|
+
# So the rescue block below is there to cover that case where cattr_accessor isn't
|
70
|
+
# getting recognized for some reason.
|
71
|
+
begin
|
72
|
+
cattr_accessor :page_features
|
73
|
+
rescue NoMethodError => e
|
74
|
+
Module.cattr_accessor :page_features
|
75
|
+
end
|
76
|
+
|
66
77
|
attr_reader :page_attributes, :page_elements, :page_url, :url_template, :url_matcher
|
67
78
|
|
68
79
|
# DEPRECATED. Use the set_attributes method instead.
|
data/lib/site-object/version.rb
CHANGED
data/lib/site-object.rb
CHANGED
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
|
+
version: 0.4.4
|
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-
|
11
|
+
date: 2016-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,34 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: addressable
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '2.4'
|
34
31
|
- - ">="
|
35
32
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
33
|
+
version: '0'
|
37
34
|
type: :runtime
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
40
37
|
requirements:
|
41
|
-
- - "~>"
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: '2.4'
|
44
38
|
- - ">="
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
40
|
+
version: '0'
|
47
41
|
description: Wraps page objects up into a site object, which provides some introspection
|
48
42
|
and navigation capabilities that page objects don't provide. Works with Watir and
|
49
43
|
Selenium.
|
@@ -87,4 +81,3 @@ summary: Wraps page objects up into a site object, which provides some introspec
|
|
87
81
|
and navigation capabilities that page objects don't provide. Works with Watir and
|
88
82
|
Selenium.
|
89
83
|
test_files: []
|
90
|
-
has_rdoc:
|